.android-app {
  --game-topbar: 52px;
  --landscape-shell: #1d342b;
  --landscape-panel: #172d24;
  --landscape-line: #405749;
  --landscape-cream: #fff2d2;
  --landscape-muted: #c4d3bd;
  --landscape-gold: #fbd984;
  --landscape-orange: #ff9d65;
}

/* Landscape menus */
.android-app:not([data-game-page="duel"]) .topbar {
  background: #20382e; color: #fff1d1; border: 0;
}
.android-app:not([data-game-page="duel"]) .topbar-inner {
  width: calc(100% - 16px); height: var(--game-topbar); min-height: 0; padding: 0;
  display: flex; flex-wrap: nowrap; gap: 5px;
}
.android-app .brand { min-height: 44px; gap: 5px; flex: none; }
.android-app .brand img:first-child { width: 33px; border-radius: 7px; }
.android-app .brand img:last-child { width: clamp(75px,13vw,119px); }
.android-app:not([data-game-page="duel"]) .topbar :is(.game-back,#settings) {
  background: #294337; color: #fff1d1; border-color: #46604e;
}
.android-app:not([data-game-page="duel"]) .topbar nav { order: 0; flex: 0 1 auto; gap: 1px; }
.android-app:not([data-game-page="duel"]) .topbar #settings { min-width: 44px; white-space: nowrap; padding-inline: 7px; }
.android-app:not([data-game-page="duel"]) .topbar nav button {
  min-height: 44px; padding: 4px clamp(5px,1vw,10px); font-size: clamp(11px,1.65vw,15px); white-space: nowrap;
}
.android-app .topbar nav button:is(:hover,[aria-current]) {
  background: #395346; border-color: #506a56;
}
.android-app .topbar nav #nav-team { color: #ffda8c; }
.android-app:not([data-game-page="duel"]) .topbar :is(.utilities,.wallet) { gap: 4px; }
.android-app:not([data-game-page="duel"]) .topbar .wallet {
  padding: 5px 6px; color: #ffdb93; background: #293f31;
}
.android-app .topbar .wallet strong { font-size: clamp(12px,2vw,16px); }
.android-app:not([data-game-page="duel"]) .topbar .day-clock {
  display: grid; text-align: center; line-height: 1.2; padding: 4px 3px;
  color: #fff1d1; font-size: 10px; white-space: nowrap;
}
.android-app .day-clock strong { color: #ffdb93; font-size: 13px; font-variant-numeric: tabular-nums; }
.android-app:not([data-game-page="duel"]) .shell {
  width: 100%; max-width: none; padding: 8px; margin: 0;
  height: calc(100vh - var(--game-topbar)); height: calc(100dvh - var(--game-topbar));
  background: #f7edd9;
}
.android-app .shell > .screen { animation: none; }
.android-app .shell > .screen:not(.duel) { height: 100%; }
.android-app .shell .page-heading {
  display: flex; align-items: center; gap: 6px; justify-content: space-between; margin: 0;
}
.android-app .shell .page-heading h1,.android-app .story h1 {
  font-size: clamp(24px,4.2vw,34px); letter-spacing: -.04em;
}
.android-app .shell .page-heading p { margin: 2px 0 0; font-size: 12px; line-height: 1.3; }
.android-app .shell .page-heading .quiet,.android-app .shell .page-heading .primary {
  min-height: 36px; padding: 4px 9px; font-size: 12px;
}
.android-app:not([data-game-page="duel"]) .hand-hud { display: none; }
.android-app .hero {
  grid-template-columns: minmax(0,46fr) minmax(0,54fr); min-height: 0; border-radius: 12px;
  background: #172c26;
}
.android-app .hero-copy { padding: 12px 8px 12px clamp(12px,4vw,36px); }
.android-app .hero-copy .eyebrow { display: none; }
.android-app .hero h1 {
  margin: 0 0 8px -4px; font-size: clamp(40px,10.7vw,98px); line-height: .94;
  color: #fff0c3; letter-spacing: -.08em; text-shadow: 3px 4px #274b3a;
}
.android-app .hero h1 br { display: inline; }
.android-app .hero h1 em { color: #ffa167; }
.android-app .hero h1 img { display: block; width: 100%; max-width: 460px; }
.android-app .hero p { margin-bottom: 12px; font-size: clamp(13px,2vw,17px); line-height: 1.5; }
.android-app .hero p br { display: none; }
.android-app .hero .primary { min-height: 41px; padding: 6px 10px; font-size: 13px; }
.android-app .hero #start:not([hidden]) + #new-game { background: #355444; color: #fff1d1; border-color: #506853; box-shadow: none; }
.android-app .hero-art {
  min-height: 0; background: radial-gradient(ellipse at 45% 25%,#f9d89b,#d8945b 72%,#ae6b49);
}
.android-app .hero-art::before,.android-app .hero .spark,.android-app .hero-ring:not(.second) { display: none; }
.android-app .hero-cards canvas {
  width: min(42%,40vh); box-shadow: 4px 6px #5e4225,6px 9px 12px #3f2a19a0;
}
.android-app .hero-cards canvas:nth-child(1) { left: 12%; top: 17%; }
.android-app .hero-cards canvas:nth-child(2) { right: 13%; top: 11%; }
.android-app .hero-cards canvas:nth-child(3) { width: min(43%,42vh); left: 31%; top: 43%; }
.android-app .hero-cards canvas:nth-child(1) { top: 12%; }
.android-app .hero-cards canvas:nth-child(2) { top: 8%; }
.android-app .hero-cards canvas:nth-child(3) { top: 33%; }
.android-app .hero-friends { inset: auto 10% 6%; }
.android-app .hero-friends .portrait { width: clamp(48px,8vw,80px); }
.android-app[data-game-page="world"] .shell { padding: 0; }
.android-app .world-screen { min-height: 0; border: 0; border-radius: 0; }
.android-app[data-game-page="duel"] #battle-map {
  background: #293f34; border-color: #405749; color: #fff2d2; min-height: 44px; min-width: 44px; padding: 4px 7px;
}
.android-app #settings-dialog .sound-setting > label:first-child { min-height: 36px; }
.android-app #settings-dialog .sound-setting input[type="range"] { min-height: 32px; }
.android-app #settings-dialog .settings-footer { margin-top: 6px; padding-top: 5px; }
.android-app #settings-dialog .settings-footer button { min-height: 36px; }
@media (max-height: 340px) {
  .android-app .hero h1 { font-size: clamp(40px,10vw,70px); }
  .android-app #settings-dialog { padding: 9px 12px; }
  .android-app .world-location h1 { font-size: 17px; }
}
.android-app .story { grid-template-columns: minmax(0,41fr) minmax(0,59fr); border-radius: 12px; }
.android-app .story-art,.android-app .home-cast { min-height: 0; }
.android-app .story-copy { padding: clamp(8px,2.4vw,20px); }
.android-app .story-copy .eyebrow { font-size: 11px; }
.android-app .story h1 { margin: 3px 0 6px; }
.android-app .story .dialogue { margin: 4px 0; padding: 5px 8px; font-size: 13px; line-height: 1.4; }
.android-app .story .dialogue p { margin: 0; font-size: 13px; line-height: 1.4; }
.android-app .story .actions { margin-top: 7px; gap: 5px; }
.android-app .story .actions button { min-height: 36px; padding: 4px 7px; font-size: 12px; }
.android-app .story-cast .portrait,.android-app .home-cast .portrait { width: clamp(48px,10.5vw,106px); }
.android-app #maps,.android-app #shop,.android-app #home {
  display: grid; gap: 6px; grid-template-rows: auto minmax(0,1fr);
}
.android-app .shell .map-grid {
  gap: 5px; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr));
}
.android-app .map-rival { gap:3px; }
.android-app .map-art { padding:4px; }
.android-app .map-art .portrait { width:clamp(27px,5vw,48px); }
.android-app .map-token canvas { width:clamp(24px,4vw,40px); }
.android-app .map-rival { font-size:clamp(11px,1.65vw,14px); }
.android-app #map-grid .map-info strong { font-size:clamp(11px,1.65vw,15px); }
.android-app .map-card { min-width: 0; border-radius: 8px; }
.android-app .map-card:hover { translate: none; }
.android-app .map-art {
  flex: 1; min-height: 0; width: 100%; display: flex; justify-content: space-between; gap: 4px; padding: 4px 8px;
}
.android-app .map-art::before { inset: 11% 12%; }
.android-app .map-rival {
  display: flex; align-items: center; gap: 5px; padding: 3px 5px 3px 3px;
  color: #fff0d0; background: #192d26e0; border-radius: 7px; z-index: 1; white-space: nowrap;
  font-size: clamp(12px,1.9vw,16px);
}
.android-app .map-art .portrait { position: static; flex: none; width: clamp(31px,6.3vw,64px); }
.android-app .map-art .portrait canvas { display: block; border-radius: 6px; box-shadow: none; }
.android-app .map-token { z-index: 1; }
.android-app .map-token canvas { display: block; width: clamp(27px,5.3vw,55px); height: auto; }
.android-app .map-info { display: grid; padding: 4px 7px; gap: 4px; align-items: center; }
.android-app #map-grid .map-info strong { font-size: clamp(13px,2vw,18px); }
.android-app .map-info small { align-self: center; font-size: 11px; white-space: nowrap; }

