/* =====================================================================
   Migs Arena – Hype & Bindung (SPEC-V3 §6): Saison-Pass (MigsSeason), Erfolge (MigsAchievements),
   Crews (MigsCrews), Karten-Editor (MigsEditor). Präfix .hy-
   Eigenständig (funktioniert auch ohne style.css); nutzt dessen Variablen, falls vorhanden.
   ===================================================================== */

.hy-overlay {
  --h-cyan: var(--cyan, #4fe3ff);
  --h-pink: var(--pink, #ff4fd8);
  --h-yellow: var(--yellow, #ffd23f);
  --h-green: var(--green, #5dff9e);
  --h-red: var(--red, #ff5470);
  --h-orange: var(--orange, #ff9f1c);
  --h-purple: #b26bff;
  --h-text: var(--text, #f4f1ff);
  --h-muted: var(--muted, #a49fcf);
  --h-glass: rgba(28, 24, 62, 0.72);
  --h-line: rgba(255, 255, 255, 0.1);
  --h-back: cubic-bezier(.34, 1.56, .64, 1);
  --h-out: cubic-bezier(.2, .9, .25, 1);
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  color: var(--h-text);
  font-family: var(--font, 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.hy-overlay.hy-open { opacity: 1; }
.hy-overlay[hidden], .hy-overlay [hidden] { display: none !important; }
.hy-overlay *, .hy-overlay *::before, .hy-overlay *::after { box-sizing: border-box; }
.hy-overlay button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hy-overlay button:disabled { cursor: default; opacity: .55; }
.hy-overlay h2, .hy-overlay h3, .hy-overlay p, .hy-overlay ul, .hy-overlay ol { margin: 0; }
.hy-overlay ul, .hy-overlay ol { padding: 0; list-style: none; }
.hy-overlay :focus { outline: none; }
.hy-overlay :focus-visible:not(.gp-focus) { outline: 3px solid var(--h-cyan); outline-offset: 2px; }
body.hy-is-open { overflow: hidden; }

.hy-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 18% 12%, rgba(178, 107, 255, .3), transparent 62%),
    radial-gradient(ellipse 70% 55% at 90% 95%, rgba(79, 227, 255, .2), transparent 60%),
    linear-gradient(180deg, #1d1546 0%, #120e2c 55%, #0b0918 100%);
}
.hy-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hy-bg-season {
  background:
    radial-gradient(ellipse 60% 55% at 15% 10%, rgba(255, 61, 242, .32), transparent 62%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(57, 255, 20, .14), transparent 60%),
    radial-gradient(ellipse 70% 55% at 80% 100%, rgba(0, 255, 240, .18), transparent 60%),
    linear-gradient(180deg, #2a0f4a 0%, #150b30 55%, #0b0918 100%);
}
.hy-bg-crew {
  background:
    radial-gradient(ellipse 60% 55% at 85% 10%, rgba(255, 210, 63, .2), transparent 62%),
    radial-gradient(ellipse 70% 55% at 10% 95%, rgba(255, 79, 216, .2), transparent 60%),
    linear-gradient(180deg, #1d1546 0%, #120e2c 55%, #0b0918 100%);
}

.hy-shell {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 1320px; height: 100%; margin: 0 auto; min-height: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  transform: translateY(14px) scale(.985);
  transition: transform .4s var(--h-back);
}
.hy-open .hy-shell { transform: none; }

/* ---------- Kopf ---------- */
.hy-head { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.hy-back {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important; border: 1px solid var(--h-line) !important;
  font-size: 30px !important; line-height: 1; font-weight: 700; display: grid; place-items: center; padding-bottom: 4px !important;
  transition: background .15s, transform .15s var(--h-back);
}
.hy-back:hover { background: rgba(255, 255, 255, .16) !important; transform: scale(1.06); }
.hy-title { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.hy-title > span:last-child { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.hy-title > span:last-child {
  background: linear-gradient(90deg, #fff, var(--h-cyan) 45%, var(--h-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hy-title small { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--h-muted); -webkit-text-fill-color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-title-ico { font-size: 28px; filter: drop-shadow(0 0 10px rgba(79, 227, 255, .6)); }
.hy-head-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.hy-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 8, 28, .55); border: 1px solid var(--h-line); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.hy-coins { border-color: rgba(255, 210, 63, .45); color: var(--h-yellow); box-shadow: 0 0 18px rgba(255, 210, 63, .15); }
.hy-coins b { color: var(--h-yellow); font-size: 17px; }
.hy-cd b { color: var(--h-pink); font-variant-numeric: tabular-nums; }

/* ---------- Bausteine ---------- */
.hy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 14px; font-weight: 700 !important; font-size: 16px;
  background: rgba(255, 255, 255, .1) !important; border: 1px solid var(--h-line) !important;
  transition: transform .15s var(--h-back), box-shadow .2s, background .15s, filter .15s; white-space: nowrap;
}
.hy-btn:not(:disabled):hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16) !important; }
.hy-btn:not(:disabled):active { transform: translateY(1px) scale(.98); }
.hy-btn-go {
  color: #0b0918 !important; border: 0 !important;
  background: linear-gradient(180deg, #7ff0ff, var(--h-cyan) 45%, #22b8e0) !important;
  box-shadow: 0 6px 22px rgba(79, 227, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.hy-btn-go:not(:disabled):hover { background: linear-gradient(180deg, #a6f5ff, #5fe8ff 45%, #2cc4ec) !important; box-shadow: 0 10px 28px rgba(79, 227, 255, .5); }
.hy-btn-pink {
  color: #fff !important; border: 0 !important;
  background: linear-gradient(180deg, #ff7fe4, var(--h-pink) 50%, #c22aa4) !important;
  box-shadow: 0 6px 22px rgba(255, 79, 216, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.hy-btn-pink:not(:disabled):hover { background: linear-gradient(180deg, #ff9be9, #ff63de 50%, #d136b3) !important; }
.hy-btn-ghost { background: transparent !important; color: var(--h-muted) !important; }
.hy-btn-ghost:not(:disabled):hover { color: var(--h-text) !important; }
.hy-btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 11px; }
.hy-btn-wide { width: 100%; }
.hy-btn.is-off { filter: grayscale(.7) brightness(.8); }
.hy-btn.is-confirm, .hy-btn-ghost.is-confirm { color: #fff !important; background: rgba(255, 84, 112, .35) !important; border-color: var(--h-red) !important; }
.hy-icobtn {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .08) !important; border: 1px solid var(--h-line) !important; font-size: 19px; font-weight: 700;
  transition: background .15s, transform .15s var(--h-back);
}
.hy-icobtn:not(:disabled):hover { background: rgba(255, 255, 255, .16) !important; transform: scale(1.06); }
.hy-icobtn.is-on { color: var(--h-pink); border-color: rgba(255, 79, 216, .6) !important; }
.hy-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hy-row-end { justify-content: flex-end; margin-top: 14px; }
.hy-row-input { flex-wrap: nowrap; }
.hy-row-input .hy-input { flex: 1; min-width: 0; }
.hy-note { font-size: 13px; color: var(--h-muted); line-height: 1.4; }
.hy-note b { color: var(--h-text); }
.hy-empty { padding: 18px 10px; text-align: center; color: var(--h-muted); font-size: 15px; }
.hy-msg { min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--h-muted); }
.hy-msg.is-err { color: var(--h-red); }
.hy-msg.is-warn { color: var(--h-orange); }
.hy-input {
  font: inherit; font-size: 16px; color: var(--h-text); padding: 10px 14px; border-radius: 12px; width: 100%;
  background: rgba(8, 6, 22, .6); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .15s, box-shadow .15s;
}
.hy-input:focus { border-color: var(--h-cyan); box-shadow: 0 0 0 3px rgba(79, 227, 255, .2); }
.hy-input::placeholder { color: rgba(164, 159, 207, .6); }
.hy-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--h-muted); font-weight: 600; }
.hy-range { width: 100%; accent-color: var(--h-cyan); }
.hy-bar {
  position: relative; height: 26px; border-radius: 999px; overflow: hidden;
  background: rgba(8, 6, 22, .65); border: 1px solid rgba(255, 255, 255, .12);
}
.hy-bar i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--h-pink), var(--h-purple) 50%, var(--h-cyan));
  box-shadow: 0 0 18px rgba(255, 79, 216, .5); transition: width .6s var(--h-out);
}
.hy-bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%);
  animation: hySheen 2.8s ease-in-out infinite;
}
.hy-bar span { position: relative; display: block; text-align: center; font-size: 13px; font-weight: 700; line-height: 24px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); white-space: nowrap; }
.hy-bar-sm { height: 18px; margin-top: 6px; }
.hy-bar-sm span { font-size: 11px; line-height: 16px; }
.hy-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hy-chipbtn {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600 !important; color: var(--h-muted) !important;
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--h-line) !important; transition: color .15s, background .15s;
}
.hy-chipbtn:hover { color: var(--h-text) !important; }
.hy-chipbtn.is-on { color: #fff !important; background: linear-gradient(180deg, rgba(79, 227, 255, .3), rgba(178, 107, 255, .26)) !important; border-color: rgba(79, 227, 255, .6) !important; }
.hy-panel {
  border-radius: 22px; padding: 16px; min-height: 0; overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--h-line); box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.hy-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.hy-panel-h h3 { font-size: 18px; font-weight: 700; }
.hy-tabs { display: flex; gap: 6px; margin-left: auto; }
.hy-tab {
  padding: 9px 16px; border-radius: 14px; font-weight: 700 !important; font-size: 16px; color: var(--h-muted) !important;
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--h-line) !important; white-space: nowrap;
}
.hy-tab.is-on { color: #fff !important; background: linear-gradient(180deg, rgba(79, 227, 255, .32), rgba(178, 107, 255, .28)) !important; border-color: rgba(79, 227, 255, .6) !important; box-shadow: 0 6px 22px rgba(79, 227, 255, .2); }
.hy-tag {
  display: inline-block; padding: 1px 7px; border-radius: 8px; font-weight: 700; letter-spacing: .04em;
  color: var(--tc, var(--h-cyan)); background: color-mix(in srgb, var(--tc, #4fe3ff) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, #4fe3ff) 55%, transparent); text-shadow: 0 0 10px color-mix(in srgb, var(--tc, #4fe3ff) 70%, transparent);
  white-space: nowrap;
}
.hy-tag-big { font-size: 26px; padding: 4px 12px; border-radius: 12px; }
.is-burst { animation: hyBurst .8s var(--h-back); }
.is-shake { animation: hyShake .45s ease; }

/* ---------- Modal ---------- */
.hy-modal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 14, .72); backdrop-filter: blur(4px); animation: hyFade .2s ease; }
.hy-modal-card {
  width: min(640px, 100%); max-height: calc(100% - 24px); overflow: auto; padding: 20px; border-radius: 24px;
  background: linear-gradient(180deg, #2a2160, #171433); border: 1px solid rgba(79, 227, 255, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: hyPop .3s var(--h-back);
}
.hy-modal-card h3 { font-size: 22px; margin-bottom: 6px; }
.hy-modal-card .hy-field { margin-top: 12px; }
.hy-modal-card .hy-chips { margin-top: 12px; }

/* =====================================================================
   Saison-Pass
   ===================================================================== */
.hy-se-hero {
  flex: none; display: grid; grid-template-columns: auto 1fr minmax(240px, 330px); gap: 18px; align-items: center;
  padding: 16px 20px; border-radius: 26px;
  background: linear-gradient(110deg, rgba(255, 61, 242, .18), rgba(57, 255, 20, .06) 50%, rgba(0, 255, 240, .14));
  border: 1px solid rgba(255, 61, 242, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.hy-se-tier { position: relative; width: 132px; height: 132px; }
.hy-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.hy-ring circle { fill: none; stroke-width: 10; }
.hy-ring-bg { stroke: rgba(255, 255, 255, .1); }
.hy-ring-fg { stroke: var(--h-pink); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 61, 242, .8)); transition: stroke-dasharray .8s var(--h-out); }
.hy-se-tiernum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hy-se-tiernum small { font-size: 13px; color: var(--h-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hy-se-tiernum b { font-size: 50px; font-weight: 700; color: #fff; text-shadow: 0 0 22px rgba(255, 61, 242, .9); }
.hy-se-prog { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hy-se-h { font-size: 26px; font-weight: 700; }
.hy-se-hint { font-size: 14px; color: var(--h-muted); line-height: 1.4; }
.hy-se-hint b { color: var(--h-green); }
.hy-claimall:not(:disabled) { animation: hyGlow 1.6s ease-in-out infinite; }
.is-ended .hy-se-h::after { content: ' · Saison beendet'; color: var(--h-orange); font-size: 16px; }
.hy-se-feature {
  --rc: #ffb800; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; min-width: 0;
  background: radial-gradient(ellipse 80% 80% at 30% 50%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), rgba(8, 6, 22, .45);
  border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent);
}
.hy-se-fcv { position: relative; flex: none; width: 120px; height: 120px; display: grid; place-items: center; }
.hy-se-fcv canvas { position: relative; width: 120px; height: 120px; }
.hy-se-femoji { position: relative; font-size: 64px; filter: drop-shadow(0 0 16px var(--rc)); }
.hy-rays {
  position: absolute; inset: -10px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 35%, transparent) 0 8deg, transparent 8deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  animation: hySpin 14s linear infinite;
}
.hy-se-finfo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hy-se-finfo .hy-rar { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rc); }
.hy-se-finfo h3 { font-size: 20px; line-height: 1.1; }
.hy-se-finfo p { font-size: 13px; color: var(--h-muted); }

.hy-se-trackwrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; }
.hy-se-track {
  position: relative; flex: 1; max-height: 100%; display: flex; gap: 12px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; padding: 18px 8px 34px; scroll-snap-type: x proximity; scroll-behavior: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255, 61, 242, .5) transparent; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.hy-se-line { position: absolute; left: 8px; bottom: 16px; height: 6px; width: calc(30 * 162px - 12px); border-radius: 3px; background: rgba(255, 255, 255, .1); pointer-events: none; }
.hy-se-line i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--h-pink), #39ff14, #00fff0); box-shadow: 0 0 12px rgba(255, 61, 242, .7); }
.hy-scroll {
  flex: none; align-self: center; width: 40px; height: 64px; border-radius: 14px; font-size: 30px !important; font-weight: 700;
  background: rgba(255, 255, 255, .08) !important; border: 1px solid var(--h-line) !important; z-index: 1;
}
.hy-scroll:hover { background: rgba(255, 255, 255, .16) !important; }
.hy-se-card {
  --rc: #9aa4b8; position: relative; flex: none; width: 150px; min-height: 252px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 12px; border-radius: 20px;
  background: radial-gradient(ellipse 90% 60% at 50% 35%, color-mix(in srgb, var(--rc) 20%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 2px solid color-mix(in srgb, var(--rc) 45%, rgba(255, 255, 255, .06));
  transition: transform .2s var(--h-back), box-shadow .2s, border-color .2s; cursor: pointer; user-select: none;
}
.hy-se-card:hover { transform: translateY(-4px); }
.hy-se-card.is-item { box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 30%, transparent); }
.hy-se-card.is-sel { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 60%, transparent), 0 12px 30px rgba(0, 0, 0, .4); }
.hy-se-card.is-locked .hy-se-vis { filter: grayscale(.55) brightness(.7); }
.hy-se-card.is-claimed { opacity: .62; }
.hy-se-card.is-claimed .hy-se-vis { filter: grayscale(.4); }
.hy-se-card.is-ready { border-color: var(--h-green); box-shadow: 0 0 26px rgba(93, 255, 158, .45); animation: hyFloat 2.2s ease-in-out infinite; }
.hy-se-card.is-next::before {
  content: 'NÄCHSTE'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #0b0918; background: var(--h-yellow); box-shadow: 0 0 12px rgba(255, 210, 63, .7);
}
.hy-se-num {
  align-self: flex-start; min-width: 30px; padding: 2px 8px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: center;
  background: rgba(0, 0, 0, .35); color: var(--rc);
}
.hy-se-vis { position: relative; width: 104px; height: 104px; display: grid; place-items: center; transition: filter .3s; }
.hy-se-cv { width: 104px; height: 104px; }
.hy-se-emo { position: absolute; right: -4px; bottom: -2px; font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.hy-se-coin { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hy-se-coin span { font-size: 46px; color: var(--h-yellow); text-shadow: 0 0 18px rgba(255, 210, 63, .9); line-height: 1; }
.hy-se-coin b { font-size: 20px; color: var(--h-yellow); }
.hy-se-coin.is-big span { font-size: 54px; }
.hy-se-name { font-size: 15px; font-weight: 700; text-align: center; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; }
.hy-se-kind { font-size: 11px; font-weight: 600; color: var(--h-muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.hy-se-foot { margin-top: auto; min-height: 34px; display: flex; align-items: center; }
.hy-se-done { color: var(--h-green); font-weight: 700; font-size: 14px; }
.hy-se-lock { color: var(--h-muted); font-weight: 600; font-size: 13px; }
.hy-se-claim { padding: 7px 14px; font-size: 14px; }

/* =====================================================================
   Erfolge
   ===================================================================== */
.hy-ach-top { flex: none; display: flex; flex-direction: column; gap: 10px; }
.hy-ach-grid {
  flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; align-content: start;
  padding: 2px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.hy-ach-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--h-line);
  transition: transform .15s var(--h-back);
}
.hy-ach-card.is-done { border-color: rgba(255, 210, 63, .5); background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(255, 210, 63, .14), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.hy-ach-card.has-item:not(.is-secret) { border-left: 3px solid var(--h-pink); }
.hy-ach-card.is-secret { border-style: dashed; }
.hy-ach-ico {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: rgba(8, 6, 22, .6); border: 2px solid rgba(255, 255, 255, .12); filter: grayscale(.85) brightness(.75);
}
.is-done .hy-ach-ico { filter: none; border-color: var(--h-yellow); box-shadow: 0 0 18px rgba(255, 210, 63, .45); background: radial-gradient(circle, rgba(255, 210, 63, .25), rgba(8, 6, 22, .6)); }
.hy-ach-body { flex: 1; min-width: 0; }
.hy-ach-body b { font-size: 16px; display: block; }
.hy-ach-body p { font-size: 13px; color: var(--h-muted); line-height: 1.3; }
.hy-ach-date { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--h-green); }
.hy-ach-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 42%; }
.hy-ach-rw { font-size: 12px; font-weight: 700; color: var(--h-yellow); text-align: right; }

/* Einblend-Banner (auch im Spiel sichtbar) */
.hy-ach-pop {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 3000;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; max-width: min(460px, calc(100vw - 24px));
  border-radius: 20px; color: #fff; font-family: var(--font, 'Fredoka', system-ui, sans-serif);
  background: linear-gradient(100deg, rgba(42, 29, 99, .97), rgba(29, 21, 70, .97)); border: 2px solid var(--yellow, #ffd23f);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 210, 63, .35);
  transform: translate(-50%, -140%); opacity: 0; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; pointer-events: none;
}
.hy-ach-pop.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.hy-ach-pop-ico {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle, rgba(255, 210, 63, .35), rgba(8, 6, 22, .6)); border: 2px solid var(--yellow, #ffd23f);
  animation: hyPop .6s cubic-bezier(.34, 1.56, .64, 1);
}
.hy-ach-pop-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hy-ach-pop-txt small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow, #ffd23f); }
.hy-ach-pop-txt b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-ach-pop-txt span { font-size: 13px; color: #c9c4f0; }
.hy-ach-pop-btn {
  flex: none; margin-left: auto; padding: 8px 12px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: #0b0918; background: linear-gradient(180deg, #ffe680, #ffd23f);
}

/* =====================================================================
   Crews
   ===================================================================== */
.hy-crew-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 14px; }
.hy-crew-left, .hy-crew-right { display: flex; flex-direction: column; gap: 12px; }
.hy-crew-card {
  --tc: #4fe3ff; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px;
  background: radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%), rgba(8, 6, 22, .4);
  border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent);
}
.hy-crew-card-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hy-crew-card-top h2 { font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.hy-crew-card-top p { font-size: 14px; color: var(--h-muted); }
.hy-crew-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hy-crew-stats div, .hy-ed-stats div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.hy-crew-stats b { font-size: 22px; color: var(--tc); }
.hy-crew-stats small, .hy-ed-stats small { font-size: 11px; color: var(--h-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hy-crew-members { display: flex; flex-direction: column; gap: 4px; }
.hy-crew-members li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-weight: 600; }
.hy-ava {
  --tc: #4fe3ff; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700;
  color: #0b0918; background: var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent);
}
.hy-crew-form { display: flex; flex-direction: column; gap: 10px; }
.hy-crew-form h3 { font-size: 19px; }
.hy-crew-preview { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .3); min-height: 62px; overflow: hidden; }
.hy-crew-pv-name { font-size: 20px; font-weight: 700; }
.hy-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.hy-swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--sw) !important; border: 3px solid transparent !important; box-shadow: 0 0 10px color-mix(in srgb, var(--sw) 60%, transparent); transition: transform .15s var(--h-back); }
.hy-swatch:hover { transform: scale(1.12); }
.hy-swatch.is-on { border-color: #fff !important; transform: scale(1.12); }
.hy-or { display: flex; align-items: center; gap: 10px; color: var(--h-muted); font-size: 13px; font-weight: 600; }
.hy-or::before, .hy-or::after { content: ''; flex: 1; height: 1px; background: var(--h-line); }
.hy-crew-top { display: flex; flex-direction: column; gap: 6px; }
.hy-crew-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid transparent; transition: background .15s, transform .15s var(--h-back);
}
.hy-crew-row:hover { background: rgba(255, 255, 255, .1); transform: translateX(3px); }
.hy-crew-row.is-mine { border-color: rgba(79, 227, 255, .55); background: rgba(79, 227, 255, .1); }
.hy-crew-rank { flex: none; width: 32px; text-align: center; font-size: 18px; font-weight: 700; color: var(--h-muted); }
.hy-crew-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-crew-name small { font-size: 12px; color: var(--h-muted); font-weight: 600; }
.hy-crew-score { font-size: 19px; color: var(--h-yellow); font-variant-numeric: tabular-nums; }
.hy-crew-detail { padding: 12px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--h-line); display: flex; flex-direction: column; gap: 8px; }

/* =====================================================================
   Karten-Editor
   ===================================================================== */
.hy-ed-shell { max-width: none; }
.hy-ed-build { flex: 1; min-height: 0; display: grid; grid-template-columns: auto 1fr 300px; gap: 12px; }
.hy-ed-tools {
  display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 20px; overflow: auto;
  background: rgba(8, 6, 22, .5); border: 1px solid var(--h-line); scrollbar-width: none;
}
.hy-ed-tool {
  flex: none; width: 64px; padding: 8px 2px 6px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .05) !important; border: 1px solid transparent !important; transition: background .15s, transform .15s var(--h-back);
}
.hy-ed-tool span { font-size: 24px; line-height: 1; }
.hy-ed-tool small { font-size: 11px; font-weight: 600; color: var(--h-muted); }
.hy-ed-tool:hover { background: rgba(255, 255, 255, .12) !important; transform: scale(1.04); }
.hy-ed-tool.is-on { background: linear-gradient(180deg, rgba(79, 227, 255, .3), rgba(178, 107, 255, .26)) !important; border-color: rgba(79, 227, 255, .7) !important; box-shadow: 0 0 16px rgba(79, 227, 255, .3); }
.hy-ed-tool.is-on small { color: #fff; }
.hy-ed-sym.is-on { border-color: rgba(255, 79, 216, .8) !important; box-shadow: 0 0 16px rgba(255, 79, 216, .35); }
.hy-ed-sep { flex: none; height: 1px; margin: 4px 6px; background: var(--h-line); }
.hy-ed-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.hy-ed-bar { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hy-ed-opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1; }
.hy-ed-bar-r { display: flex; gap: 6px; margin-left: auto; }
.hy-ed-lbl { font-size: 13px; font-weight: 600; color: var(--h-muted); margin-right: 2px; }
.hy-ed-tip { font-size: 13px; color: var(--h-muted); }
.hy-ed-size { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--h-line) !important; }
.hy-ed-size i { display: block; width: var(--bs); height: var(--bs); border-radius: 50%; background: var(--h-purple); box-shadow: 0 0 8px rgba(178, 107, 255, .7); }
.hy-ed-size.is-on, .hy-ed-mat.is-on { border-color: var(--h-cyan) !important; background: rgba(79, 227, 255, .16) !important; }
.hy-ed-mat { padding: 8px 12px; border-radius: 12px; font-weight: 600 !important; font-size: 14px; background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--h-line) !important; }
.hy-ed-nestr { width: 140px; }
.hy-ed-nestv { min-width: 2.5ch; color: var(--h-yellow); }
.hy-ed-symchip { margin-left: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--h-muted); background: rgba(255, 255, 255, .05); white-space: nowrap; }
.hy-ed-symchip.is-on { color: var(--h-pink); background: rgba(255, 79, 216, .14); }
.hy-ed-canvaswrap {
  position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden;
  background: #0b0918; border: 1px solid rgba(178, 107, 255, .35); box-shadow: inset 0 0 40px rgba(0, 0, 0, .6);
}
.hy-ed-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.hy-ed-coord { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; color: var(--h-muted); pointer-events: none; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.hy-ed-side { min-height: 0; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border: 1px solid var(--h-line); overflow: hidden; }
.hy-ed-sidetoggle { display: none; }
.hy-ed-sidebody { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px; scrollbar-width: thin; }
.hy-ed-filebtns .hy-btn { flex: 1; }
.hy-ed-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hy-ed-stats b { font-size: 15px; color: var(--h-cyan); white-space: nowrap; }
.hy-ed-status { display: flex; flex-direction: column; gap: 6px; }
.hy-ed-ok { padding: 10px 12px; border-radius: 14px; font-weight: 700; color: var(--h-green); background: rgba(93, 255, 158, .1); border: 1px solid rgba(93, 255, 158, .4); }
.hy-ed-err { padding: 10px 12px; border-radius: 14px; font-weight: 600; font-size: 14px; color: #ffd0d8; background: rgba(255, 84, 112, .14); border: 1px solid rgba(255, 84, 112, .5); line-height: 1.35; }
.hy-ed-warn { font-size: 13px; color: var(--h-muted); line-height: 1.35; }
.hy-ed-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.hy-ed-help { font-size: 12px; }
.hy-ed-st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--h-muted); }
.hy-ed-st-dot.is-ok { background: var(--h-green); box-shadow: 0 0 10px var(--h-green); }
.hy-ed-st-dot.is-err { background: var(--h-red); box-shadow: 0 0 10px var(--h-red); }
.hy-ed-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.hy-ed-tpl {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--h-line) !important; transition: transform .15s var(--h-back), border-color .15s;
}
.hy-ed-tpl:hover { transform: translateY(-3px); border-color: var(--h-cyan) !important; }
.hy-ed-tpl canvas { width: 100%; height: auto; border-radius: 10px; }
.hy-ed-tpl b { font-size: 15px; }
.hy-ed-tpl small { font-size: 12px; color: var(--h-muted); }
.hy-ed-sharebox { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.hy-ed-sharebox > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hy-ed-qr { flex: none; width: 168px; height: 168px; border-radius: 14px; background: #fff; }
.hy-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--h-yellow); }
.hy-ed-comm { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.hy-ed-comm-bar { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.hy-ed-comm-bar .hy-row-input { width: min(360px, 100%); }
.hy-ed-grid {
  flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-content: start;
  padding: 2px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.hy-ed-card {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--h-line);
  transition: transform .15s var(--h-back), border-color .15s;
}
.hy-ed-card:hover { transform: translateY(-3px); border-color: rgba(79, 227, 255, .45); }
.hy-ed-card.is-focus { border: 2px solid var(--h-pink); box-shadow: 0 0 26px rgba(255, 79, 216, .35); }
.hy-ed-thumb { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #0b0918; }
.hy-ed-card-b { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hy-ed-card-b b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-ed-card-b small { font-size: 12px; color: var(--h-muted); }
.hy-ed-meta { font-size: 13px; font-weight: 600; color: var(--h-pink); }
.hy-ed-card-a { display: flex; gap: 6px; padding: 8px 10px 10px; align-items: center; }
.hy-ed-card-a .hy-btn-go { flex: 1; }
.hy-ed-more { flex: none; display: flex; justify-content: center; }
.hy-ed-more:empty { display: none; }

/* ---------- Animationen ---------- */
@keyframes hySheen { 0%, 40% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes hySpin { to { transform: rotate(360deg); } }
@keyframes hyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hyGlow { 0%, 100% { box-shadow: 0 6px 22px rgba(79, 227, 255, .35); } 50% { box-shadow: 0 6px 34px rgba(93, 255, 158, .75), 0 0 0 4px rgba(93, 255, 158, .25); } }
@keyframes hyBurst { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 50px rgba(255, 210, 63, .9); } 100% { transform: scale(1); } }
@keyframes hyShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes hyPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hyFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 980px) {
  .hy-se-hero { grid-template-columns: auto 1fr; }
  .hy-se-feature { grid-column: 1 / -1; }
  .hy-ed-build { position: relative; grid-template-columns: auto 1fr; padding-bottom: 56px; }
  .hy-ed-side {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 48px; transition: max-height .3s var(--h-out);
    background: linear-gradient(180deg, #2a2160, #1a1640); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
  }
  .hy-ed-side.is-open { max-height: 78%; }
  .hy-ed-sidetoggle { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 16px; font-weight: 700 !important; text-align: left; }
  .hy-ed-sidetoggle i { margin-left: auto; font-style: normal; transition: transform .2s; }
  .hy-ed-side:not(.is-open) .hy-ed-sidetoggle i { transform: rotate(180deg); }
}
@media (max-width: 760px) {
  .hy-shell { gap: 10px; padding-left: calc(10px + env(safe-area-inset-left, 0px)); padding-right: calc(10px + env(safe-area-inset-right, 0px)); }
  .hy-title { font-size: 20px; }
  .hy-title-ico { font-size: 22px; }
  .hy-back { width: 40px; height: 40px; font-size: 26px !important; }
  .hy-chip { padding: 5px 10px; font-size: 13px; }
  .hy-tab { padding: 8px 10px; font-size: 14px; }
  .hy-ed .hy-title > span:last-child { display: none; }
  .hy-season .hy-coins { display: none; }
  .hy-ed-bar { flex-wrap: nowrap; }
  .hy-ed-opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hy-ed-opts::-webkit-scrollbar { display: none; }
  .hy-ed-size { width: 34px; height: 34px; flex: none; }
  .hy-ed-lbl, .hy-ed-tip { white-space: nowrap; }
  .hy-se-hero { grid-template-columns: 1fr; gap: 10px; padding: 12px; text-align: center; }
  .hy-se-tier { width: 96px; height: 96px; justify-self: center; }
  .hy-se-tiernum b { font-size: 36px; }
  .hy-se-h { font-size: 20px; }
  .hy-se-hint { font-size: 12px; }
  .hy-se-prog .hy-row { justify-content: center; }
  .hy-se-feature { display: none; }
  .hy-scroll { display: none; }
  .hy-se-card { width: 128px; min-height: 220px; }
  .hy-se-vis, .hy-se-cv { width: 84px; height: 84px; }
  .hy-se-line { width: calc(30 * 140px - 12px); }
  .hy-ach-grid { grid-template-columns: 1fr; }
  .hy-ach-ico { width: 48px; height: 48px; font-size: 24px; }
  .hy-crew-main { grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; overflow: auto; }
  .hy-crew-main .hy-panel { overflow: visible; min-height: auto; }
  .hy-ed-build { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 8px; }
  .hy-ed-tools { flex-direction: row; order: 2; padding: 6px; overflow-x: auto; }
  .hy-ed-tool { width: 56px; }
  .hy-ed-sep { width: 1px; height: auto; margin: 6px 2px; }
  .hy-ed-side { order: 3; }
  .hy-ed-bar-r .hy-icobtn { width: 34px; height: 34px; font-size: 17px; }
  .hy-ed-nestr { width: 100px; }
  .hy-ed-sharebox { flex-direction: column; }
  .hy-ed-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .hy-ed-card-a { flex-wrap: wrap; }
  .hy-ach-pop { top: calc(8px + env(safe-area-inset-top, 0px)); }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hy-se-hero { padding: 8px 14px; }
  .hy-se-tier { width: 80px; height: 80px; }
  .hy-se-tiernum b { font-size: 30px; }
  .hy-se-hint { display: none; }
  .hy-se-feature { display: none; }
  .hy-se-hero { grid-template-columns: auto 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hy-overlay *, .hy-ach-pop { animation: none !important; transition: none !important; }
}
