/* Arena of Beasts — Sezon 1: Ay Tutulması Turnuvası */

:root {
  --night: #161a33;
  --night-2: #1f2347;
  --dusk: #2b2758;
  --panel: rgba(30, 31, 66, 0.78);
  --panel-edge: rgba(223, 227, 240, 0.14);
  --moon: #e6e8f2;
  --moon-dim: #a8aecb;
  --eclipse: #f0a24b;
  --eclipse-hot: #ffcf7a;
  --parch: #ecdfc4;
  --parch-2: #d9c7a1;
  --ink: #2b2118;
  --blood: #d04a57;
  --mana: #7fb0ff;
  --elf: #86b96d;
  --buyucu: #8f88ff;
  --ork: #d9693f;
  --cuce: #4fb8a6;
  --common: #bfa070;
  --die-a: #3c3279;
  --die-b: #17143a;
  --die-edge: #f3c27a;
  --radius-card: 12px;
  --radius-ui: 10px;
  --font-display: 'Grenze Gotisch', 'Times New Roman', serif;
  --font-ui: 'Alegreya Sans', system-ui, sans-serif;
  --font-book: 'Alegreya', Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 50% -10%, #3a2f6b 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 120%, #3b1d22 0%, transparent 65%),
    var(--night);
  color: var(--moon);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  /* yıldızlar */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 8%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 30%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, #fff4 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 26%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 66%, #fff3 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 58%, #fff4 50%, transparent 51%);
  z-index: 0;
}

#embers { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
#app { position: relative; z-index: 2; min-height: 100dvh; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }

/* ---------- ay tutulması ---------- */
.eclipse {
  position: fixed;
  left: 50%;
  top: clamp(40px, 9vh, 110px);
  width: min(56vw, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  transition: all 1.2s cubic-bezier(.2, .7, .2, 1);
}
.eclipse .corona, .eclipse .disk { position: absolute; inset: 0; border-radius: 50%; }
.eclipse .corona {
  background: radial-gradient(circle, transparent 52%, rgba(255, 190, 110, .9) 55%, rgba(240, 120, 60, .35) 60%, transparent 72%);
  filter: blur(6px);
  animation: corona 9s ease-in-out infinite alternate;
}
.eclipse .disk {
  inset: 8%;
  background: radial-gradient(circle at 42% 38%, #2a2142, #0c0a1a 70%);
  box-shadow: 0 0 60px 10px rgba(255, 160, 80, .35), inset -18px -10px 40px rgba(255, 140, 70, .18);
}
@keyframes corona { from { transform: rotate(0) scale(1); opacity: .85; } to { transform: rotate(25deg) scale(1.04); opacity: 1; } }
body[data-screen='lobby'] .eclipse { width: min(40vw, 360px); opacity: .55; top: -120px; }
body[data-screen='game'] .eclipse { width: min(34vw, 300px); opacity: .35; top: 34%; }

/* ---------- genel ---------- */
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--eclipse-hot); outline-offset: 2px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.muted { color: var(--moon-dim); }
.loading { display: grid; place-items: center; min-height: 100dvh; font-family: var(--font-display); font-size: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .7em 1.1em;
  border-radius: var(--radius-ui);
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, .06);
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  background: linear-gradient(180deg, #f7b65f, #d97a2c);
  color: #2a1406;
  border-color: #ffd59a;
  box-shadow: 0 6px 24px -8px rgba(240, 140, 60, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.primary:hover { background: linear-gradient(180deg, #ffc777, #e48a3a); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.tiny { padding: .38em .7em; font-size: .88rem; }
.btn.big { justify-content: flex-start; text-align: left; padding: .9em 1.1em; font-size: 1.08rem; }
.btn.big .ic { width: 2em; height: 2em; }
.btn.big small { display: block; font-weight: 500; font-size: .82rem; opacity: .78; }
.link { background: none; border: 0; color: var(--moon-dim); text-decoration: underline; text-underline-offset: 3px; padding: .4em; }
.link:hover { color: var(--moon); }

/* ---------- ana sayfa ---------- */
.home {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 80px) 16px calc(32px + var(--safe-b));
}
.brand { text-align: center; position: relative; margin-bottom: clamp(24px, 5vh, 56px); }
.season { margin: 0 0 .4em; color: var(--eclipse-hot); font-weight: 700; letter-spacing: .04em; }
.season span { color: var(--moon); font-weight: 500; margin-left: .4em; }
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .82;
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 0 40px rgba(255, 150, 70, .35);
}
.title .t1, .title .t3 {
  font-size: clamp(4rem, 15vw, 9.5rem);
  background: linear-gradient(180deg, #fff4d6 0%, #f5c27a 45%, #c8742f 80%, #7b3517 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(30, 10, 0, .55));
}
.title .t2 {
  font-family: var(--font-book);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--moon-dim);
  margin: .1em 0 .15em;
}
.title .t3 { letter-spacing: .02em; }
.pitch { font-family: var(--font-book); font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--moon); margin: 1em 0 0; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 300px 1fr; grid-template-areas: 'who champs' 'play champs' 'meta meta'; align-items: start; }
  .meta { grid-area: meta; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; align-items: start; }
  .who { grid-area: who; }
  .champs:not(.mini) { grid-area: champs; }
  .play { grid-area: play; }
}
.who, .play, .meta { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .meta { display: grid; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--moon-dim); font-size: .92rem; }
.field input, .join input, .chat input {
  font: inherit; color: var(--moon);
  background: rgba(10, 10, 30, .55);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-ui);
  padding: .75em .9em;
  font-size: 1.05rem;
  min-width: 0;
}
.rank {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline;
  padding: 12px 14px; border-radius: var(--radius-ui); background: var(--panel); border: 1px solid var(--panel-edge);
}
.rank > b { font-family: var(--font-display); font-size: 1.4rem; color: var(--eclipse-hot); }
.rank > i, .r-xp > i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; display: block; }
.rank > i b, .r-xp > i b { display: block; height: 100%; background: linear-gradient(90deg, #d97a2c, #ffd27a); }
.rank small { grid-column: 1 / -1; color: var(--moon-dim); }
.join { display: flex; gap: 8px; }
.join input { flex: 1; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.home-foot { display: flex; justify-content: center; gap: 18px; margin-top: 28px; }

/* şampiyon kartları */
.champs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.champs:not(.mini) .champ { padding: 16px 12px 14px; }
.champs:not(.mini) .champ-name { font-size: 1.45rem; }
@media (max-width: 760px) {
  .champs:not(.mini) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
  .champs:not(.mini) .champ { scroll-snap-align: center; }
}
.champ {
  --tc: var(--common);
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tc) 28%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(36, 34, 74, .92), rgba(20, 20, 46, .92));
  text-align: center;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .25s;
}
.champ:hover { transform: translateY(-3px); }
.champ.on {
  border-color: var(--tc);
  box-shadow: 0 0 0 1px var(--tc), 0 18px 50px -18px var(--tc);
}
.champ.on::after {
  content: attr(data-sel);
  position: absolute; top: 10px; right: 12px;
  font-size: .75rem; font-weight: 800; color: var(--night); background: var(--tc);
  padding: 2px 8px; border-radius: 20px;
}
.ty-elf { --tc: var(--elf) !important; }
.ty-buyucu { --tc: var(--buyucu) !important; }
.ty-ork { --tc: var(--ork) !important; }
.ty-cuce { --tc: var(--cuce) !important; }
.champ-sigil .sigil { width: 92px; height: 92px; color: var(--tc); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tc) 60%, transparent)); }
.champ-name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.champ-tag { font-family: var(--font-book); font-style: italic; color: var(--moon-dim); min-height: 2.9em; }
.champ-stats { width: 100%; display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.stat { display: grid; grid-template-columns: 56px 1fr 22px; gap: 8px; align-items: center; font-size: .82rem; color: var(--moon-dim); text-align: left; }
.stat i { height: 5px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; display: block; }
.stat i b { display: block; height: 100%; background: var(--tc); }
.stat em { font-style: normal; color: var(--moon); font-weight: 700; text-align: right; }
.champ-special { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .84rem; color: var(--moon-dim); margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; }
.champ-special .ic { width: 28px; height: 28px; color: var(--tc); }
.champ-special b { display: block; color: var(--moon); }
.champ.compact { flex-direction: row; padding: 10px 12px; gap: 10px; text-align: left; }
.champ.compact .sigil { width: 40px; height: 40px; }
.champ.compact .champ-name { font-size: 1.15rem; }
.champ.compact.on::after { display: none; }
.champs.mini { grid-template-columns: 1fr; gap: 8px; }

/* ---------- kuyruk / overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(8, 8, 22, .72);
  backdrop-filter: blur(6px);
  padding: 16px;
  animation: fade .25s ease;
}
.overlay.light { background: transparent; backdrop-filter: none; place-items: end center; padding-bottom: calc(120px + var(--safe-b)); }
@keyframes fade { from { opacity: 0; } }
.queue-box, .sheet, .result {
  width: min(460px, 100%);
  background: linear-gradient(180deg, #2a2658, #1a1a3e);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 40px 80px -30px #000;
  max-height: 90dvh; overflow: auto;
}
.queue-box h2, .sheet h2, .result h2 { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; margin: .1em 0 .3em; }
.q-time { font-size: 2rem; font-weight: 800; color: var(--eclipse-hot); margin: 0; }
.spin-die .d20 { width: 96px; height: 96px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet { text-align: left; }
.howto { padding-left: 1.2em; display: flex; flex-direction: column; gap: .6em; }
.howto li::marker { color: var(--eclipse); font-weight: 800; }
.range { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; margin: 14px 0; }
.range input { accent-color: var(--eclipse); }
.check { display: flex; gap: 10px; align-items: center; margin: 14px 0 20px; }
.emote-pick { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 40px; padding: 8px; backdrop-filter: blur(8px); }
.emote-pick button { font-size: 1.7rem; background: none; border: 0; padding: 4px 6px; border-radius: 50%; transition: transform .15s; }
.emote-pick button:hover { transform: scale(1.25); }

/* ---------- lobi ---------- */
.lobby { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(24px + var(--safe-b)); }
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.room-code { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--panel-edge); padding: 8px 10px 8px 16px; border-radius: 14px; }
.room-code span { color: var(--moon-dim); font-size: .85rem; }
.room-code b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .12em; color: var(--eclipse-hot); line-height: 1; }
.lobby-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .lobby-grid { grid-template-columns: 1fr 380px; } }
.seats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.seat {
  --tc: var(--moon-dim);
  position: relative;
  min-height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 18px 12px;
  border-radius: 16px;
  background: radial-gradient(100% 60% at 50% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent), var(--panel);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  text-align: center;
}
.seat.ready { border-color: var(--tc); }
.seat.empty { border-style: dashed; background: rgba(20, 20, 46, .5); color: var(--moon-dim); }
.seat-sigil .sigil, .seat-sigil .ic { width: 70px; height: 70px; color: var(--tc); }
.seat.empty .seat-sigil .ic { opacity: .35; }
.seat-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.seat-name em { font-family: var(--font-ui); font-style: normal; font-size: .8rem; color: var(--moon-dim); }
.seat-type { color: var(--tc); font-weight: 700; }
.seat-state { font-size: .82rem; color: var(--moon-dim); }
.seat.ready .seat-state { color: var(--moon); }
.seat-bots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.seat-bots .btn { border-color: color-mix(in srgb, var(--tc) 50%, transparent); }
.kick { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.4rem; color: var(--moon-dim); }
.kick:hover { color: var(--blood); }
.lobby-side { display: flex; flex-direction: column; gap: 10px; }
.lobby-side h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.lobby-side h3 small { font-family: var(--font-ui); font-size: .8rem; color: var(--moon-dim); font-weight: 500; margin-left: 6px; }
.scenarios { display: grid; gap: 8px; }
.scn {
  text-align: left; padding: 10px 12px; border-radius: var(--radius-ui);
  background: rgba(20, 20, 46, .6); border: 1px solid var(--panel-edge);
  display: flex; flex-direction: column; gap: 2px;
}
.scn span { font-size: .85rem; color: var(--moon-dim); }
.scn.on { border-color: var(--eclipse); background: linear-gradient(90deg, rgba(240, 162, 75, .16), rgba(20, 20, 46, .6)); }
.scn:disabled { cursor: default; }
.scn:disabled:not(.on) { opacity: .55; }
.lobby-cta .btn { width: 100%; }
.chat { display: flex; flex-direction: column; gap: 8px; background: rgba(10, 10, 30, .4); border: 1px solid var(--panel-edge); border-radius: var(--radius-ui); padding: 10px; }
.chat-log { max-height: 160px; overflow-y: auto; font-size: .9rem; }
.chat-log p { margin: 0 0 4px; }
.chat-log b { color: var(--eclipse-hot); }
.chat form { display: flex; gap: 6px; }
.chat input { flex: 1; padding: .5em .7em; font-size: .95rem; }