.android-app .game-tabs,.android-app .game-pager {
  display: flex; order: 0; flex: 0 1 auto; align-items: center; justify-content: center; gap: 4px;
}
.android-app .game-tabs { flex-wrap: wrap; }
.android-app .game-tabs button[aria-pressed="true"] { color: #fff1d1; background: #294a39; border-color: #46604e; }
.android-app .game-pager button { min-height: 35px; min-width: 41px; padding: 3px 8px; font-size: 19px; line-height: 1; }
.android-app .game-pager strong { width: 51px; font-size: 12px; text-align: center; }
.android-app .shop-layout { grid-template-columns: minmax(0,32fr) minmax(0,68fr); gap: 6px; }
.android-app .pack-panel,.android-app .draws { min-height: 0; padding: 8px; border-radius: 9px; }
.android-app .pack-panel { display: grid; justify-items: center; align-content: center; gap: 6px; }
.android-app .pack-wrap { min-height: 0; margin: 3px 0 5px; }
.android-app .pack {
  display: grid; justify-items: center; gap: 3px; line-height: 1;
  width: 97px; padding: 4px; border-block-width: 6px;
}
.android-app .pack > span { width: 100%; }
.android-app .pack > span img { display: block; width: 100%; }
.android-app .pack canvas { display: block; width: 48px; height: 48px; margin: 0; }
.android-app .pack small { font-size: 10px; }
.android-app .pack-panel .primary { min-height: 39px; padding: 4px; font-size: 13px; }
.android-app .pack-panel .mini-status { min-height: 0; margin: 0; font-size: 11px; }
.android-app .draws { gap: 5px; }
.android-app .draws :is(.collectible,.quiet) { padding: 3px 5px; min-width: 0; }
.android-app .draws .collectible { gap: 3px; }
.android-app .draws canvas { width: min(100%,60px); }
.android-app .draws .pack-odds { font-size: 11px; line-height: 1.35; }
.android-app .draws > button { min-height: 36px; }
.android-app #draw-grid { gap: 4px; }
.android-app .shell .stock-section { margin: 0; display: grid; gap: 4px; grid-template-rows: auto auto minmax(0,1fr) auto; }
.android-app .shell .inventory-head { margin: 0; }
.android-app .stock-section .inventory-head button { min-height: 34px; padding: 4px 7px; }
.android-app .shell .stock-section :is(.mini-status,#exchange-status) { margin: 0; font-size: 11px; }
.android-app .shell #shop-exchange { grid-template-rows: auto auto auto minmax(0,1fr) auto; }
.android-app .shell .stock-section :is(.stock-grid,.inventory-grid) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.android-app .shell .stock-item { justify-content: center; align-items: flex-start; padding: 7px; }
.android-app .shell .stock-item p { flex: 0; }
.android-app .shell .stock-item button { min-height: 35px; }
.android-app #exchange-list .collectible { justify-content: center; gap: 3px; padding: 4px; }
.android-app #exchange-list .collectible canvas { width: min(100%,55px); }
.android-app #exchange-list .collectible button { margin-top: 0; }

.outfit-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.android-app #clothes {
  display: grid; grid-template-columns: minmax(0,42fr) minmax(0,58fr);
  grid-template-rows: auto auto auto minmax(0,1fr); gap: 5px;
}
.android-app #clothes :is(.page-heading,#outfit-status) { grid-column: 1/-1; }
.android-app #clothes .page-heading p { display: none; }
.android-app #outfit-current,.android-app #outfit-status,.android-app #outfit-loadout {
  margin: 0; padding: 2px 5px; align-self: center; font-size: 11px; line-height: 1.3;
}
.android-app #outfit-preview .outfit-card { height: 100%; }
.android-app #outfit-preview .outfit-swatch { flex: 1; min-height: 50px; }
.android-app #outfit-preview .outfit-swatch .portrait { width: clamp(44px,min(11vw,22vh),86px); }
.android-app .outfit-copy { flex: 0; padding: 5px 7px; gap: 3px; }
.android-app .outfit-copy :is(p,strong) { font-size: 11px; line-height: 1.3; }
.android-app .outfit-copy button { min-height: 34px; padding: 3px 6px; }
.android-app .outfit-grid {
  grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 5px;
}
.android-app .outfit-choice {
  display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0;
  gap: 4px; padding: 4px 2px; border: 1px solid #e1cfae; border-radius: 8px; background: #fff8e9;
  font-size: clamp(11px,1.7vw,14px);
}
.android-app .outfit-choice[aria-pressed="true"] { background: #e7eed7; border-color: #759673; }
.android-app .outfit-choice .portrait { width: clamp(34px,min(8vw,16vh),64px); }
.android-app .outfit-choice figcaption { display: none; }

.android-app #bag {
  display: grid; grid-template-columns: minmax(0,61fr) minmax(0,39fr);
  grid-template-rows: auto minmax(0,1fr); gap: 6px;
}
.android-app #bag > :is(.page-heading,#bag-supplies) { grid-column: 1/-1; }
.android-app #bag .page-heading p { display: none; }
.android-app #bag-collection { grid-area: 2/1; display: flex; flex-direction: column; gap: 4px; }
.android-app #team-panel { grid-area: 2/2; display: block; padding: 7px; }
.android-app #team-panel .mini-status { margin: 2px 0 4px; font-size: 11px; }
.android-app #team-slots { grid-template-columns: 1fr; gap: 3px; }
.android-app :is(#team-slots button,.empty-slot) {
  flex-direction: row; justify-content: flex-start; min-height: 43px; padding: 3px 6px; gap: 5px; font-size: 13px;
}
.android-app #team-slots canvas { width: 33px; height: 33px; margin: 0; }
.android-app #team-slots i { top: auto; right: 7px; }
.android-app #inventory { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.android-app #inventory .card-tile {
  margin: 0; display: flex; align-items: center; min-height: 66px; gap: 4px; padding: 5px 3px;
  text-align: left; background: #fff8e9; border: 1px solid #e1cfae; border-radius: 8px;
}
.android-app #inventory .card-tile.selected { border-color: #759673; background: #e7eed7; }
.android-app .card-tile canvas { width: clamp(29px,5.5vw,55px); height: auto; }
.android-app .card-tile-label :is(strong,small) { display: block; overflow-wrap: anywhere; }
.android-app .card-tile-label small { color: #566050; }
.android-app #bag-empty { font-size: 12px; }
.android-app #bag-gear { align-items: stretch; }
.android-app #bag-gear > button { align-self: start; }

.android-app .home-layout {
  grid-template-columns: minmax(0,41fr) minmax(0,59fr); gap: 6px;
}
.android-app .home-work { padding: 7px 10px; }
.android-app #home-notice { font-size: 12px; min-height: 0; margin: 3px 0; }
.android-app #home-tasks { margin: 4px 0; gap: 3px; }
.android-app #home-tasks li { padding: 5px 7px; }
.android-app .home-work .actions { margin-top: 6px; gap: 5px; }
.android-app .home-work .actions button { min-height: 36px; padding: 4px 8px; font-size: 13px; }

.android-app #card-stats {
  padding: 12px; max-height: calc(100% - 16px); border-color: #aa8154; background: #f8ecd1;
}
.android-app #card-stats .card-stat-heading canvas { width: 64px; height: 64px; }
.android-app #card-stats #card-stats-values { margin: 6px 0 9px; gap: 4px 14px; }
.android-app #card-stats .actions { justify-content: flex-end; }

