/* Army / Profile / Settings / How-to sheets (inside .modal > .sheet.paper from tokens.css) */
.sheet { position: relative; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--bronze-dark) transparent; }
.sheet-x { position: absolute; top: 18px; inset-inline-end: 18px; width: 72px; height: 72px; z-index: 2; }
.sheet-x .ico { display: flex; }
.sheet h2 { padding: 0 80px; }
.pn-hint { margin: 0 0 22px; font: 800 28px/1.25 var(--f-sans); color: var(--text-muted); text-align: center; }
.pn-foot { margin: 22px 0 0; font: 800 22px/1.2 var(--f-sans); color: var(--text-muted); text-align: center; }
.ico { display: inline-flex; align-items: center; justify-content: center; }
.tile-num { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); min-width: 62px; padding: 2px 10px 4px; box-sizing: border-box; text-align: center;
  font: 900 34px/1 var(--f-sans); letter-spacing: -.025em; color: var(--frame-dark); background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--bronze-dark); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px); }

/* army */
.army-ups { display: flex; gap: 16px; margin-bottom: 22px; }
.army-up { flex: 1; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: rgba(253, 243, 232, .55); box-shadow: inset 0 0 0 2px var(--bronze-dark); }
.army-up img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.army-up b { flex: 1; font: 900 28px/1.1 var(--f-sans); }
.army-up span { font: 900 28px/1 var(--f-slab); color: var(--primary); }
.army-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#stage.land .army-grid { grid-template-columns: repeat(4, 1fr); }
.army-card { display: flex; flex-direction: column; background: var(--cream-alt); box-shadow: inset 0 0 0 3px var(--bronze-dark), inset 0 0 0 6px var(--stone-sand); padding: 12px; }
.army-pic { position: relative; height: 170px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 22px;
  background: radial-gradient(ellipse 60% 14% at 50% 86%, rgba(56, 40, 36, .28), transparent 70%), var(--stone-sand); }
.army-pic img { height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.army-info { padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 8px; }
.army-info b { font: 900 28px/1.1 var(--f-sans); text-transform: uppercase; color: var(--frame-dark); }
.pn-bar { display: flex; align-items: center; gap: 10px; }
.pn-bl { width: 96px; font: 800 20px/1 var(--f-sans); color: var(--text-muted); }
.pn-track { flex: 1; height: 16px; background: var(--stone-sand); box-shadow: inset 0 0 0 2px var(--bronze-dark); padding: 3px; box-sizing: border-box; }
.pn-track i { display: block; height: 100%; background: var(--primary); }
.pn-bar.s .pn-track i { background: var(--secondary); }

/* profile */
.pf-top { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
.pf-ava { width: 140px; height: 140px; object-fit: cover; box-shadow: 0 0 0 5px var(--accent), 0 0 0 9px var(--frame-dark); flex: none; }
.pf-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-lab { font: 800 22px/1 var(--f-sans); color: var(--text-muted); text-transform: uppercase; }
.pf-row { display: flex; gap: 12px; }
.pf-input { flex: 1; min-width: 0; height: 66px; padding: 0 16px; box-sizing: border-box; border: 0; outline: 0; font: 800 32px/1 var(--f-sans); color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--bronze-dark); user-select: text; -webkit-user-select: text; --cut-s: 8px; }
.pf-input:focus { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 4px var(--bronze-dark); }
.pf-save { width: 170px; height: 66px; font: 900 26px/1 var(--f-slab); flex: none; }
.pf-meta { display: flex; align-items: center; gap: 14px; font: 900 28px/1 var(--f-slab); color: var(--primary); }
.pf-meta .flag { font-size: 30px; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; background: var(--frame-dark); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent); }
.pf-stat b { font: 900 46px/1 var(--f-slab); }
.pf-stat span { font: 800 20px/1.1 var(--f-sans); text-align: center; color: var(--accent); }
.pf-lbh { height: 60px; font-size: 32px; margin: 0 auto 14px; width: fit-content; }
.pf-tabs { display: flex; gap: 0; margin-bottom: 10px; box-shadow: inset 0 0 0 2px var(--bronze-dark); }
.pf-tab { flex: 1; height: 58px; font: 900 26px/1 var(--f-sans); color: var(--text); background: var(--cream-alt); }
.pf-tab.on { background: var(--secondary); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent); }
.pf-lb { list-style: none; margin: 0; padding: 0; }
.pf-li { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 12px; border-bottom: 2px solid rgba(56, 40, 36, .35); font: 800 26px/1 var(--f-sans); }
.pf-li:nth-child(-n+3) .pf-rk { color: var(--light-text); background: var(--secondary); box-shadow: 0 0 0 2px var(--accent); }
.pf-li.me { background: var(--primary); color: var(--light-text); }
.pf-li.me .pf-rt { color: var(--accent); }
.pf-rk { width: 46px; height: 40px; display: flex; align-items: center; justify-content: center; font: 900 24px/1 var(--f-slab); }
.pf-li .flag { font-size: 28px; flex: none; }
.pf-nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-slab); font-weight: 800; }
.pf-wk { width: 120px; text-align: end; font-weight: 900; }
.pf-rt { width: 80px; text-align: end; color: var(--text-muted); }
.pf-empty { text-align: center; padding: 20px; }