/* ---------- oyun ---------- */
body[data-screen='game'] { overflow: hidden; }
.game {
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto auto auto;
  grid-template-areas: 'top' 'foes' 'stage' 'mine' 'handbar' 'hand';
  padding: 0 0 var(--safe-b);
  overflow: hidden;
}
@media (min-width: 1100px) {
  .game { grid-template-columns: 1fr 320px; grid-template-areas: 'top drawer' 'foes drawer' 'stage drawer' 'mine drawer' 'handbar drawer' 'hand drawer'; }
}
.topbar { grid-area: top; display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.tb-scn { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tb-scn b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-scn span { color: var(--moon-dim); font-size: .9rem; white-space: nowrap; }
.tb-tools { display: flex; gap: 2px; }
@media (min-width: 1100px) { .tb-tools [data-act='drawer'] { display: none; } }

.foes { grid-area: foes; display: flex; gap: 10px; padding: 4px 12px; justify-content: center; }
.foes .pl { flex: 1 1 0; max-width: 360px; }

.pl {
  --tc: var(--moon-dim);
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(36, 34, 74, .9), rgba(22, 22, 50, .9));
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  text-align: left;
  min-width: 0;
  transition: box-shadow .3s, border-color .3s, transform .2s, opacity .4s, filter .4s;
}
.pl.turn { border-color: var(--eclipse); box-shadow: 0 0 0 1px var(--eclipse), 0 0 30px -6px var(--eclipse); }
.pl.targetable { cursor: crosshair; animation: target 1s ease-in-out infinite; border-color: var(--blood); }
@keyframes target { 50% { box-shadow: 0 0 0 2px var(--blood), 0 0 30px -4px var(--blood); transform: translateY(-2px); } }
.pl.dead { opacity: .45; filter: grayscale(.9); }
.pl .tomb { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--blood); text-shadow: 0 2px 8px #000; transform: rotate(-8deg); }
.medal {
  flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 40%, #1a1838), #12112a 70%);
  border: 2px solid var(--tc);
  color: var(--tc);
}
.medal .sigil { width: 40px; height: 40px; }
.pl-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-name { display: flex; align-items: baseline; gap: 8px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name small { color: var(--tc); font-weight: 700; font-size: .8rem; }
.hp { position: relative; height: 18px; border-radius: 9px; background: rgba(0, 0, 0, .45); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #e8606c, #a8303d); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.hp.low i { background: linear-gradient(180deg, #ff6b4a, #b8251f); animation: lowhp 1s ease-in-out infinite; }
@keyframes lowhp { 50% { filter: brightness(1.35); } }
.hp s { position: absolute; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(127, 176, 255, .65) 0 4px, rgba(127, 176, 255, .35) 4px 8px); text-decoration: none; }
.hp span { position: relative; display: block; text-align: center; font-size: .78rem; font-weight: 800; line-height: 16px; text-shadow: 0 1px 2px #000; }
.hp span small { font-weight: 600; opacity: .75; }
.hp span em { font-style: normal; color: var(--mana); }
.pl-stats { display: flex; gap: 10px; font-size: .82rem; color: var(--moon-dim); font-weight: 700; }
.pl-stats > span { display: inline-flex; align-items: center; gap: 3px; }
.pl-stats .ic { width: 15px; height: 15px; }
.sp-ready { color: var(--eclipse-hot); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 4px var(--eclipse)); } }
.statuses { display: flex; gap: 4px; flex-wrap: wrap; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 3px; border-radius: 20px; font-size: .74rem; background: rgba(255, 255, 255, .1); }
.chip .ic { width: 15px; height: 15px; }
.s-poison { background: rgba(120, 200, 80, .22); color: #b8f08a; }
.s-stun { background: rgba(255, 220, 120, .2); color: #ffe39a; }
.s-bless { background: rgba(255, 200, 100, .2); color: #ffd27a; }
.s-dodge { background: rgba(140, 140, 200, .25); color: #c8c8ff; }
.s-rage { background: rgba(220, 70, 50, .28); color: #ff9c86; }
.s-chill { background: rgba(120, 190, 255, .22); color: #aee0ff; }

.stage { grid-area: stage; position: relative; display: grid; place-items: center; min-height: 0; }
.tray {
  position: relative;
  width: min(440px, 92%);
  min-height: min(250px, 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.tray-idle .d20 { width: 84px; height: 84px; opacity: .25; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(6deg); } }
.tray-cap { margin: 8px 0 0; min-height: 2.6em; font-size: .92rem; color: var(--moon-dim); max-width: 42ch; }
.d20 { display: block; }
.d20-num { font-family: var(--font-display); font-weight: 900; font-size: 44px; fill: var(--moon); }
.roll { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.roll-label { font-weight: 700; color: var(--moon-dim); font-size: .9rem; }
.roll-die { position: relative; }
.roll-die .d20 { width: clamp(96px, 18vh, 140px); height: clamp(96px, 18vh, 140px); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.roll.rolling .d20 { animation: tumble .5s linear infinite; }
@keyframes tumble { 0% { transform: rotate(0) scale(.94); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(.94); } }
.roll:not(.rolling) .d20 { animation: land .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes land { from { transform: scale(1.35) rotate(-12deg); } }
.roll-alt { position: absolute; left: 100%; top: 50%; transform: translate(10px, -50%); font-weight: 800; white-space: nowrap; color: var(--moon-dim); text-align: left; line-height: 1.1; }
.roll-alt small { display: block; font-weight: 600; font-size: .75rem; }
.roll-math { font-size: 1.05rem; color: var(--moon-dim); min-height: 1.5em; }
.roll-math b { color: var(--moon); font-size: 1.25rem; }
.roll-math span { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.roll-out { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; min-height: 1em; }
.roll.hit .roll-out { color: var(--eclipse-hot); }
.roll.miss .roll-out { color: var(--moon-dim); }
.roll.crit .roll-out { color: #ffe08a; text-shadow: 0 0 24px #ffb347; animation: pop .5s cubic-bezier(.2, 1.8, .4, 1); }
.roll.crit .d20 { --die-a: #8a5a10; --die-b: #3a2004; --die-edge: #ffe8a8; filter: drop-shadow(0 0 30px #ffb347); }
.roll.fumble .d20 { --die-a: #5a1a22; --die-b: #200810; }
.roll.fumble .roll-out { color: var(--blood); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.cast { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: castIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.cast .card { transform: scale(1.12); box-shadow: 0 0 60px -10px var(--tc), 0 20px 50px -20px #000; pointer-events: none; }
.cast-by { margin: 0; font-weight: 700; color: var(--moon-dim); }
@keyframes castIn { from { transform: translateY(80px) scale(.6) rotate(-6deg); opacity: 0; } }

.banner {
  position: absolute; top: 8%; left: 50%; transform: translate(-50%, -10px);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 6vw, 3.4rem);
  white-space: nowrap; opacity: 0; pointer-events: none; z-index: 5;
  padding: .05em .55em .12em; border-radius: 14px;
  background: rgba(14, 14, 36, .78); backdrop-filter: blur(4px);
  box-shadow: 0 10px 40px -10px #000;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .8);
  transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.banner.banner-mine { color: var(--eclipse-hot); text-shadow: 0 0 30px rgba(240, 162, 75, .7), 0 4px 20px #000; }
.banner.banner-death { color: var(--blood); }
.banner.banner-scn { color: var(--moon); }

.mine { grid-area: mine; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: stretch; padding: 6px 12px; }
.mine .pl { margin: 0; }
.mine .spectating { grid-column: 1 / -1; text-align: center; color: var(--moon-dim); padding: 10px; }
.energy { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; }
.energy > span { font-size: .75rem; color: var(--moon-dim); font-weight: 700; }
.gems { display: flex; gap: 5px; }
.gems i { width: 18px; height: 22px; clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); background: rgba(127, 176, 255, .15); transition: background .3s, transform .3s; }
.gems i.full { background: linear-gradient(180deg, #c6dcff, #4d84e8); filter: drop-shadow(0 0 6px rgba(127, 176, 255, .8)); }
.special-btn {
  display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 162, 75, .22), rgba(240, 162, 75, .06));
  border: 1px solid rgba(240, 162, 75, .55);
  max-width: 220px;
}
.special-btn .ic { width: 32px; height: 32px; color: var(--eclipse-hot); }
.special-btn b { display: block; font-size: .92rem; }
.special-btn small { font-size: .74rem; color: var(--moon-dim); }
.special-btn.sel { box-shadow: 0 0 0 2px var(--eclipse-hot), 0 0 26px -4px var(--eclipse); }
.special-btn[aria-disabled='true'] { filter: saturate(.3); opacity: .6; }
.special-btn.used { opacity: .35; }
.end-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 30px;
  background: linear-gradient(180deg, #f7b65f, #d97a2c); color: #2a1406; border: 1px solid #ffd59a;
  font-weight: 800; white-space: nowrap;
}
.end-btn:disabled { background: rgba(255, 255, 255, .06); color: var(--moon-dim); border-color: var(--panel-edge); cursor: default; }
.end-btn .timer { width: 36px; height: 36px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke: rgba(0, 0, 0, .2); stroke-width: 4; }
.timer .t-fill { stroke: #2a1406; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.end-btn:disabled .t-fill { stroke: var(--moon-dim); }
.timer .t-fill.hurry { stroke: #8b0d0d; }
body.my-turn .end-btn:not(:disabled) { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 4px rgba(240, 162, 75, .25), 0 0 30px -4px var(--eclipse); } }

.handbar { grid-area: handbar; display: flex; justify-content: center; min-height: 0; }
.hb-inner { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; margin: 2px 12px; border-radius: 30px; background: var(--panel); border: 1px solid var(--panel-edge); animation: fade .2s; }
.hb-inner > span { font-size: .92rem; }

.hand {
  grid-area: hand;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 18px 12px 12px;
  min-height: 150px;
  perspective: 900px;
}
.hand .slot { margin: 0 -3px; transform: rotate(calc(var(--i) * 3deg)) translateY(calc(var(--i) * var(--i) * 3px)); transition: transform .25s; }
.hand .slot:hover, .hand .slot:has(.sel) { z-index: 5; transform: translateY(-22px) scale(1.06); }
.hand-empty { align-self: center; }

/* kart */
.card {
  --tc: var(--common);
  position: relative;
  width: 132px; height: 186px;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 8px 6px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 60% at 50% 30%, #fbf3e0, transparent 70%),
    linear-gradient(180deg, var(--parch), var(--parch-2));
  color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--tc) 80%, #3a2a10);
  box-shadow: inset 0 0 0 3px #f6ecd5, inset 0 0 0 4px color-mix(in srgb, var(--tc) 55%, transparent), 0 10px 24px -10px rgba(0, 0, 0, .8);
  text-align: center;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.card.t-elf { --tc: var(--elf); }
.card.t-buyucu { --tc: var(--buyucu); }
.card.t-ork { --tc: var(--ork); }
.card.t-cuce { --tc: var(--cuce); }
.card.special { --tc: var(--eclipse); background: radial-gradient(120% 60% at 50% 30%, #fff1cf, transparent 70%), linear-gradient(180deg, #f3d9a6, #d9a85e); }
.card .cost {
  position: absolute; top: -8px; left: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #c6dcff, #3a6fd8 70%);
  border: 2px solid #f6ecd5; box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.card .cname { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.05; min-height: 2.1em; display: flex; align-items: center; padding: 0 6px; }
.card .art {
  width: 100%; flex: 1; min-height: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tc) 55%, #fff6), color-mix(in srgb, var(--tc) 85%, #1a1030));
  color: #fff8ec;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .35);
}
.card .art .ic { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.card .ctext { font-size: .72rem; line-height: 1.2; margin-top: 5px; min-height: 3.6em; display: flex; align-items: center; }
.card .ckind { font-size: .62rem; font-weight: 800; color: color-mix(in srgb, var(--tc) 70%, #2b2118); }
.card[aria-disabled='true'] { filter: brightness(.6) saturate(.5); }
.hand .card:not([aria-disabled='true']) { cursor: pointer; }
body.my-turn .hand .card:not([aria-disabled='true']) { box-shadow: inset 0 0 0 3px #f6ecd5, inset 0 0 0 4px color-mix(in srgb, var(--tc) 55%, transparent), 0 0 0 2px rgba(240, 162, 75, .55), 0 12px 26px -10px rgba(240, 162, 75, .55); }
.card.sel { box-shadow: 0 0 0 3px var(--eclipse-hot), 0 0 40px -6px var(--eclipse) !important; }
.card.flying { animation: fly .35s ease-in forwards; }
@keyframes fly { to { transform: translateY(-260px) scale(.6); opacity: 0; } }

/* çekmece */
.drawer {
  grid-area: drawer;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 12px calc(12px + var(--safe-b));
  background: rgba(14, 14, 34, .82);
  border-left: 1px solid var(--panel-edge);
  min-height: 0; overflow: hidden;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 1.2rem; }
@media (min-width: 1100px) { .drawer-head .btn { display: none; } }
.log { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }
.log li { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .03); color: var(--moon-dim); }
.log .lg-play { color: var(--moon); font-weight: 700; background: rgba(240, 162, 75, .1); }
.log .lg-damage { color: #ff9ea6; }
.log .lg-heal { color: #b6e59c; }
.log .lg-death, .log .lg-end { color: var(--eclipse-hot); font-weight: 800; }
.log .lg-turn { color: var(--moon); border-top: 1px solid rgba(255, 255, 255, .08); background: none; }
@media (max-width: 1099px) {
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 40; transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, .6); }
  .drawer.open { transform: none; }
}

/* ---------- efektler ---------- */
.float {
  position: fixed; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-size: 2.2rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .6), 0 0 18px rgba(0, 0, 0, .6);
  animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) forwards;
  white-space: nowrap;
}
.float-dmg { color: #ff5a64; }
.float-blocked { color: var(--mana); }
.float-heal { color: #9cf07a; }
.float-shield { color: var(--mana); font-size: 1.5rem; }
[class*='float-st-'] { font-size: 1.3rem; color: var(--moon); }
.float-st-poison { color: #b8f08a; }
.float-st-rage { color: #ff9c86; }
.float-st-chill { color: #aee0ff; }
.float-st-stun { color: #ffe39a; }
@keyframes rise { 0% { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -190%) scale(1); opacity: 0; } }
.shake { animation: shake .35s; }
.shake-strong { animation: shake .55s; }
@keyframes shake { 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.ring { position: fixed; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--c); transform: translate(-50%, -50%); animation: ring .8s ease-out forwards; }
@keyframes ring { to { width: 220px; height: 220px; opacity: 0; border-width: 1px; } }
.flash { position: fixed; inset: 0; animation: flash .45s ease-out forwards; mix-blend-mode: screen; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.bubble { position: fixed; transform: translate(-50%, -100%); font-size: 2.4rem; animation: bubble 2.1s ease forwards; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
@keyframes bubble { 0% { transform: translate(-50%, -60%) scale(.3); opacity: 0; } 15% { transform: translate(-50%, -110%) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -170%); opacity: 0; } }
.confetti { position: fixed; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: drop linear forwards; }
@keyframes drop { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }

#toasts { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { background: rgba(20, 20, 46, .95); border: 1px solid var(--panel-edge); padding: 8px 16px; border-radius: 20px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: tin .25s ease; transition: opacity .4s, transform .4s; text-align: center; }
.toast.bad { border-color: var(--blood); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { transform: translateY(-10px); opacity: 0; } }

/* sonuç */
.result.won { border-color: var(--eclipse); box-shadow: 0 0 80px -20px var(--eclipse), 0 40px 80px -30px #000; }
.result.won h2 { font-size: 4rem; background: linear-gradient(180deg, #fff4d6, #f5c27a 50%, #c8742f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result.lost h2 { font-size: 3.4rem; color: var(--moon-dim); }
.r-sub { font-family: var(--font-book); font-style: italic; color: var(--moon-dim); }
.r-xp { display: grid; gap: 6px; margin: 18px 0; }
.r-xp > b { font-size: 1.6rem; color: var(--eclipse-hot); }
.lvup { font-weight: 800; color: #ffe08a; animation: pop .6s cubic-bezier(.2, 1.8, .4, 1); }
.r-xp small { color: var(--moon-dim); }
.r-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- mobil ---------- */
@media (max-width: 700px) {
  .topbar { padding: 6px 8px; }
  .foes { gap: 6px; padding: 2px 8px; }
  .foes .pl { padding: 6px 8px; gap: 6px; }
  .foes[data-count='3'] .pl .medal, .foes[data-count='2'] .pl .medal { display: none; }
  .foes .pl .pl-stats { gap: 6px; font-size: .74rem; }
  .medal { width: 42px; height: 42px; }
  .medal .sigil { width: 30px; height: 30px; }
  .pl-name { font-size: .9rem; }
  .hp { height: 16px; }
  .hp span { line-height: 14px; font-size: .72rem; }
  .mine { grid-template-columns: 1fr auto; grid-template-areas: 'me me' 'energy end' 'special special'; gap: 6px; padding: 4px 8px; }
  .mine .pl { grid-area: me; }
  .energy { grid-area: energy; flex-direction: row; align-items: center; gap: 8px; }
  .special-btn { grid-area: special; max-width: none; padding: 6px 10px; }
  .special-btn .ic { width: 26px; height: 26px; }
  .end-btn { grid-area: end; padding: 6px 14px 6px 6px; }
  .end-btn .timer { width: 30px; height: 30px; }
  .mine .pl-stats > span:nth-child(n+3) { display: none; }
  .hand { justify-content: flex-start; overflow-x: auto; overflow-y: visible; padding: 14px 10px 8px; min-height: 0; scroll-snap-type: x proximity; scrollbar-width: none; perspective: none; }
  .hand::-webkit-scrollbar { display: none; }
  .hand .slot { margin: 0 3px; transform: none; scroll-snap-align: center; flex: none; }
  .hand .slot:hover { transform: none; }
  .hand .slot:has(.sel) { transform: translateY(-10px); }
  .card { width: 100px; height: 146px; padding: 6px 5px 4px; }
  .card .cost { width: 26px; height: 26px; font-size: 1rem; top: -6px; left: -6px; }
  .card .cname { font-size: .86rem; }
  .card .art .ic { width: 36px; height: 36px; }
  .card .ctext { font-size: .62rem; min-height: 3.7em; }
  .card .ckind { font-size: .56rem; }
  .tray { min-height: 0; }
  .roll-die .d20 { width: 84px; height: 84px; }
  .roll-out { font-size: 1.7rem; }
  .tray-cap { font-size: .82rem; min-height: 2.4em; margin-top: 4px; }
  .cast .card { transform: scale(1); }
  .seats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .seat { min-height: 160px; padding: 12px 8px; }
  .seat-sigil .sigil, .seat-sigil .ic { width: 50px; height: 50px; }
  .seat-name { font-size: 1.15rem; }
  .r-actions { grid-template-columns: 1fr; }
}
@media (max-height: 640px) and (max-width: 700px) {
  .tray-idle .d20 { width: 50px; height: 50px; }
  .banner { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* mobil sabit hızlı başlat çubuğu */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + var(--safe-b));
    background: linear-gradient(180deg, transparent, rgba(16, 16, 38, .96) 30%);
  }
  .dock .btn { flex: 1; padding: .85em .6em; }
  .home { padding-bottom: calc(110px + var(--safe-b)); }
  .champ-sigil .sigil { width: 64px; height: 64px; }
  .champ-tag { min-height: 0; }
}

/* zar kaplamaları */
.skin-kantasi { --die-a: #9b2335; --die-b: #2a0610; --die-edge: #ffb3a3; }
.skin-zumrut { --die-a: #23875a; --die-b: #06281a; --die-edge: #b9f2cc; }
.skin-aygumusu { --die-a: #dfe4f2; --die-b: #6a7392; --die-edge: #ffffff; }
.skin-aygumusu .d20-num { fill: #1d2140; }
.skin-ejderaltini { --die-a: #f0b54a; --die-b: #7a4108; --die-edge: #fff3c4; }
.skin-ejderaltini .d20-num { fill: #2a1404; }
.skins { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-ui); background: var(--panel); border: 1px solid var(--panel-edge); }
.skins > span { font-size: .85rem; font-weight: 700; color: var(--moon-dim); margin-right: auto; }
.skin { background: none; border: 0; padding: 2px; border-radius: 50%; }
.skin .d20 { width: 34px; height: 34px; }
.skin .d20-num { font-size: 40px; }
.skin.on { filter: drop-shadow(0 0 8px var(--eclipse)); transform: scale(1.12); }
.skin[aria-disabled='true'] { opacity: .45; filter: grayscale(.6); }

/* şan tablosu */
.board { margin-top: 28px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-edge); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.board-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.live { margin: 0; color: var(--moon-dim); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #6ee07a; box-shadow: 0 0 0 0 #6ee07a; animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } }
.board-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.board-list li { display: grid; grid-template-columns: 28px 1fr auto auto 60px; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.board-list li:nth-child(1) b { color: #ffd27a; }
.board-list li:nth-child(2) b { color: #dfe3f0; }
.board-list li:nth-child(3) b { color: #e3a46f; }
.board-list li b { font-family: var(--font-display); font-size: 1.2rem; text-align: center; }
.board-list li.you { background: rgba(240, 162, 75, .14); outline: 1px solid rgba(240, 162, 75, .5); }
.b-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-type { color: var(--tc); font-size: .85rem; font-weight: 700; }
.b-w { color: var(--moon-dim); font-size: .85rem; }
.board-list em { font-style: normal; font-weight: 800; color: var(--eclipse-hot); text-align: right; }
.board-note { font-size: .8rem; margin: 10px 0 0; }
.glory { margin-left: 10px; color: #ffe08a; }
@media (max-width: 560px) {
  .board-list li { grid-template-columns: 24px 1fr auto 46px; }
  .b-w { display: none; }
}

/* günlük görevler */
.quests { padding: 12px 14px; border-radius: var(--radius-ui); background: var(--panel); border: 1px solid var(--panel-edge); display: grid; gap: 10px; }
.quests h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.quest { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: .9rem; }
.quest em { font-style: normal; color: var(--eclipse-hot); font-weight: 800; font-size: .82rem; }
.quest i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; display: block; }
.quest i b { display: block; height: 100%; background: linear-gradient(90deg, #d97a2c, #ffd27a); }
.quest small { grid-column: 1 / -1; color: var(--moon-dim); font-size: .75rem; }
.quest.done span { text-decoration: line-through; color: var(--moon-dim); }
.quest.done i b { background: var(--elf); }
.qdone { display: block; font-weight: 700; color: #b6e59c; }
.hb-inner { max-width: min(680px, calc(100vw - 24px)); }
.hb-text { color: var(--moon-dim); font-size: .86rem; }
.hb-inner em { font-style: normal; color: var(--blood); font-weight: 700; }
@media (max-width: 700px) { .hb-inner { border-radius: 14px; } .hb-inner > span { font-size: .84rem; line-height: 1.25; } }

/* tutulma laneti */
body.eclipse-deep .eclipse .corona { background: radial-gradient(circle, transparent 52%, rgba(255, 70, 70, .95) 55%, rgba(170, 20, 60, .45) 60%, transparent 72%); }
body.eclipse-deep .eclipse { opacity: .6; }
body.eclipse-deep .eclipse .disk { box-shadow: 0 0 80px 20px rgba(220, 40, 60, .45), inset -18px -10px 40px rgba(255, 60, 60, .2); }
.banner.banner-eclipse { color: #ff6b7a; text-shadow: 0 0 30px rgba(220, 40, 60, .8), 0 4px 20px #000; }