@media (max-width: 720px) {
  .android-app .topbar #nav-team { display: none; }
  .android-app #bag .page-heading > .primary { display: none; }
}
@media (max-width: 620px) {
  .android-app:not([data-game-page="title"]):not([data-game-page="story"]) .brand img:last-child { display: none; }
}
@media (max-height: 340px) {
  .android-app:not([data-game-page="duel"]) .shell { padding: 5px; }
  .android-app .shell .page-heading h1,.android-app .story h1 { font-size: 24px; }
  .android-app .map-art .portrait { width: clamp(34px,5.8vw,48px); }
  .android-app #shop .page-heading p { display: none; }
  .android-app .pack-wrap { margin: 3px 0 8px; }
  .android-app .pack {
    width: 85px; padding: 3px; border-block-width: 5px; transform: rotate(-5deg); scale: 1;
    box-shadow: 2px 4px 0 #192b27,3px 6px 9px #152823aa;
  }
  .android-app .pack span { font-size: 13px; }
  .android-app .pack canvas { width: 42px; height: 42px; }
  .android-app .draws { gap: 4px; padding: 6px; }
  .android-app .draws h2 { font-size: 16px; }
  .android-app .draws #pack-progress { font-size: 11px; }
  .android-app .draws .pack-odds { font-size: 10px; }
  .android-app .draws .collectible { gap: 2px; }
  .android-app .draws canvas { width: min(100%,42px); }
  .android-app .draws .stars { font-size: 10px; }
  .android-app .draws > button { min-height: 32px; }
  .android-app #exchange-list .collectible {
    display: grid; grid-template-columns: 45px minmax(0,1fr); grid-template-rows: repeat(4,auto);
    align-content: center; justify-content: stretch; justify-items: start; gap: 2px 5px; padding: 5px;
  }
  .android-app #exchange-list .collectible canvas { grid-row: 1/5; }
}
.android-app #settings { min-height: 44px; padding: 4px 12px; }
.android-app .topbar-inner { min-height: 57px; }
.android-app .topbar nav button,.android-app .game-back { min-height: 44px; }
.android-app #settings-dialog {
  width: min(560px,calc(100% - 32px)); max-height: calc(100% - 22px); overflow: auto;
  padding: clamp(12px,3vw,20px); border-radius: 15px; border: 2px solid #aa8154;
  background: #f8ecd1; color: #27382d; box-shadow: 0 12px 32px #10241c77;
}
.android-app #settings-dialog::backdrop { background: #14271eb8; }
.android-app #settings-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.android-app #settings-dialog h2 { font-size: 22px; margin: 0; }
.android-app #settings-dialog section { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.android-app #settings-dialog h3 { grid-column: 1/-1; color: #57705b; font-size: 13px; margin: 2px 0 0; }
.android-app .sound-setting { min-width: 0; padding: 9px 10px; border-radius: 9px; background: #eddfbc; }
.android-app .sound-setting > label:first-child {
  min-height: 46px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800;
}
.android-app .sound-setting input { accent-color: #426b4d; }
.android-app .sound-setting input[type="checkbox"] { width: 23px; height: 23px; margin: 0; }
.android-app .volume-setting { display: flex; justify-content: space-between; gap: 5px; font-size: 12px; }
.android-app .volume-setting output { font-weight: 850; }
.android-app .sound-setting input[type="range"] { width: 100%; min-height: 42px; margin: 0; }

.android-app[data-game-page="duel"] body { background: var(--landscape-shell); }
.android-app[data-game-page="duel"] .topbar {
  position: sticky; top: 0; z-index: 7; background: var(--landscape-shell); color: var(--landscape-cream); border-color: var(--landscape-line);
}
.android-app[data-game-page="duel"] .topbar-inner {
  width: calc(100% - 14px); display: grid; grid-template-columns: auto minmax(0,1fr) auto auto;
  min-height: 56px; gap: 6px; padding: 4px 0; align-items: center;
}
.android-app[data-game-page="duel"] .brand-group { min-width: 0; gap: 6px; }
.android-app[data-game-page="duel"] .utilities { display: flex; gap: 4px; grid-column: 4; grid-row: 1; }
.android-app[data-game-page="duel"] :is(.brand,nav,.wallet,#day-clock,#duel > .page-heading,#duel-status + .edge-tip,.touch-instructions,.scene-controls) { display: none; }
.android-app[data-game-page="duel"] :is(#settings,.game-back,#landscape-controls button) {
  min-height: 44px; min-width: 44px; border: 1px solid var(--landscape-line);
  background: #293f34; color: var(--landscape-cream); border-radius: 9px;
}
.android-app[data-game-page="duel"] .game-back { font: 650 28px/1 system-ui; }
.android-app #landscape-location { font-size: clamp(12px,2.35vw,18px); white-space: nowrap; }
.android-app #landscape-turn {
  grid-column: 2; justify-self: center; padding: 6px 11px; border-radius: 999px;
  background: var(--landscape-gold); color: #423728; font-size: 13px; font-weight: 900; white-space: nowrap;
}
.android-app #landscape-score { grid-column: 3; grid-row: 1; }
.android-app #landscape-score .duel-meter { display: flex; gap: 5px; margin: 0; }
.android-app #landscape-score .duel-meter > div { min-width: 0; padding: 3px 6px; background: #293f34; border-color: #405749; }
.android-app #landscape-score .duel-meter span { color: var(--landscape-muted); font-size: 10px; line-height: 1.2; }
.android-app #landscape-score .duel-meter strong { color: var(--landscape-gold); font-size: 15px; }
.android-app[data-game-page="duel"] .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.android-app .duel .duel-layout {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(155px,25%);
  gap: 0; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px);
}
.android-app .duel-field { display: grid; min-width: 0; grid-template-rows: minmax(180px,1fr) auto; }
.android-app .duel .duel-board { min-height: 180px; border: 0; border-radius: 0; }
.android-app .arena-cast { justify-content: flex-end; left: auto; }
.android-app .arena-cast .portrait:first-child:not(:last-child) { display: none; }
.android-app .edge-hint { top:auto; bottom:8px; right:8px; left:auto; translate:0; max-width:calc(100% - 16px); }
.android-app .duel-panel .edge-tip { color:var(--landscape-muted); }
.android-app #landscape-loadout {
  display: grid; grid-template-columns: 57px minmax(0,1fr); min-width: 0; align-items: center; gap: 6px;
  padding: 6px 7px; background: #253c30; color: var(--landscape-cream);
}
.android-app #landscape-loadout h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.android-app #landscape-loadout #player-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.android-app #landscape-loadout .fighter {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center; grid-auto-flow: row;
  gap: 2px 6px; width: 100%; min-height: 52px; padding: 4px 6px; text-align: left; background: #30493b;
  border: 1px solid var(--landscape-line); border-radius: 9px; color: var(--landscape-cream); box-shadow: none;
}
.android-app #landscape-loadout .fighter[aria-pressed="true"] { border-color: var(--landscape-gold); background: #4b583b; outline: none; }
.android-app #landscape-loadout .fighter canvas { grid-row: 1/3; width: clamp(26px,5vw,38px); margin: 0; }
.android-app #landscape-loadout .fighter strong { font-size: clamp(11px,1.9vw,14px); white-space: normal; }
.android-app #landscape-loadout .fighter .stars { display: none; }
.android-app #landscape-loadout .fighter .defense { color: var(--landscape-muted); font-size: 11px; margin: 0; }
.android-app #landscape-loadout .hand-hud { position: static; display: grid; grid-template-columns: 1fr; min-width: 0; padding: 4px; border: 0; background: transparent; color: var(--landscape-gold); box-shadow: none; }
.android-app #landscape-loadout .hand-hud strong { justify-self: start; }
.android-app #landscape-loadout .hand-hud i { background: #455750; }
.android-app #landscape-loadout .hand-hud b { background: var(--landscape-gold); }
.android-app .duel-panel {
  display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 5px; padding: 7px;
  border: 0; border-left: 1px solid var(--landscape-line); border-radius: 0;
  background: var(--landscape-panel); color: var(--landscape-cream);
}
.android-app .duel-panel .turn-marker { display: none; }
.android-app .duel-panel #duel-status { color: var(--landscape-muted); font-size: 12px; min-height: 0; }
.android-app .duel-panel .edge-tip { display:none; }
.android-app #enemy-skill-status { color:#f5d28b; font-size:11px; line-height:1.3; margin:2px 0 4px; }
.android-app .duel-panel .rosters { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.android-app .duel-panel .duel-gear { margin: 3px 0 0; border-color: var(--landscape-line); min-height: 0; padding-top: 5px; }
.android-app #duel-gear-status { color: var(--landscape-muted); }
.android-app #duel-gear-actions { display: grid; grid-template-columns: 1fr; gap: 5px; max-height: 123px; overflow-y: auto; padding: 2px 1px; }
.android-app #duel-gear-actions .quiet { display: flex; align-items: center; gap: 6px; min-height: 45px; background: #2d4638; border-color: var(--landscape-line); color: var(--landscape-cream); padding: 5px; font-size: 13px; }
.android-app #duel-gear-actions .skin-skill::before { content: "✦"; color: #fbd984; display: grid; place-items: center; background: #885a3e; min-width: 25px; height: 27px; border-radius: 6px; }
.android-app #duel-gear-actions .legend-skill { border-color:#c5a666; background:linear-gradient(115deg,#534b35,#304b3c); }
.android-app #duel-gear-actions .quiet { min-height:38px; }
.android-app #duel-gear .game-pager { min-height:27px; margin:3px 0 0; }
.android-app #duel-gear .game-pager button { min-height:27px; padding:1px 10px; }
.android-app #duel-gear-actions { align-content:start; }
.android-app #landscape-controls { margin-top: auto; display: grid; gap: 4px; text-align: center; }
.android-app #landscape-controls .touch-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); position: static; gap: 3px; }
.android-app #landscape-controls #touch-camera { font-size: 12px; padding-inline: 2px; }
.android-app #landscape-controls #touch-camera[aria-pressed="true"],.android-app #landscape-controls #cancel-charge { color: #472a20; background: var(--landscape-orange); border-color: #a55139; }
.android-app #landscape-controls strong { color: var(--landscape-gold); font-size: 13px; }
.android-app #landscape-controls #cancel-charge { margin: 0; font-size: 13px; }
.android-app .duel-panel .rps { margin: 0; }
.android-app .duel-panel .rps-buttons .quiet { min-height: 44px; padding-inline: 1px; font-size: 11px; }
.android-app .duel-panel .rps-buttons .quiet span { margin: 0; }
.android-app .duel-panel .duel-actions { gap: 4px; margin-top: 4px; }
.android-app .duel-panel .duel-actions button { min-height: 44px; padding-inline: 6px; font-size: 12px; }
@media (min-width: 521px) {
  .android-app .duel .duel-layout { height: calc(100vh - 57px); height: calc(100dvh - 57px); min-height: 0; }
  .android-app .duel-field { min-height: 0; grid-template-rows: minmax(105px,1fr) auto; }
  .android-app .duel .duel-board { min-height: 0; }
  .android-app .duel-panel { overflow-y: auto; }
  .android-app .duel-panel .duel-gear { display: flex; flex: 1; flex-direction: column; }
  .android-app #duel-gear-actions { max-height: none; flex: 1; }
  .android-app #duel-gear-status { max-height: 38px; overflow: auto; }
}
@media (max-width: 520px) {
  .android-app .duel .duel-layout { grid-template-columns: 1fr; }
  .android-app .duel .duel-board { min-height: 240px; }
  .android-app .duel-panel { border-left: 0; }
  .android-app #landscape-controls .touch-tools { grid-template-columns: repeat(3,1fr); }
  .android-app #landscape-location { white-space: normal; }
}
@media (max-width: 350px) {
  .android-app #settings-dialog section { grid-template-columns: 1fr; }
  .android-app #landscape-score .duel-meter > div:last-child { display: none; }
}
