:root{
  color-scheme:dark;
  --bg:#08111f;
  --bg-soft:#0b1525;
  --surface:#0f1a2d;
  --surface-2:#132038;
  --surface-3:#172641;
  --line:#22324a;
  --line-soft:rgba(136,157,194,.13);
  --text:#f2f5fa;
  --muted:#93a3bf;
  --muted-2:#74839d;
  --blue:#86aef7;
  --gold:#d8aa59;
  --gold-soft:#f1d7a3;
  --green:#72d4a2;
  --red:#df7f83;
  --card-width:60px;
  --selected-width:110px;
  --ease:cubic-bezier(.2,.78,.22,1);
  --transition:cubic-bezier(.2,.78,.22,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.45;
  background:
    radial-gradient(circle at 16% -10%,rgba(55,94,163,.12),transparent 25%),
    linear-gradient(180deg,#08111f 0%,#0a1322 44%,#08111e 100%);
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{color:inherit}
img{display:block;max-width:100%}
[hidden]{display:none!important}

/* Header / Tool hub */
.hub-header{position:sticky;top:0;z-index:50;background:rgba(8,17,31,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(136,157,194,.08)}
.hub-header__inner{width:min(1240px,calc(100% - 36px));height:68px;margin:auto;display:flex;align-items:center;gap:22px}
.hub-brand{display:flex;align-items:center;gap:11px;flex-shrink:0}
.hub-brand__mark{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#172846;border:1px solid #294167;color:#f2dfb9;font:800 20px/1 Georgia,serif}
.hub-brand strong{display:block;font-size:14px}
.hub-brand small{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.tool-tabs{display:flex;gap:8px;overflow:auto}
.tool-tab{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;border-radius:9px;border:1px solid transparent;color:#b8c5da;font-size:13px;font-weight:600;white-space:nowrap}
.tool-tab.active{background:#13213a;border-color:#263955;color:#fff}

.page-shell{width:min(1240px,calc(100% - 36px));margin:0 auto 64px}

/* Free-standing tool intro: intentionally not a card */
.tool-intro{min-height:220px;display:grid;grid-template-columns:minmax(0,1fr) 390px;align-items:center;gap:24px;padding:28px 4px 26px;border-bottom:1px solid rgba(136,157,194,.09)}
.tool-intro__logo{display:flex;align-items:center;gap:16px;min-width:0}
.okey-mark{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:#192d50;border:1px solid #31507d;color:#f8e9cb;font:800 31px/1 Georgia,serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.tool-intro h1{margin:0;font-size:clamp(36px,4.1vw,58px);line-height:1;font-weight:750;letter-spacing:-.035em;color:#f6f7fa}
.tool-intro__cards{position:relative;height:190px}
.intro-card{position:absolute;top:26px;width:118px;aspect-ratio:38/52;filter:drop-shadow(0 14px 20px rgba(0,0,0,.28));transform-origin:50% 80%}
.intro-card img{width:100%;height:100%;object-fit:contain}
.intro-card--red{left:18px;transform:rotate(-11deg);animation:introFloatRed 5s ease-in-out infinite}
.intro-card--blue{left:130px;top:6px;transform:rotate(1deg);animation:introFloatBlue 4.8s ease-in-out infinite}
.intro-card--yellow{left:242px;transform:rotate(11deg);animation:introFloatYellow 5.2s ease-in-out infinite}
@keyframes introFloatRed{0%,100%{transform:rotate(-11deg) translateY(0)}50%{transform:rotate(-10deg) translateY(-5px)}}
@keyframes introFloatBlue{0%,100%{transform:rotate(1deg) translateY(0)}50%{transform:rotate(0deg) translateY(-7px)}}
@keyframes introFloatYellow{0%,100%{transform:rotate(11deg) translateY(0)}50%{transform:rotate(10deg) translateY(-5px)}}

/* Wiki-like sections */
.wiki-section{scroll-margin-top:88px;padding:30px 0;border-bottom:1px solid rgba(136,157,194,.08)}
.section-heading{display:flex;flex-direction:column;gap:0;margin-bottom:18px}
.section-heading--actions{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:18px}
.section-kicker{display:block;margin-bottom:5px;color:#8ea8d7;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.section-heading h2{margin:0;font-size:28px;letter-spacing:-.02em}
.section-heading p{margin:6px 0 0;color:var(--muted);font-size:14px}
.section-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.btn{height:40px;padding:0 14px;border-radius:9px;border:1px solid #273a56;background:#111d31;color:#dbe4f4;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease,opacity .16s ease}
.btn:hover:not(:disabled){background:#15243d;border-color:#334d70;transform:translateY(-1px)}
.btn:disabled{opacity:.38;cursor:not-allowed;transform:none}
.btn--reset{border-color:rgba(205,163,86,.28);background:rgba(205,163,86,.10);color:#f1ddb9}
.btn--danger{border-color:rgba(223,127,131,.2);background:rgba(223,127,131,.07);color:#e6b6b9}

/* Live helper */
.helper-grid{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:18px;align-items:start}
.workspace,.round-summary,.loot-section{background:var(--surface);border:1px solid var(--line-soft);border-radius:14px}
.workspace{padding:20px}
.round-summary{position:sticky;top:86px;padding:18px}
.selection-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.selection-label{color:#8ca4cf;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}
.selection-head h3{margin:4px 0 4px;font-size:23px}
.selection-head p{margin:0;color:var(--muted);font-size:13px}
.combo-state{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 12px;border-radius:9px;background:#111d31;border:1px solid #243650}
.combo-state strong{font-size:17px;color:#f2dfbb}
.status-dot{width:10px;height:10px;border-radius:50%;background:#64738a;transition:background .18s ease,box-shadow .18s ease}
.status-dot.valid{background:var(--green);box-shadow:0 0 0 4px rgba(114,212,162,.09)}
.status-dot.invalid{background:var(--red);box-shadow:0 0 0 4px rgba(223,127,131,.08)}
.selected-row{min-height:255px;padding:26px 0 20px;display:flex;justify-content:center;align-items:center;gap:24px;overflow:visible;perspective:900px}
.selected-slot{position:relative;width:var(--selected-width);aspect-ratio:38/52;border:0;padding:0;background:transparent;border-radius:12px;cursor:pointer;overflow:visible;transition:transform .18s ease,filter .18s ease,opacity .18s ease}
.selected-slot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(0,0,0,.26));pointer-events:none;user-select:none}
.selected-slot.empty{opacity:.24;filter:grayscale(1);cursor:default}
.selected-slot:not(.empty):hover{transform:translateY(-3px)}
.selected-slot.just-added{animation:selectedPop .34s var(--ease)}
.selected-slot.just-added::after,.selected-slot.valid-flash::after{content:"";position:absolute;inset:-5px;border-radius:14px;border:1px solid rgba(220,180,104,.72);pointer-events:none}
.selected-slot.just-added::after{animation:ringFade .48s ease-out}
.selected-slot.valid-flash::after{border-color:rgba(114,212,162,.72);animation:ringFade .52s ease-out}
@keyframes selectedPop{0%{opacity:.2;transform:translateY(8px) scale(.96)}100%{opacity:1;transform:none}}
@keyframes ringFade{0%{opacity:0;box-shadow:0 0 0 0 rgba(220,180,104,0)}35%{opacity:1;box-shadow:0 0 14px rgba(220,180,104,.18)}100%{opacity:0;box-shadow:0 0 0 8px rgba(220,180,104,0)}}
.selection-actions{display:flex;justify-content:center;gap:9px;margin-bottom:22px}
.deck-head{padding-top:17px;border-top:1px solid rgba(136,157,194,.09);display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:12px}
.deck-head h3{margin:0;font-size:18px}.deck-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.deck-legend{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;color:var(--muted);font-size:11px}
.deck-legend span{display:flex;align-items:center;gap:6px}
.legend-dot{width:7px;height:7px;border-radius:50%}.legend-dot--free{background:var(--green)}.legend-dot--picked{background:var(--gold)}.legend-dot--used{background:#68778e}
.deck{display:grid;gap:8px}
.deck-row{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgba(136,157,194,.07)}
.deck-row:first-child{border-top:0}
.row-label{height:58px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;letter-spacing:.04em}
.row-label.red{background:rgba(157,48,51,.14);color:#efb8b8}.row-label.blue{background:rgba(56,111,190,.14);color:#c5dcfb}.row-label.yellow{background:rgba(177,142,35,.14);color:#f0df9a}
.row-cards{display:grid;grid-template-columns:repeat(8,var(--card-width));justify-content:space-between;gap:8px}
.deck-card{position:relative;width:var(--card-width);aspect-ratio:38/52;border:0;padding:0;background:transparent;border-radius:8px;cursor:pointer;transition:transform .15s ease,filter .15s ease,opacity .15s ease}
.deck-card img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 10px rgba(0,0,0,.18));pointer-events:none;user-select:none}
.deck-card::before{content:"";position:absolute;inset:-3px;border-radius:10px;border:1px solid transparent;pointer-events:none;transition:border-color .15s ease,box-shadow .15s ease}
.deck-card:hover:not(.used):not(.selected){transform:translateY(-2px);filter:brightness(1.05)}
.deck-card:hover:not(.used):not(.selected)::before{border-color:rgba(134,174,247,.28)}
.deck-card.selected::before{border-color:rgba(216,170,89,.85);box-shadow:0 0 0 2px rgba(216,170,89,.08)}
.deck-card.used{opacity:.34;filter:grayscale(1) brightness(.6);cursor:not-allowed}
.deck-card.used::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#dce5f2;font-size:18px;text-shadow:0 2px 6px #000}
.deck-card.restored::before{border-color:rgba(134,174,247,.8);box-shadow:0 0 12px rgba(134,174,247,.15);animation:restore .6s ease}
@keyframes restore{from{box-shadow:0 0 0 rgba(134,174,247,0)}40%{box-shadow:0 0 14px rgba(134,174,247,.24)}to{box-shadow:0 0 0 rgba(134,174,247,0)}}

/* Round summary */
.summary-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.chest-rank{padding:6px 9px;border-radius:999px;background:#15243c;border:1px solid #283c59;color:#dce6f5;font-size:11px;font-weight:700}
.score-main{padding:15px 0 17px;border-bottom:1px solid rgba(136,157,194,.08);text-align:center}
.score-main small{display:block;color:var(--muted);font-size:11px}.score-main strong{display:block;margin:5px 0 4px;font-size:42px;line-height:1;color:#f6e9cc}.score-main span{font-size:13px;color:#a9c4ee}
.summary-stats{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid rgba(136,157,194,.08)}
.summary-stats div{padding:13px 10px}.summary-stats div:nth-child(odd){border-right:1px solid rgba(136,157,194,.08)}.summary-stats div:nth-child(-n+2){border-bottom:1px solid rgba(136,157,194,.08)}
.summary-stats small{display:block;color:var(--muted);font-size:10px}.summary-stats strong{display:block;margin-top:4px;font-size:19px}
.progress-block{padding:16px 0;border-bottom:1px solid rgba(136,157,194,.08)}
.progress-head{display:flex;justify-content:space-between;gap:10px;font-size:11px}.progress-head span{color:var(--muted)}.progress-head strong{color:#ead7b3}
.progress-track{position:relative;height:11px;margin-top:10px;border-radius:999px;background:#17243a;overflow:hidden}
.progress-track i{position:absolute;inset:0 auto 0 0;width:0%;border-radius:inherit;background:linear-gradient(90deg,#9a6332,#c79749 34%,#7a9dd8 73%,#d3aa55);transition:width .4s var(--ease)}
.marker{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.22)}.marker--silver{left:75%}.marker--gold{left:99.5%}
.progress-labels{display:flex;justify-content:space-between;margin-top:6px;color:var(--muted-2);font-size:9px}
.progress-block p{margin:9px 0 0;color:var(--muted);font-size:11px}
.history-block{padding-top:14px}.history-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.history-head strong{font-size:12px}.history-head small{color:var(--muted-2);font-size:10px}
.compact-history{display:grid;gap:7px;margin-top:9px}
.history-chip{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 0;border-top:1px solid rgba(136,157,194,.06)}
.history-chip:first-child{border-top:0}.history-chip.discard{opacity:.8}
.mini-cards{display:flex}.mini-cards img{width:20px;height:auto;margin-left:-5px}.mini-cards img:first-child{margin-left:0}
.history-copy{min-width:0}.history-copy b{display:block;font-size:10px}.history-copy small{display:block;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-points{font-size:11px;font-weight:700;color:#97d9b4}.history-chip.discard .history-points{color:#bdc8d8}

/* Scoring reference: compact and wide, not squeezed */
.score-reference{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.score-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:12px;padding:15px}
.score-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid rgba(136,157,194,.08)}
.score-card__head span{font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#87a4d6}.score-card__head h3{margin:0;font-size:15px}
.score-list{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;margin-top:7px}
.score-row{display:flex;justify-content:space-between;gap:8px;padding:7px 2px;border-bottom:1px solid rgba(136,157,194,.06);font-size:11px}.score-row strong{color:#e8d3ab}.score-seq{color:#c7d3e5}

/* Chests and loot */
.chest-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.chest-card{display:flex;align-items:center;gap:11px;min-height:74px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:11px;background:var(--surface);cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.chest-card:hover{background:#111e33;border-color:#2c415f;transform:translateY(-1px)}
.chest-card.active{border-color:rgba(216,170,89,.38);background:#121f34}
.chest-card__art{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0}.chest-card__art img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.25))}
.chest-card__copy{display:grid;gap:2px}.chest-card__copy strong{font-size:13px}.chest-card__copy small{color:var(--muted);font-size:10px}.chest-card__state{margin-left:auto;font-size:10px;color:#8ea5cb}
.loot-section{padding:18px}
.loot-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;padding-bottom:14px;border-bottom:1px solid rgba(136,157,194,.08)}
.loot-head h3{margin:2px 0 3px;font-size:21px}.loot-head p{margin:0;color:var(--muted);font-size:11px}
.loot-search{width:270px;height:40px;display:flex;align-items:center;gap:8px;padding:0 11px;border-radius:9px;border:1px solid #263a56;background:#111d31;color:var(--muted)}
.loot-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}.loot-search input::placeholder{color:#687993}
.loot-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.loot-preview-head strong{font-size:12px}.text-button{border:0;background:transparent;color:#9eb7df;font-size:11px;cursor:pointer;padding:4px}.text-button:hover{color:#cbdaf0}
.loot-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:9px}
.preview-item{min-height:112px;padding:10px;display:grid;justify-items:center;align-content:start;gap:7px;text-align:center;border:1px solid rgba(136,157,194,.08);border-radius:10px;background:#101c30;transition:border-color .15s ease,background .15s ease}
.preview-item:hover{background:#122039;border-color:#2a405e}
.preview-item .item-icon{width:42px;height:42px}
.preview-item strong{font-size:11px;line-height:1.25}.preview-item small{font-size:9px;color:var(--muted)}
.item-icon{width:34px;height:34px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#172946;border:1px solid #253b5c;flex-shrink:0}
.item-icon img{width:100%;height:100%;object-fit:contain;object-position:center;padding:5px;image-rendering:auto}
.item-icon.badge{font-size:9px;font-weight:800;color:#f2f6fb}.item-icon.badge.gold{background:#5b4221;color:#f4d69a}
.loot-table-section{margin-top:13px}.loot-table-wrap{overflow:auto;border-top:1px solid rgba(136,157,194,.08)}
.loot-table{width:100%;border-collapse:collapse;font-size:11px}.loot-table th{padding:10px;text-align:left;color:#8ea4c9;font-size:9px;text-transform:uppercase;letter-spacing:.07em}.loot-table td{padding:9px 10px;border-top:1px solid rgba(136,157,194,.06);vertical-align:middle}
.item-cell{display:flex;align-items:center;gap:9px;min-width:220px}.item-copy strong{display:block;font-size:11px}.item-copy small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.category-badge{display:inline-block;padding:5px 8px;border-radius:999px;background:#15243b;color:#c9d6e8;font-size:9px}.amount-cell{color:#e7d3ad}.info-button{position:relative;width:24px;height:24px;border-radius:50%;border:1px solid #2a405f;background:#111d31;color:#d9e4f4;font-size:10px;cursor:help}
.info-button::after{content:attr(data-tip);position:absolute;right:0;top:calc(100% + 7px);width:210px;padding:9px 10px;border-radius:8px;background:#08111f;border:1px solid #263a56;color:#dce6f4;box-shadow:0 12px 28px rgba(0,0,0,.28);opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .14s ease,transform .14s ease;z-index:5;text-align:left;line-height:1.4}.info-button:hover::after,.info-button:focus-visible::after{opacity:1;transform:none}.loot-empty{padding:15px;color:var(--muted);font-size:11px}

/* JS effects, intentionally restrained */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .38s ease,transform .38s ease}.reveal.visible{opacity:1;transform:none}
.toast-stack{position:fixed;right:16px;bottom:16px;display:grid;gap:8px;z-index:80;pointer-events:none}.toast{min-width:230px;max-width:310px;padding:12px;border-radius:10px;background:#0d182a;border:1px solid #273a56;box-shadow:0 14px 30px rgba(0,0,0,.26);animation:toastIn .25s ease both}.toast strong{display:block;font-size:12px}.toast small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.toast.gold{border-color:rgba(216,170,89,.34)}.toast.silver{border-color:rgba(160,177,214,.28)}.toast.bronze{border-color:rgba(160,115,77,.28)}@keyframes toastIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.floating-score{position:fixed;z-index:70;font-size:22px;font-weight:800;color:#f0ddb9;text-shadow:0 4px 12px rgba(0,0,0,.35);pointer-events:none;animation:floatScore .75s ease forwards}.floating-score.undo{color:#a8c8fb}@keyframes floatScore{0%{opacity:0;transform:translate(-50%,0)}18%{opacity:1}100%{opacity:0;transform:translate(-50%,-32px)}}
.particles{position:fixed;inset:0;pointer-events:none;z-index:65}.particle{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--gold);animation:particleUp .65s ease forwards}.particle.green{background:var(--green)}.particle.blue{background:var(--blue)}@keyframes particleUp{0%{opacity:0;transform:translate(0,0)}20%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
.card-flight{position:fixed;z-index:90;pointer-events:none;border-radius:8px;filter:drop-shadow(0 9px 14px rgba(0,0,0,.22))}

.site-footer{width:min(1240px,calc(100% - 36px));margin:0 auto 26px;padding-top:15px;display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:11px}.site-footer strong{display:block;color:#dfe7f2}.site-footer span{display:block;margin-top:2px}

@media (max-width:1080px){
  .tool-intro{grid-template-columns:1fr 340px}
  .helper-grid{grid-template-columns:1fr}.round-summary{position:relative;top:auto}
  .row-cards{justify-content:start}
}
@media (max-width:840px){
  .hub-header__inner{height:auto;padding:12px 0;flex-wrap:wrap}.tool-tabs{width:100%}
  .tool-intro{grid-template-columns:1fr;min-height:auto;padding-top:24px}.tool-intro__cards{height:170px;width:330px;max-width:100%;margin:auto}.intro-card{width:104px}.intro-card--red{left:0}.intro-card--blue{left:104px}.intro-card--yellow{left:208px}
  .section-heading--actions{flex-direction:column;align-items:flex-start}.section-actions{justify-content:flex-start}
  .score-reference{grid-template-columns:1fr}.score-list{grid-template-columns:repeat(3,1fr)}
  .chest-tabs{grid-template-columns:1fr}
  .loot-head{flex-direction:column;align-items:flex-start}.loot-search{width:100%}
  .deck-row{grid-template-columns:1fr}.row-label{height:38px}.row-cards{overflow-x:auto;padding:3px 0 6px}
}
@media (max-width:560px){
  :root{--card-width:46px;--selected-width:86px}
  .page-shell,.hub-header__inner,.site-footer{width:min(100%,calc(100% - 22px))}
  .tool-intro__logo{gap:11px}.okey-mark{width:46px;height:46px;border-radius:12px;font-size:25px}.tool-intro h1{font-size:34px}
  .tool-intro__cards{width:270px;height:150px}.intro-card{width:88px}.intro-card--red{left:0}.intro-card--blue{left:88px}.intro-card--yellow{left:176px}
  .workspace,.round-summary,.loot-section{border-radius:12px}.workspace{padding:15px}
  .selection-head{flex-direction:column}.combo-state{align-self:flex-start}.selected-row{min-height:205px;gap:11px}
  .selection-actions{flex-direction:column}.selection-actions .btn{width:100%}
  .summary-stats{grid-template-columns:1fr}
  .summary-stats div,.summary-stats div:nth-child(odd),.summary-stats div:nth-child(-n+2){border-right:0;border-bottom:1px solid rgba(136,157,194,.08)}
  .score-list{grid-template-columns:1fr 1fr}.loot-preview{grid-template-columns:repeat(2,1fr)}
  .site-footer{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ===== V13 - calmer Metin2Alerts-inspired rebuild ===== */
:root{
  --bg:#0b0b0d;
  --bg-soft:#121110;
  --surface:#171513;
  --surface-2:#1d1a17;
  --surface-3:#25201c;
  --line:#2c2722;
  --line-soft:rgba(225,203,170,.10);
  --text:#f2ebdf;
  --muted:#b7aa98;
  --muted-2:#8f8374;
  --blue:#8aa1c9;
  --gold:#d0ab6d;
  --gold-soft:#f0dbb4;
  --green:#84c69c;
  --red:#d98b7c;
}
body{
  background:
    radial-gradient(circle at 20% 0%, rgba(175,123,59,.08), transparent 24%),
    linear-gradient(180deg,#090909 0%, #0f0e0d 46%, #0a0908 100%);
  color:var(--text);
}
a{color:inherit}
.hub-header{
  background:rgba(12,11,10,.92);
  border-bottom:1px solid rgba(224,196,154,.08);
  backdrop-filter:blur(10px);
}
.hub-header__inner,.page-shell,.site-footer{width:min(1280px,calc(100% - 40px))}
.hub-brand__mark{
  background:linear-gradient(180deg,#4d3421,#362417);
  border-color:#5d4430;
  color:#f8e6c0;
}
.hub-brand strong{font-size:14px;color:#f3eadb}
.hub-brand small{color:#ab9e8f}
.tool-tab{color:#c8baa9;border:1px solid transparent;border-radius:10px;padding:0 15px}
.tool-tab:hover{background:rgba(255,255,255,.03)}
.tool-tab.active{
  background:linear-gradient(180deg,#231e1a,#1b1713);
  border-color:rgba(224,196,154,.12);
  color:#f7efdf;
}
.page-shell{margin:6px auto 60px}
.tool-intro{
  min-height:170px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  align-items:center;
  gap:22px;
  padding:26px 0 22px;
  border-bottom:1px solid rgba(224,196,154,.08);
}
.tool-intro__head{min-width:0}
.tool-intro__eyebrow{display:block;color:#bca883;font-weight:800;letter-spacing:.16em;font-size:11px;margin-bottom:12px}
.tool-intro__logo{display:flex;align-items:center;gap:14px;min-width:0}
.tool-intro__title{min-width:0}
.tool-intro__title small{display:block;margin-top:6px;color:#b6a188;font-size:13px;letter-spacing:.04em}
.okey-mark{
  width:56px;height:56px;border-radius:16px;
  background:linear-gradient(180deg,#5a3d26,#3e2a1a);
  border:1px solid #6d4f36;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  color:#faedcf;
}
.tool-intro h1{font-size:clamp(40px,4.1vw,64px);line-height:1.02;color:#f5ecdd;letter-spacing:-.04em}
.tool-intro__cards{
  position:relative;
  height:182px;
  width:340px;
  justify-self:end;
  overflow:visible;
}
.intro-card{
  position:absolute;top:20px;width:110px;aspect-ratio:38/52;
  transform-origin:50% 80%;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.26));
  backface-visibility:hidden;
}
.intro-card img{width:100%;height:100%;object-fit:contain;image-rendering:auto;transform:translateZ(0)}
.intro-card--red{left:16px;transform:rotate(-10deg);animation:introFloatRed 5.2s ease-in-out infinite}
.intro-card--blue{left:118px;top:0;transform:rotate(0deg);animation:introFloatBlue 5s ease-in-out infinite}
.intro-card--yellow{left:220px;transform:rotate(10deg);animation:introFloatYellow 5.4s ease-in-out infinite}
.wiki-section{padding:28px 0;border-bottom:1px solid rgba(224,196,154,.07)}
.section-kicker{color:#bda37b}
.section-heading h2{color:#f5ecdc;font-size:30px}
.section-heading p{color:#b8aa98;max-width:72ch}
.btn{border-radius:10px}
.btn--quiet{background:#1c1814;border-color:#302922;color:#f2e7d2}
.btn--quiet:hover:enabled{background:#231e19}
.btn--danger{background:#35201b;border-color:#543228;color:#f5d3ca}
.btn--danger:hover:enabled{background:#422720}
.btn--reset{background:linear-gradient(180deg,#5b4123,#422f1b);border-color:#715434;color:#fdeecf}
.btn--reset:hover:enabled{background:linear-gradient(180deg,#684a28,#49351f)}
.helper-grid{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
.workspace,.round-summary,.loot-section,.score-card,.chest-card,.preview-item{background:linear-gradient(180deg,#171513,#141210);border:1px solid rgba(224,196,154,.09);box-shadow:none}
.workspace,.round-summary,.loot-section{border-radius:16px}
.workspace{padding:20px 20px 18px}
.round-summary{top:82px}
.selection-label,.deck-head p,.summary-head,.summary-stats small,.progress-labels,.history-head small,.loot-head p,.chest-card__copy small,.preview-item small,.item-copy small{color:#b09f8a}
.selection-head{padding-bottom:12px;border-bottom:1px solid rgba(224,196,154,.07)}
.selection-head h3,.deck-head h3,.loot-head h3,.helper-main__intro h3{color:#f4ead9}
.combo-state{background:#1e1a16;border:1px solid rgba(224,196,154,.08);border-radius:12px;padding:12px 14px}
.status-dot{background:#8d7a63}
.selected-row{
  min-height:238px;
  padding:24px 16px 20px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(10px,2vw,20px);
  overflow:visible;
}
.selected-slot{
  width:min(var(--selected-width), calc((100% - 52px)/3));
  max-width:var(--selected-width);
}
.selected-slot.empty{opacity:.32}
.selected-slot img{filter:drop-shadow(0 10px 16px rgba(0,0,0,.24))}
.selection-actions{padding-top:0}
.deck-head{margin-top:8px}
.deck{gap:10px}
.deck-row{grid-template-columns:98px 1fr;gap:12px;padding:12px 14px;border-radius:14px;background:#151311;border:1px solid rgba(224,196,154,.06)}
.row-label{background:linear-gradient(180deg,#1e1915,#171411);border:1px solid rgba(224,196,154,.08);min-height:66px;color:#efe3cf}
.row-cards{gap:10px}
.deck-card{border-radius:12px;transition:transform .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease}
.deck-card::before{inset:-3px;border-radius:14px;border-color:transparent;transition:border-color .16s ease, box-shadow .16s ease}
.deck-card::after{display:none}
.deck-card:hover:not(.used):not(.selected){transform:translateY(-3px);filter:brightness(1.04);box-shadow:0 8px 14px rgba(0,0,0,.18)}
.deck-card:hover:not(.used):not(.selected)::before{border-color:rgba(224,196,154,.22);box-shadow:0 0 0 1px rgba(224,196,154,.08)}
.deck-card.selected{transform:translateY(-1px)}
.deck-card.selected::before{border-color:rgba(208,171,109,.92);box-shadow:0 0 0 1px rgba(208,171,109,.18),0 0 10px rgba(208,171,109,.10)}
.deck-card.used{opacity:.38;filter:grayscale(1) brightness(.64)}
.score-main{background:#1a1714;border:1px solid rgba(224,196,154,.08);border-radius:14px;color:#f5ebdd}
.score-main small,.score-main span{color:#b49f88}
.summary-stats{border:1px solid rgba(224,196,154,.08);border-radius:14px;background:#171411}
.summary-stats div{background:transparent;border-color:rgba(224,196,154,.07)}
.progress-block,.history-block{border:1px solid rgba(224,196,154,.08);border-radius:14px;background:#171411}
.progress-track{background:#241f1a}
.progress-track i{background:linear-gradient(90deg,#a87743,#d0ab6d)}
.marker{background:#816850}
.history-tag{background:#241b15;color:#efdcb9;border:1px solid rgba(224,196,154,.08)}
.score-reference{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.score-card{border-radius:14px;padding:16px}
.score-card__head{border-bottom:1px solid rgba(224,196,154,.08)}
.score-card__head span{color:#b49a70}
.score-list{grid-template-columns:1fr 1fr;gap:0 12px;margin-top:10px}
.score-row{border-bottom:1px solid rgba(224,196,154,.06);padding:8px 2px;color:#dccdb8}
.score-row strong{color:#f0ddb5}
.chest-tabs{gap:12px;margin-bottom:14px}
.chest-card{min-height:82px;padding:12px 14px;border-radius:13px;background:#171411}
.chest-card:hover{background:#1d1814;border-color:rgba(224,196,154,.14)}
.chest-card.active{background:#201a15;border-color:rgba(208,171,109,.34)}
.chest-card__art{width:48px;height:48px}
.loot-section{padding:18px 20px 20px}
.loot-head{border-bottom:1px solid rgba(224,196,154,.08)}
.loot-search{background:#171411;border:1px solid rgba(224,196,154,.09);color:#c8b89f}
.loot-search input::placeholder{color:#8d7d68}
.loot-preview-head strong,.text-button{color:#ebdfcb}
.text-button:hover{color:#fff4e0}
.loot-preview{grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:10px}
.preview-item{min-height:118px;border-radius:12px;background:#171411}
.preview-item:hover{background:#1c1713;border-color:rgba(224,196,154,.13)}
.item-icon{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(180deg,#2b241e,#1f1a16);
  border:1px solid rgba(224,196,154,.10);
}
.preview-item .item-icon{width:46px;height:46px}
.item-icon img{
  width:auto;height:auto;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center center;
  padding:4px;margin:auto;display:block;
}
.preview-item .item-icon img{padding:5px}
.loot-table th{color:#b69f7f}
.loot-table td{border-top:1px solid rgba(224,196,154,.06)}
.category-badge{background:#211c17;color:#eadfcf}
.amount-cell{color:#f0ddb5}
.info-button{background:#171411;border-color:#3a2f25;color:#efe0ca}
.info-button::after{background:#120f0d;border-color:#3a2f25;color:#f0e8db}
.toast{background:#171411;border-color:#3a2f25}
.site-footer{color:#aa9a87}
.site-footer strong{color:#efe6d8}

@media (max-width:1080px){
  .tool-intro{grid-template-columns:1fr 320px}
}
@media (max-width:840px){
  .tool-intro{grid-template-columns:1fr;gap:10px;padding-top:22px}
  .tool-intro__cards{justify-self:center;width:320px;max-width:100%;height:168px}
  .intro-card{width:102px}
  .intro-card--red{left:0}.intro-card--blue{left:104px}.intro-card--yellow{left:206px}
  .score-reference{grid-template-columns:1fr}
  .score-list{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:560px){
  :root{--selected-width:94px}
  .hub-header__inner,.page-shell,.site-footer{width:min(100%,calc(100% - 22px))}
  .tool-intro{padding-bottom:18px}
  .okey-mark{width:48px;height:48px;border-radius:14px;font-size:25px}
  .tool-intro h1{font-size:34px}
  .tool-intro__title small{font-size:12px}
  .tool-intro__cards{width:276px;height:152px}
  .intro-card{width:88px}
  .intro-card--red{left:0}.intro-card--blue{left:88px}.intro-card--yellow{left:176px}
  .selected-row{min-height:214px;padding-inline:8px}
  .selected-slot{width:min(var(--selected-width), calc((100% - 26px)/3))}
  .score-list{grid-template-columns:1fr 1fr}
  .loot-preview{grid-template-columns:repeat(2,1fr)}
}
.item-icon--tall img{max-height:92%;padding:3px 7px;transform:translateY(1px)}

/* ===== V14 - official Okey Karten Helfer logo ===== */
.sr-only{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.tool-intro{
  grid-template-columns:minmax(0,1fr) 350px;
  min-height:190px;
  padding:18px 0 20px;
}
.tool-intro__head{
  display:flex;
  align-items:center;
  min-width:0;
  overflow:visible;
}
.tool-intro__brand-image{
  display:block;
  width:min(760px,100%);
  height:auto;
  max-height:190px;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.22));
  user-select:none;
  pointer-events:none;
}
.tool-intro__cards{
  height:172px;
  width:330px;
}
.intro-card{width:104px;top:22px}
.intro-card--red{left:14px}
.intro-card--blue{left:112px;top:2px}
.intro-card--yellow{left:210px}
@media (max-width:1080px){
  .tool-intro{grid-template-columns:minmax(0,1fr) 300px}
  .tool-intro__brand-image{max-height:170px}
  .tool-intro__cards{width:294px;height:158px}
  .intro-card{width:94px}
  .intro-card--red{left:4px}
  .intro-card--blue{left:98px}
  .intro-card--yellow{left:192px}
}
@media (max-width:840px){
  .tool-intro{grid-template-columns:1fr;padding:18px 0 16px}
  .tool-intro__brand-image{width:min(720px,100%);max-height:none}
  .tool-intro__cards{justify-self:center;margin-top:2px}
}
@media (max-width:560px){
  .tool-intro__brand-image{width:100%}
}

/* ===== V19: kategorisierte Truhen + Wiki-Tooltips ===== */
.loot-preview{
  display:block;
  margin-top:10px;
}
.loot-category{
  padding:14px 0 4px;
  border-top:1px solid rgba(224,196,154,.07);
}
.loot-category:first-child{
  padding-top:2px;
  border-top:0;
}
.loot-category__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.loot-category__head strong{
  font-size:12px;
  color:#f0e2cb;
  letter-spacing:.02em;
}
.loot-category__head span{
  font-size:9px;
  color:#978a79;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.loot-category__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(124px,1fr));
  gap:9px;
}
.preview-item{
  appearance:none;
  width:100%;
  color:inherit;
  font:inherit;
  cursor:help;
}
.preview-item:focus-visible{
  outline:2px solid rgba(208,171,109,.48);
  outline-offset:2px;
}
.loot-empty--preview{
  border:1px dashed rgba(224,196,154,.10);
  border-radius:10px;
  background:#151311;
}
.category-badge{
  max-width:220px;
  white-space:normal;
  line-height:1.25;
}
.info-button::after{
  display:none !important;
}
.wiki-item-tooltip{
  position:fixed;
  z-index:9999;
  padding:0;
  border:1px solid rgba(208,171,109,.26);
  border-radius:12px;
  background:rgba(16,14,12,.98);
  color:#f2eadf;
  box-shadow:0 18px 46px rgba(0,0,0,.42);
  overflow:hidden;
  pointer-events:none;
  backdrop-filter:blur(8px);
}
.wiki-item-tooltip[hidden]{display:none}
.wiki-item-tooltip__head{
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  background:linear-gradient(180deg,#211b16,#191511);
  border-bottom:1px solid rgba(224,196,154,.08);
}
.wiki-item-tooltip__head .item-icon{
  width:42px;
  height:42px;
  flex:0 0 auto;
}
.wiki-item-tooltip__head strong{
  display:block;
  font-size:13px;
  line-height:1.25;
  color:#fff1d8;
}
.wiki-item-tooltip__head span{
  display:block;
  margin-top:3px;
  color:#b9a78f;
  font-size:10px;
}
.wiki-item-tooltip__body{
  padding:11px 13px 12px;
}
.tooltip-block + .tooltip-block{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(224,196,154,.06);
}
.tooltip-block small{
  display:block;
  margin-bottom:4px;
  color:#bd9f70;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.11em;
}
.tooltip-block p{
  margin:0;
  color:#ddd1c0;
  font-size:11px;
  line-height:1.48;
}
.wiki-item-tooltip__source{
  padding:8px 13px;
  border-top:1px solid rgba(224,196,154,.07);
  background:#13110f;
  color:#8f8171;
  font-size:9px;
}
@media(max-width:640px){
  .loot-category__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wiki-item-tooltip{max-width:calc(100vw - 24px)}
}

/* Upgrade Rechner */
.tool-tab{background:transparent;cursor:pointer}
.upgrade-tool{padding-top:8px}
.upgrade-intro{
  min-height:168px;display:flex;align-items:center;justify-content:space-between;gap:28px;
  padding:26px 0 24px;border-bottom:1px solid rgba(224,196,154,.08)
}
.upgrade-intro h1{margin:5px 0 8px;font-size:clamp(36px,4vw,56px);line-height:1;letter-spacing:-.035em;color:#f5ecdc}
.upgrade-intro p{margin:0;max-width:760px;color:var(--muted);font-size:14px;line-height:1.65}
.upgrade-intro__mark{
  width:96px;height:96px;display:grid;place-items:center;flex-shrink:0;border-radius:22px;
  background:linear-gradient(180deg,#38291d,#241c16);border:1px solid rgba(224,196,154,.18);
  color:#f0d39d;font:800 36px/1 Georgia,serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
}
.upgrade-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.upgrade-config,.upgrade-summary,.upgrade-chance-table-wrap,.simulator-panel,.sim-log-panel,.upgrade-notes{
  background:var(--surface);border:1px solid var(--line-soft);border-radius:13px
}
.upgrade-config{padding:18px}
.upgrade-fields{display:grid;grid-template-columns:1fr 1.35fr 1.15fr .62fr .62fr;gap:10px}
.upgrade-field{display:grid;gap:6px;min-width:0}
.upgrade-field>span,.upgrade-price-field>span{color:#b59d79;font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.upgrade-field select,.upgrade-field input[type="search"]{
  width:100%;height:42px;border-radius:8px;border:1px solid rgba(224,196,154,.12);
  background:#12100f;color:#eee4d5;padding:0 10px;outline:none
}
.upgrade-field select:focus,.upgrade-field input[type="search"]:focus{border-color:rgba(208,171,109,.52)}
.upgrade-field input[type="search"]::placeholder{color:#766c61}
.upgrade-item-info{
  margin-top:13px;display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;
  padding:13px;border-top:1px solid rgba(224,196,154,.07);background:#151311
}
.upgrade-item-symbol{
  width:52px;height:52px;border-radius:10px;display:grid;place-items:center;
  background:#211b16;border:1px solid rgba(224,196,154,.14);color:#efd7aa;font-weight:800
}
.upgrade-item-copy{min-width:0}.upgrade-item-copy strong{display:block;font-size:16px;color:#f3eadb}
.upgrade-item-copy small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.upgrade-item-copy p{margin:5px 0 0;color:#a99b8a;font-size:10px;line-height:1.48}
.upgrade-wiki-link{color:#c9ad7d;font-size:10px;white-space:nowrap}.upgrade-wiki-link:hover{color:#f0d9ae}
.upgrade-summary{position:sticky;top:86px;padding:17px}
.upgrade-total-main{margin-top:9px;padding:17px;border-top:1px solid rgba(224,196,154,.08);border-bottom:1px solid rgba(224,196,154,.08);text-align:center}
.upgrade-total-main small{display:block;color:var(--muted);font-size:9px}.upgrade-total-main strong{display:block;margin-top:5px;font-size:25px;color:#f0d39d}
.upgrade-summary-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;border-top:1px solid rgba(224,196,154,.07);border-left:1px solid rgba(224,196,154,.07)}
.upgrade-summary-grid div{padding:11px;border-right:1px solid rgba(224,196,154,.07);border-bottom:1px solid rgba(224,196,154,.07)}
.upgrade-summary-grid small{display:block;color:var(--muted);font-size:9px}.upgrade-summary-grid strong{display:block;margin-top:3px;font-size:14px}
.upgrade-summary-note{margin:11px 0 0;color:#8f8374;font-size:9px;line-height:1.5}
.upgrade-table-legend{display:flex;align-items:center;color:#9f907e;font-size:10px;white-space:nowrap}.legend-plan{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px;background:#6a4c2b;border:1px solid #a17643}
.upgrade-chance-table-wrap{overflow:auto}
.upgrade-chance-table{width:100%;border-collapse:collapse;font-size:11px;min-width:900px}
.upgrade-chance-table th{padding:10px 12px;text-align:left;color:#ae9879;font-size:9px;text-transform:uppercase;letter-spacing:.08em;background:#13110f;border-bottom:1px solid rgba(224,196,154,.08)}
.upgrade-chance-table td{padding:11px 12px;border-bottom:1px solid rgba(224,196,154,.06);vertical-align:middle}
.upgrade-chance-table tbody tr:last-child td{border-bottom:0}
.upgrade-chance-table tr.is-planned{background:linear-gradient(90deg,rgba(111,77,41,.17),rgba(111,77,41,.05))}
.upgrade-chance-table tr.is-planned td:first-child{box-shadow:inset 2px 0 0 #a77b45}
.upgrade-chance-table td:first-child{width:125px}.upgrade-chance-table td:first-child strong{display:block}.upgrade-chance-table td:first-child small{display:block;margin-top:2px;color:#b28f62;font-size:8px;text-transform:uppercase;letter-spacing:.07em}
.upgrade-yang-cell{color:#dbc49e;white-space:nowrap}
.chance-badge{display:inline-flex;min-width:54px;justify-content:center;padding:5px 7px;border-radius:7px;border:1px solid transparent;font-weight:800;font-size:10px}
.chance-badge--high{background:rgba(84,139,99,.11);border-color:rgba(112,178,130,.18);color:#a6d5b3}
.chance-badge--mid{background:rgba(177,137,73,.10);border-color:rgba(208,171,109,.18);color:#dec08e}
.chance-badge--low{background:rgba(167,86,73,.10);border-color:rgba(208,111,93,.18);color:#dfa79d}
.chance-badge--none{background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.05);color:#766c61}
.step-materials{display:flex;gap:6px;flex-wrap:wrap}
.step-materials>span{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:7px;background:#12100f;border:1px solid rgba(224,196,154,.07);font-size:9px}
.step-materials b{font-weight:600}.upgrade-none{color:#817668;font-size:9px}
.upgrade-mat-icon{width:30px;height:30px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#211b16;border:1px solid rgba(224,196,154,.12);flex-shrink:0}
.upgrade-mat-icon img{width:100%;height:100%;object-fit:contain;padding:4px}.upgrade-mat-icon--badge{font-size:8px;font-weight:800;color:#e5cda2}.upgrade-mat-icon--small{width:23px;height:23px;border-radius:5px}
.upgrade-simulator-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:14px}
.simulator-panel,.sim-log-panel{padding:16px}
.sim-method-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid rgba(224,196,154,.07)}
.sim-method-head>div:first-child strong{display:block;font-size:13px}.sim-method-head>div:first-child span{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.sim-next-chance{text-align:right;flex-shrink:0}.sim-next-chance small{display:block;color:#9c8c79;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.sim-next-chance strong{display:block;margin-top:2px;color:#efd29f;font-size:19px}
.upgrade-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.upgrade-method{min-width:0;display:grid;grid-template-columns:38px 1fr auto;gap:8px;align-items:center;padding:9px;border:1px solid rgba(224,196,154,.08);border-radius:9px;background:#12100f;color:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.upgrade-method:hover{border-color:rgba(224,196,154,.17);transform:translateY(-1px)}.upgrade-method.active{background:#211a14;border-color:rgba(208,171,109,.32);box-shadow:inset 2px 0 0 #b48750}
.method-symbol{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#292018;color:#e9cf9f;border:1px solid rgba(224,196,154,.1);font-size:9px;font-weight:900}
.method-copy{min-width:0}.method-copy strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.method-copy small{display:block;color:#8f8273;font-size:8px;margin-top:2px}.upgrade-method>b{font-size:12px;color:#dec18f}
.simulator-stage{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;margin-top:13px;padding:13px 0;border-top:1px solid rgba(224,196,154,.06);border-bottom:1px solid rgba(224,196,154,.06)}
.sim-item-level{display:flex;align-items:center;gap:7px;white-space:nowrap}.sim-item-level span{color:#9c8c79;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.sim-item-level strong{font-size:20px;color:#f0d6a5}.sim-item-level i{font-style:normal;color:#6f655a}
.sim-status{color:#b7aa98;font-size:10px;line-height:1.45}.sim-status.success{color:#9fcbaa}.sim-status.warning{color:#d8aa77}
.sim-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.sim-actions .btn{height:36px;font-size:10px}.btn--primary{background:#332519;border-color:#5b4028;color:#f1dab0}.btn--primary:hover:not(:disabled){background:#3d2c1e;border-color:#715033}
.sim-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:12px;border-top:1px solid rgba(224,196,154,.07);border-left:1px solid rgba(224,196,154,.07)}
.sim-stats div{padding:10px;border-right:1px solid rgba(224,196,154,.07);border-bottom:1px solid rgba(224,196,154,.07)}.sim-stats small{display:block;color:#8f8374;font-size:8px}.sim-stats strong{display:block;margin-top:3px;font-size:12px}
.sim-consumption{margin-top:12px}.sim-consumption-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.sim-consumption-head strong{font-size:10px}.sim-consumption-head span{color:#a9967c;font-size:9px}.sim-consumption-empty{margin-top:7px;color:#7f7569;font-size:9px}
.sim-consumption-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.sim-consumption-list>span{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:4px 7px;border-radius:7px;background:#12100f;border:1px solid rgba(224,196,154,.07);font-size:9px}.sim-consumption-list b{font-weight:600}.sim-consumption-list em{font-style:normal;color:#d5b982}.sim-consume-method i{width:23px;height:23px;display:grid;place-items:center;border-radius:5px;background:#2b2119;color:#e9cd98;font-style:normal;font-size:7px;font-weight:900}
.sim-log-panel{min-height:390px}.sim-log-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(224,196,154,.07)}.sim-log-head strong{display:block;font-size:12px}.sim-log-head span:not(.sim-method-label){display:block;margin-top:2px;color:#8f8374;font-size:8px}.sim-method-label{padding:4px 7px;border-radius:6px;background:#211a14;border:1px solid rgba(224,196,154,.09);color:#d9bd8a;font-size:8px;white-space:nowrap}
.sim-log{display:grid;gap:6px;margin-top:9px;max-height:385px;overflow:auto;padding-right:3px}.sim-log-empty{padding:26px 10px;text-align:center;color:#7c7165;font-size:9px}.sim-log-entry{display:grid;grid-template-columns:26px 1fr auto;gap:8px;align-items:center;padding:8px;border:1px solid rgba(224,196,154,.06);border-radius:8px;background:#12100f}.sim-log-entry.success{border-left-color:rgba(111,176,127,.48)}.sim-log-entry.fail{border-left-color:rgba(199,102,84,.42)}.sim-log-result{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:900}.success .sim-log-result{background:rgba(84,139,99,.12);color:#9dcca9}.fail .sim-log-result{background:rgba(167,86,73,.12);color:#dda399}.sim-log-entry strong{display:block;font-size:9px}.sim-log-entry small{display:block;color:#877b6d;font-size:8px;margin-top:1px}.sim-log-entry>b{font-size:10px;color:#d5be99}
.sim-batch-result{margin-top:10px;padding:11px;border:1px solid rgba(208,171,109,.16);border-radius:9px;background:#1c1713}.sim-batch-result .section-kicker{margin-bottom:7px}.sim-batch-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid rgba(224,196,154,.07);border-left:1px solid rgba(224,196,154,.07)}.sim-batch-grid div{padding:8px;border-right:1px solid rgba(224,196,154,.07);border-bottom:1px solid rgba(224,196,154,.07)}.sim-batch-grid small{display:block;color:#8f8374;font-size:7px}.sim-batch-grid strong{display:block;margin-top:2px;font-size:11px}.sim-batch-result p{margin:7px 0 0;color:#8f8374;font-size:8px;line-height:1.4}
.sim-disclaimer{margin:10px 0 0;color:#7d7266;font-size:9px}
.upgrade-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.upgrade-material-card{display:grid;grid-template-columns:42px 1fr 145px;gap:10px;align-items:center;padding:12px;border:1px solid rgba(224,196,154,.08);background:var(--surface);border-radius:10px}
.upgrade-material-card>.upgrade-mat-icon{width:42px;height:42px;border-radius:9px}.upgrade-material-copy{min-width:0}.upgrade-material-copy strong{display:block;font-size:11px}.upgrade-material-copy>span{display:block;color:#d1b887;font-size:9px;margin-top:2px}.upgrade-material-copy p{margin:4px 0 2px;color:var(--muted);font-size:8px;line-height:1.4}.upgrade-material-copy a{color:#bda071;font-size:8px}
.upgrade-price-field{display:grid;gap:4px}.upgrade-price-field>div{height:35px;display:flex;align-items:center;border:1px solid rgba(224,196,154,.11);border-radius:7px;background:#12100f;overflow:hidden}.upgrade-price-field input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--text);padding:0 8px;min-width:0}.upgrade-price-field b{padding-right:8px;color:#d4b984;font-size:9px;font-weight:700}
.upgrade-empty-state{grid-column:1/-1;padding:20px;border:1px dashed rgba(224,196,154,.12);border-radius:10px;background:#12100f;text-align:center}.upgrade-empty-state strong{display:block}.upgrade-empty-state span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.upgrade-notes{padding:15px}.upgrade-notes>p{margin:0 0 11px;color:var(--muted);font-size:11px;line-height:1.58}.upgrade-sources{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.upgrade-sources a{display:grid;gap:2px;padding:9px 10px;border-radius:8px;background:#12100f;border:1px solid rgba(224,196,154,.07)}.upgrade-sources a:hover{border-color:rgba(224,196,154,.15)}.upgrade-sources strong{font-size:9px}.upgrade-sources span{color:var(--muted);font-size:8px}
@media(max-width:1080px){
  .upgrade-grid,.upgrade-simulator-grid{grid-template-columns:1fr}.upgrade-summary{position:relative;top:auto}
  .upgrade-fields{grid-template-columns:1fr 1fr 1fr}.upgrade-materials{grid-template-columns:1fr}.upgrade-sources{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .upgrade-intro{align-items:flex-start}.upgrade-intro__mark{width:72px;height:72px;border-radius:17px;font-size:26px}
  .upgrade-fields{grid-template-columns:1fr}.upgrade-item-info{grid-template-columns:46px 1fr}.upgrade-wiki-link{grid-column:2}.upgrade-methods{grid-template-columns:1fr}
  .simulator-stage{grid-template-columns:1fr}.sim-stats{grid-template-columns:1fr 1fr}.upgrade-material-card{grid-template-columns:42px 1fr}.upgrade-price-field{grid-column:1/-1}.upgrade-sources{grid-template-columns:1fr}
  .section-heading--actions{align-items:flex-start}.upgrade-table-legend{white-space:normal}
}