/* settings */
.st-rows { display: flex; flex-direction: column; }
.st-row { display: flex; align-items: center; gap: 20px; height: 104px; border-bottom: 2px solid var(--text); }
.st-ic { width: 58px; height: 58px; color: var(--light-text); background: var(--frame-dark); box-shadow: inset 0 0 0 3px var(--accent); flex: none; }
.st-ic svg { color: var(--accent); }
.st-lbl { flex: 1; font: 900 32px/1.1 var(--f-slab); color: var(--frame-dark); }
.st-btn { min-width: 220px; height: 74px; padding: 0 24px; font: 900 28px/1 var(--f-sans); text-transform: none; }

/* how to play (concept 03) */
.panel-howto .sheet { width: 900px; }
#stage.land .panel-howto .sheet { width: 1500px; }
.ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
#stage.land .ht-grid { grid-template-columns: repeat(4, 1fr); }
.ht-cell { position: relative; padding: 46px 16px 16px; background: var(--cream-alt); box-shadow: inset 0 0 0 3px var(--bronze-dark), inset 0 0 0 6px var(--border);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.ht-plaque { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 88%; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-dark); box-shadow: inset 0 0 0 3px var(--accent); color: var(--light-text); font: 900 24px/1 var(--f-sans); text-transform: uppercase; white-space: nowrap; }
.ht-art { position: relative; height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 10px 0 8px; background: var(--stone-sand); box-shadow: inset 0 0 0 2px var(--bronze-dark); padding-bottom: 8px; }
.ht-unit { position: relative; height: 130px; width: 92px; display: flex; justify-content: center; }
.ht-unit img { height: 108px; width: auto; max-width: 100%; object-fit: contain; }
.ht-unit .tile-num { min-width: 48px; font-size: 24px; }
.ht-op { align-self: center; font: 900 46px/1 var(--f-sans); color: var(--frame-dark); }
.ht-merge .ht-unit:last-child { filter: drop-shadow(0 0 8px var(--accent)); }
.ht-lanes { align-items: stretch; padding: 0; flex-direction: column; justify-content: space-between; }
.ht-bridge { flex: 1; display: block; padding: 6px 30px 0; }
.ht-keys { display: flex; gap: 6px; padding: 6px; }
.ht-key { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; font: 900 18px/1 var(--f-slab); text-transform: uppercase;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--bronze-dark); }
.ht-key.on { background: var(--primary); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent), 0 0 10px var(--accent); }
.ht-arrow { width: 20px; height: 20px; }
.ht-arrow svg { width: 20px; height: 20px; }
.ht-clash .ht-unit.red img { transform: rotate(18deg) translateY(-10px); }
.ht-dust { position: absolute; left: 50%; bottom: 6px; width: 120px; transform: translateX(-50%); opacity: .9; }
.ht-clock { align-self: center; padding: 6px 14px; font: 900 38px/1 var(--f-sans); color: var(--light-text); background: var(--frame-dark); box-shadow: inset 0 0 0 3px var(--accent); }
.ht-seal { align-self: center; width: 96px; height: 96px; object-fit: contain; mix-blend-mode: multiply; }
.ht-desc { margin: 0; font: 800 22px/1.25 var(--f-sans); color: var(--text); text-align: center; min-height: 82px; }
.ht-strip { height: 62px; font-size: 30px; width: fit-content; margin: 26px auto 18px; }
.ht-ok { width: 360px; height: 100px; margin: 0 auto; font: 900 40px/1 var(--f-slab); }

