/* ArdreamPrime theme "Kor ve Kül": pages inside the game (/welcome, /event, /pus: PC client WebView2 window, web game
   iframe, phones), the PC launcher's news box (/launcher) and the browser start page (/play). Loaded after tokens.css
   and site.css; reuses their components (panel, button, tabs, chip, note, week, ev-list, prose). */

/* ---------- in-game frame ---------- */
body.ingame { min-height: 100vh; background: radial-gradient(120% 80% at 50% 0%, var(--coal-2), var(--coal)); }
.ig-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: rgba(13,11,10,.96); border-bottom: 1px solid var(--line); }
.ig-brand { font-size: 24px; }
.ig-title { font: 400 22px/1 var(--f-title); letter-spacing: .04em; color: var(--flame); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ig-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ig-main { padding: 16px 0 28px; }
.ig-wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.ig-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.ig-sec { margin-top: 18px; }
.ig-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ig-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 20px; }
.ig-empty .ico { width: 34px; height: 34px; color: var(--flame); }
.ig-empty p { margin: 0; color: var(--bone); font-size: 17px; }
.ig-prose { padding: 22px 24px; }
.ig-next h3 { font-size: 40px; margin: 8px 0 4px; }
.ig-next .meta { color: var(--smoke); margin-bottom: 14px; }
.ig-next .countdown { justify-content: flex-start; }
.ig-next .countdown b { font-size: 52px; }
.ig-week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
body.ingame .panel { padding: 20px; }
body.ingame .panel-head h3 { font-size: 30px; }

/* ---------- store ---------- */
.ig-bal { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-body); color: var(--text); white-space: nowrap; }
.ig-bal b { color: var(--bone); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ig-bal span { padding: 7px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); }
.st-tabs { margin-bottom: 10px; }
.st-tabs a { padding: 9px 13px; font-size: 12px; }
.st-tabs a.st-green { color: #8fe0a9; }
.st-tabs a.st-green.on { background: linear-gradient(135deg, #8fe0a9, var(--ok)); color: #062010; box-shadow: none; }
.st-links { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.st-links > a { font: 600 13px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--smoke); padding: 6px 0; }
.st-links > a:hover, .st-links > a.on { color: var(--flame); }
.st-search { margin-left: auto; min-width: 220px; }
.st-search input { padding: 9px 0; font-size: 14px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.st-card { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 12px 14px; transition: transform .15s, box-shadow .15s; }
.st-card::before { display: none; }
.st-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ember), var(--glow); }
.st-card.featured { box-shadow: inset 0 0 0 1.5px rgba(255,179,71,.45); }
.st-off { position: absolute; top: 10px; right: 10px; }
.st-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1.5px rgba(255,179,71,.5); }
.st-icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.st-icon.big { width: 76px; height: 76px; flex: none; }
.st-icon.big img { width: 64px; height: 64px; }
.st-name { font-weight: 600; color: var(--bone); line-height: 1.25; }
.st-meta { font-size: 12px; color: var(--smoke); }
.st-price { font-weight: 700; }
.st-price s, .st-facts s { color: var(--smoke); font-weight: 500; margin-right: 4px; }
.price.kc { color: var(--flame); }
.price.bal { color: #9cc2ff; }
.st-buy { max-width: 620px; margin-inline: auto; }
.st-close { position: absolute; top: 10px; right: 14px; font-size: 26px; line-height: 1; color: var(--smoke); }
.st-close:hover { color: var(--flame); }
.st-buy-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding-right: 26px; }
.st-buy-head h2 { font-size: 34px; }
.st-buy-head p { margin: 6px 0 0; font-size: 14px; }
.st-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.st-facts div { background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px 12px; }
.st-facts dt { font: 700 10px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); margin-bottom: 6px; }
.st-facts dd { margin: 0; color: var(--bone); font-weight: 600; }
.st-qty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.stepper a, .stepper span { width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; color: var(--bone); }
.stepper a:hover { color: var(--flame); }
.stepper .off { color: var(--ash-2); }
.stepper b { min-width: 30px; text-align: center; color: var(--bone); }
.st-total { font-weight: 600; color: var(--bone); }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.st-actions form { margin: 0; }
.st-small { font-size: 13px; margin: 6px 0 0; }
.st-narrow { max-width: 520px; }
.st-table { overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; font: 700 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); padding: 8px; white-space: nowrap; }
.st-table td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.st-table td small { display: block; color: var(--smoke); font-size: 12px; }
.st-table tr.hl td { background: var(--ember-soft); }
.st-table form { margin: 0; }
.st-rows { display: grid; gap: 8px; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); margin: 0; }
.st-message { max-width: 560px; margin: 20px auto; }
body.ingame .pager { margin-top: 18px; }

/* ---------- launcher news box (401 x 355) ---------- */
body.lbox { margin: 0; background: var(--coal); color: var(--text); font: 13px/1.45 var(--f-body); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.lbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.lbox-head .eyebrow { font-size: 11px; }
.lbox-head a { font: 600 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); }
.lbox-head a:hover { color: var(--flame); }
.lbox-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--ash-2) transparent; }
.lbox-list li a { display: grid; gap: 4px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.lbox-list li a:hover { background: rgba(255,255,255,.03); }
.lbox-list li a:hover b { color: var(--flame); }
.lbox-list b { color: var(--bone); font-weight: 600; font-size: 14px; line-height: 1.25; }
.lbox-meta { display: flex; align-items: center; gap: 8px; color: var(--smoke); font-size: 11px; }
.lbox-meta .chip { padding: 4px 7px; font-size: 9px; }
.lbox-sum { color: var(--smoke); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lbox-list .empty { padding: 16px 12px; }

/* ---------- /play ---------- */
.play-start { display: grid; gap: 14px; justify-items: start; }
.play-go { font-size: 18px; padding: 20px 34px; }
.play-links { display: flex; gap: 8px; flex-wrap: wrap; }
.play-worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.play-worlds li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); }
.play-worlds i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.play-worlds li.down i { background: var(--karus); box-shadow: 0 0 10px var(--karus); }
.play-worlds b { color: var(--bone); }

/* ---------- small windows and phones ---------- */
@media (max-width: 760px) {
  .ig-grid { grid-template-columns: 1fr; }
  .ig-brand { display: none; }
  .st-search { margin-left: 0; width: 100%; min-width: 0; }
  .st-facts { grid-template-columns: 1fr 1fr; }
  .play-worlds li { grid-template-columns: 10px 1fr auto; }
  .play-worlds li > span.muted { grid-column: 2 / -1; }
}
@media (max-width: 480px) {
  .ig-bar { padding: 8px 10px; gap: 8px; }
  .ig-bal b { display: none; }
  .ig-wrap { width: calc(100% - 20px); }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-buy-head h2 { font-size: 28px; }
  body.ingame .panel { padding: 16px; }
}
