/* Dofusle — thème inspiré de l'interface "pierre sombre" de Dofus 3
   (panneaux ardoise, liserés dorés, accents vert lime). */
:root {
  --bg: #0f0d0b;
  --panel: rgba(24, 21, 17, 0.92);
  --panel-2: rgba(36, 31, 25, 0.95);
  --line: #4a3f2e;
  --line-soft: rgba(201, 162, 90, 0.18);
  --gold: #e3b866;
  --gold-2: #f6d78f;
  --lime: #b8d433;
  --lime-dark: #7f9a18;
  --text: #f1e9da;
  --muted: #b3a68f;
  --ok: #4f9a2c;
  --ok-2: #66b83b;
  --partial: #d58a23;
  --partial-2: #e9a541;
  --ko: #8e2f2a;
  --ko-2: #a8423b;
  --radius: 12px;
  --font-title: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  overflow-x: hidden;
}
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(15, 13, 11, 0.15), rgba(15, 13, 11, 0.85) 70%),
    linear-gradient(rgba(15, 13, 11, 0.35), rgba(15, 13, 11, 0.9)),
    url('../assets/game/ui/background.jpg') center / cover no-repeat;
}
a { color: var(--gold-2); }
button { font: inherit; color: inherit; }
img.broken { visibility: hidden; }