/* fixes */
.sheet .flag { width: auto; height: auto; min-width: 34px; padding: 4px 6px; box-sizing: border-box; font: 900 18px/1 var(--f-sans); vertical-align: middle; background: var(--text-muted); color: var(--light-text); text-align: center; }
.pf-li.me .flag { background: var(--accent); color: var(--frame-dark); }
.ht-lanes .ht-bridge { flex: 1 1 0; min-height: 0; display: flex; padding: 8px 40px 0; }
.ht-bridge svg { display: block; width: 100%; height: 100%; }
.ht-keys { flex: none; }
.ht-seal, .army-up img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }

/* tribe skins (Army section + Shop sheet) */
.sk-head { height: 54px; margin: 30px auto 18px; width: max-content; max-width: 90%; font-size: 28px; }
.sk-top { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.sk-bal { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--frame-dark); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent); font: 800 26px/1 var(--f-sans); }
.sk-bal img { width: 48px; height: 48px; }
.sk-bal b { margin-inline-start: auto; font: 900 40px/1 var(--f-slab); color: var(--accent); }
.sk-get { height: 80px; padding: 0 30px; font-size: 30px; flex: none; }
.sk-note { min-height: 28px; margin: 6px 0 4px; text-align: center; font: 800 24px/1.2 var(--f-sans); color: var(--secondary); }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#stage.land .sk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#stage.land .sk-pic { height: 180px; }
#stage.land .sk-name { font-size: 26px; }
.sk-card { min-width: 0; display: flex; flex-direction: column; background: var(--cream-alt); box-shadow: inset 0 0 0 3px var(--bronze-dark), inset 0 0 0 6px var(--stone-sand); padding: 12px; }
.sk-card.on { box-shadow: inset 0 0 0 3px var(--bronze-dark), inset 0 0 0 7px var(--accent), inset 0 0 0 9px var(--primary); }
.sk-pic { position: relative; height: 210px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 55% 12% at 50% 90%, rgba(56, 40, 36, .3), transparent 70%), var(--stone-sand); }
.sk-grid.compact .sk-pic { height: 160px; }
.sk-pic img { height: 94%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(56, 40, 36, .25)); }
.sk-tag { position: absolute; top: 8px; inset-inline-start: 8px; padding: 4px 12px; font: 900 18px/1 var(--f-sans); text-transform: uppercase; color: var(--light-text); background: var(--primary); box-shadow: 0 0 0 2px var(--accent); }
.sk-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 4px 2px; }
.sk-name { align-self: flex-start; display: inline-block; font: 900 30px/1.1 var(--f-sans); text-transform: uppercase; color: var(--frame-dark); white-space: nowrap; }
.sk-desc { margin: 0; min-height: 50px; font: 700 19px/1.3 var(--f-sans); color: var(--text-muted); }
.sk-strip { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 64px; padding: 4px 0; border-top: 2px solid var(--stone-sand); border-bottom: 2px solid var(--stone-sand); }
.sk-strip img { height: 100%; width: auto; max-width: 23%; object-fit: contain; }
.sk-strip img:first-child { height: 70%; } .sk-strip img:nth-child(2) { height: 85%; }
.sk-btn { height: 74px; font-size: 26px; gap: 10px; }
.sk-btn.btn--gold { color: var(--text); }
.sk-btn.short { opacity: .85; }
.sk-gem { display: inline-flex; align-items: center; gap: 4px; }
.sk-gem img { width: 30px; height: 30px; }
.sk-gem b { font: 900 28px/1 var(--f-slab); }
.sk-reserve { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 14px 18px; background: rgba(253, 243, 232, .6); box-shadow: inset 0 0 0 2px var(--bronze-dark); }
.sk-slot { flex: none; width: 104px; height: 104px; display: grid; place-items: center; background: var(--frame-dark); box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 6px var(--bronze-dark); }
.sk-slot img { height: 86px; }
.sk-rtxt b { font: 900 28px/1.1 var(--f-slab); text-transform: uppercase; }
.sk-rtxt p { margin: 6px 0 0; font: 800 22px/1.25 var(--f-sans); color: var(--text-muted); }