/* ---------- En-tête ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 18px 16px 6px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { filter: drop-shadow(0 2px 6px rgba(184, 212, 51, 0.45)); }
.brand-name {
  font: 700 34px/1 var(--font-title); letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fff6d8, var(--gold) 60%, #b07a2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.brand-name em { font-style: normal; background: linear-gradient(180deg, #e8ff7a, var(--lime) 60%, var(--lime-dark)); -webkit-background-clip: text; background-clip: text; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer;
  font: 700 18px var(--font-title); color: var(--gold-2);
  display: grid; place-items: center;
}
.icon-btn img { width: 26px; height: 26px; }
.icon-btn:hover { border-color: var(--gold); }

/* ---------- Onglets des modes ---------- */
.modes {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  max-width: 1100px; margin: 8px auto 0; padding: 0 16px;
}
.mode-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font: 600 16px var(--font-title);
  transition: border-color .15s, color .15s, transform .15s;
}
.mode-tab img { width: 30px; height: 30px; object-fit: contain; }
.mode-tab:hover { color: var(--text); border-color: var(--gold); transform: translateY(-1px); }
.mode-tab.active {
  color: #1b1a0b; border-color: var(--lime);
  background: linear-gradient(180deg, #d9f05a, var(--lime) 55%, var(--lime-dark));
  box-shadow: 0 0 18px rgba(184, 212, 51, 0.35);
}

/* ---------- Contenu ---------- */
.app { max-width: 1100px; margin: 0 auto; padding: 16px; outline: none; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--line-soft), 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 16px;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mode-title { display: flex; align-items: center; gap: 12px; }
.mode-icon { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.mode-title h2 { margin: 0; font: 700 26px/1.1 var(--font-title); color: var(--gold-2); }
.mode-intro { margin: 2px 0 0; color: var(--muted); max-width: 560px; }
.mode-switch { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode-switch button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 700; }
.mode-switch button.active { background: var(--panel-2); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold); }

/* ---------- Chargement ---------- */
.loader { max-width: 480px; margin: 60px auto; text-align: center; color: var(--muted); }
.loader-bar { height: 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.loader-fill { height: 100%; width: 2%; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); transition: width .25s; }
.error { max-width: 560px; margin: 40px auto; text-align: center; }

/* ---------- Saisie ---------- */
.input-panel { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.guess-form { display: flex; gap: 8px; }
.guess-form.disabled { opacity: 0.55; }
.ac-wrap { position: relative; flex: 1; min-width: 0; }
.guess-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0d0b09; border: 1px solid var(--line); color: var(--text);
  font: 600 16px var(--font);
}
.guess-input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(184, 212, 51, 0.18); }
.guess-btn, .btn {
  padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 800;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
}
.guess-btn, .btn.primary {
  background: linear-gradient(180deg, #d9f05a, var(--lime) 55%, var(--lime-dark));
  border-color: var(--lime); color: #1b1a0b;
}
.btn:hover, .guess-btn:hover { filter: brightness(1.08); }
button:disabled { cursor: not-allowed; }
.counter { color: var(--muted); font-size: 13px; padding-left: 4px; }

.ac-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none; display: none;
  background: #17140f; border: 1px solid var(--gold); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); max-height: 360px; overflow-y: auto;
}
.ac-list.open { display: block; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ac-item.active, .ac-item:hover { background: rgba(184, 212, 51, 0.14); }
.ac-img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ac-img.placeholder { display: inline-block; }
.ac-text { display: flex; flex-direction: column; min-width: 0; }
.ac-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { font-size: 12px; color: var(--muted); }

/* ---------- Grille de feedback ---------- */
.grid-wrap { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.grid-wrap.empty .grid-head { opacity: 0.55; }
.grid { --cols: 7; min-width: calc(150px + var(--cols) * 104px); }
.grid-row { display: grid; grid-template-columns: 150px repeat(var(--cols), minmax(96px, 1fr)); gap: 6px; margin-bottom: 6px; }
.cell {
  position: relative; min-height: 84px; padding: 6px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.35);
  font-size: 13px; font-weight: 700; line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  overflow-wrap: break-word; hyphens: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.cell.head {
  min-height: 0; padding: 6px 4px; background: none; border: 0; box-shadow: none;
  border-bottom: 2px solid var(--gold); border-radius: 0;
  color: var(--gold-2); font: 600 14px var(--font-title); cursor: help;
}
.cell.head.name-col { cursor: default; }
.cell.name-col { background: var(--panel-2); border-color: var(--line); flex-direction: column; gap: 2px; }
.cell.name-col.ok { border-color: var(--ok-2); box-shadow: 0 0 0 1px var(--ok-2), 0 0 16px rgba(102, 184, 59, 0.35); }
.row-img { width: 52px; height: 52px; object-fit: contain; }
.row-name { font-size: 12.5px; }
.cell.ok { background: linear-gradient(180deg, var(--ok-2), var(--ok)); }
.cell.partial {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, var(--partial-2), var(--partial));
}
.cell.ko { background: linear-gradient(180deg, var(--ko-2), var(--ko)); }
.cell-stack { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cell-icon { width: 34px; height: 34px; object-fit: contain; }
.swatches { display: flex; gap: 4px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.swatch + .swatch { width: 15px; height: 15px; align-self: center; }
.cell-sub { font-size: 11px; font-weight: 600; opacity: 0.85; }
.cell-els { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; flex-direction: column; }
.cell-els .el-icon { width: 30px; height: 30px; }
.cell-sr { font-size: 11px; }
.cell .muted { color: rgba(255, 255, 255, 0.75); }
.arrow {
  position: absolute; right: 5px; top: 4px; font-size: 13px;
  color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.grid-row.new .cell:not(.name-col) { animation: flip .5s ease both; }
.grid-row.new .name-col { animation: pop .3s ease both; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0 4px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend.static { justify-content: flex-start; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.sw.ok { background: var(--ok-2); }
.sw.partial { background: var(--partial-2); }
.sw.ko { background: var(--ko-2); }

/* ---------- Indices ---------- */
.hints { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hint-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hint {
  display: flex; flex-direction: column; align-items: center; min-width: 150px;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1px dashed var(--line);
}
.hint:not(:disabled) { border-style: solid; border-color: var(--gold); }
.hint:disabled { opacity: 0.6; }
.hint-title { font: 600 15px var(--font-title); color: var(--gold-2); }
.hint-state { font-size: 12px; color: var(--muted); }
.hint-body { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; text-align: center; }
.hint-body p { margin: 0; }
.silhouette { width: 120px; height: 120px; object-fit: contain; filter: brightness(0) drop-shadow(0 0 6px rgba(227, 184, 102, 0.6)); }

/* ---------- Visuel (sort / objet / carte) ---------- */
.clue { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.clue-visual {
  width: 168px; height: 168px; border-radius: 16px; overflow: hidden; position: relative;
  background: radial-gradient(circle, #2c261d, #120f0c); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4), 0 0 30px rgba(227, 184, 102, 0.18);
  display: grid; place-items: center;
}
.clue-visual img { width: 100%; height: 100%; object-fit: contain; transition: filter .6s, transform .6s; }
.clue-meta h3 { margin: 0 0 6px; font: 600 18px var(--font-title); color: var(--gold-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px;
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip.locked { color: var(--muted); border-style: dashed; font-weight: 600; }
.effects { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.effects li { padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); font-weight: 600; }
.effects li.hidden-fx { color: var(--muted); letter-spacing: 2px; }

/* ---------- Mode carte ---------- */
.map-frame {
  position: relative; width: 100%; aspect-ratio: 1.43; max-height: 62vh; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--gold); background: #0c0a08;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.map-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.map-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.65); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.map-rows { display: grid; gap: 6px; margin-top: 12px; }
.map-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; animation: pop .3s ease both; }
.map-row.ok { background: linear-gradient(180deg, var(--ok-2), var(--ok)); }
.map-row.partial { background: linear-gradient(180deg, var(--partial-2), var(--partial)); }
.map-row.ko { background: linear-gradient(180deg, var(--ko-2), var(--ko)); }
.map-row .dir { font-size: 22px; width: 30px; text-align: center; }
.map-row .dist { font-variant-numeric: tabular-nums; }
.map-row small { display: block; font-weight: 600; opacity: 0.85; }

/* ---------- Victoire ---------- */
.result:empty { display: none; }
.win-card { margin: 12px 0; text-align: center; border-color: var(--lime); box-shadow: 0 0 30px rgba(184, 212, 51, 0.2), inset 0 1px 0 var(--line-soft); }
.win-title { font: 700 24px var(--font-title); color: var(--lime); }
.reveal { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0; text-align: left; flex-wrap: wrap; }
.reveal h3 { margin: 0; font: 700 22px var(--font-title); color: var(--gold-2); }
.reveal p { margin: 2px 0; }
.reveal-img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.reveal-map { width: min(360px, 100%); border-radius: 10px; border: 1px solid var(--line); }
.ext { font-size: 13px; }
.win-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.next-daily { color: var(--muted); margin: 6px 0 0; }
.countdown { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 800; }

/* ---------- Modale ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .15s;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: #1a1612; border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 600 20px var(--font-title); color: var(--gold-2); }
.modal-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 14px 18px 18px; }
.help-list { padding-left: 18px; }
.help-list li { margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--panel-2); border-radius: 10px; border: 1px solid var(--line); text-align: center; }
.stat strong { font: 700 26px var(--font-title); color: var(--gold-2); }
.stat span { font-size: 12px; color: var(--muted); }
.dist { display: grid; gap: 4px; }
.dist-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.dist-label { text-align: right; font-weight: 700; color: var(--muted); }
.dist-bar { background: var(--ok); border-radius: 4px; padding: 1px 6px; text-align: right; font-size: 12px; font-weight: 800; min-width: 24px; }

/* ---------- Pied de page ---------- */
.foot { max-width: 900px; margin: 40px auto 0; padding: 18px 16px 30px; text-align: center; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.foot p { margin: 6px 0; }
.link { background: none; border: 0; color: var(--gold-2); text-decoration: underline; cursor: pointer; font-size: 12.5px; }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60;
  background: #f1e9da; color: #1b1a0b; padding: 10px 18px; border-radius: 99px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { text-align: center; padding: 40px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .top { padding-top: 12px; }
  .brand-name { font-size: 28px; }
  .modes { gap: 5px; padding: 0 8px; flex-wrap: nowrap; }
  .mode-tab { padding: 6px 10px 6px 6px; font-size: 13.5px; gap: 4px; }
  .mode-tab img { width: 22px; height: 22px; }
  .grid-row > .name-col { position: sticky; left: 0; z-index: 2; box-shadow: 6px 0 10px rgba(0, 0, 0, 0.45); }
  .grid-head > .name-col { background: #15120e; }
  .mode-head { flex-direction: column; align-items: flex-start; }
  .mode-title h2 { font-size: 22px; }
  .clue { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .clue .chips { justify-content: center; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .grid { min-width: calc(110px + var(--cols) * 86px); }
  .grid-row { grid-template-columns: 110px repeat(var(--cols), minmax(82px, 1fr)); gap: 4px; }
  .cell { min-height: 74px; font-size: 11.5px; padding: 5px 4px; }
  .row-img { width: 40px; height: 40px; }
  .guess-btn { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Indices cliquables ---------- */
.hints { margin: 0 0 4px; }
.hint-wrap.open { align-items: stretch; }
.hint-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px;
  padding: 8px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--lime);
}
.hint-card .hint-body { background: none; border: 0; padding: 0; }
.hint:not(:disabled):hover { background: rgba(184, 212, 51, 0.1); }
.hint:not(:disabled) .hint-state { color: var(--lime); font-weight: 700; }
.hints.compact { justify-content: flex-start; margin-top: 10px; }
.hints.compact .hint, .hints.compact .hint-card { min-width: 120px; padding: 6px 12px; }
.hints.compact .hint-card { align-items: flex-start; }
.hints.compact .effects { min-width: 220px; }

/* ---------- Grille sans vignette ---------- */
.cell.name-col.no-img { font-size: 13px; }
.cell.name-col.no-img .row-name { font-size: 13.5px; font-weight: 800; }

/* ---------- Victoire : jeu suivant ---------- */
.next-link { text-decoration: none; display: inline-flex; align-items: center; }
.effects.small li { font-size: 12.5px; padding: 2px 8px; }
.reveal .effects.small { margin: 6px 0; max-width: 420px; }

/* ---------- Mode carte : mise en page + mini-carte ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.map-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.map-col .input-panel { margin: 0; }
.minimap-panel { padding: 10px; }
.minimap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.minimap-head strong { font: 600 15px var(--font-title); color: var(--gold-2); }
.minimap { position: relative; width: 100%; display: flex; justify-content: center; }
.minimap.disabled { opacity: 0.6; pointer-events: none; }
.minimap-canvas { display: block; cursor: crosshair; border-radius: 6px; background: #0c0a08; touch-action: none; user-select: none; }
.minimap.zoomed .minimap-canvas { cursor: grab; }
.minimap.dragging .minimap-canvas { cursor: grabbing; }
.minimap-controls { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; z-index: 4; }
.minimap-btn {
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer; pointer-events: auto;
  background: rgba(12, 10, 8, 0.85); border: 1px solid var(--gold); color: var(--gold-2);
  font: 700 17px/1 var(--font-title); display: grid; place-items: center;
}
.minimap-btn:hover { background: rgba(40, 32, 20, 0.95); }
.minimap-tip {
  position: absolute; pointer-events: none; z-index: 5; white-space: nowrap;
  background: rgba(12, 10, 8, 0.92); border: 1px solid var(--gold); color: var(--text);
  padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.map-row { grid-template-columns: 1fr auto; }

/* ---------- Mode cri ---------- */
.cry-visual { background: radial-gradient(circle, #33402a, #120f0c); }
.clue-visual img.cry-emblem { width: 72px; height: 72px; filter: drop-shadow(0 0 12px rgba(184, 212, 51, 0.6)); }
.cry-player { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; max-width: 360px; }
.cry-play {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 16px;
  background: linear-gradient(180deg, #d9f05a, var(--lime) 55%, var(--lime-dark)); border: 1px solid var(--lime); color: #1b1a0b;
}
.cry-play.playing { box-shadow: 0 0 0 4px rgba(184, 212, 51, 0.25); }
.cry-icon { width: 18px; text-align: center; }
.cry-bar { height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.cry-progress { height: 100%; width: 0; background: var(--lime); transition: width .1s linear; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .modes { flex-wrap: wrap; }
  .hints.compact { justify-content: center; }
}
