/* PlayGU 1.2.1: readable, paged controls beside the approved tabletop. */
body.in-game .premium-table-arena.universe-table {
  --guide-width: clamp(330px, 27vw, 440px);
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--guide-width) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 12px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background: radial-gradient(ellipse at 32% 45%, #102b58, #02091e 72%) !important;
}
body.in-game .premium-center-stage {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.in-game .premium-board.universe-board {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(100%, calc((100dvh - 24px) * 1.3333333)) !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  container-type: inline-size;
}

/* Solid nameplates cover the PLAYER labels printed on the mat. */
.board-player-seat .premium-seat-head {
  left: 15% !important;
  top: -76% !important;
  width: 88% !important;
  height: 56% !important;
  padding: 2px 5px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  background: linear-gradient(135deg, #061631, #0d2850) !important;
  border: 2px solid var(--seat-color) !important;
  border-radius: 9px !important;
  box-shadow: 0 0 0 2px #03112b, 0 0 18px rgba(var(--seat-rgb), .4) !important;
  overflow: hidden !important;
  text-shadow: 0 2px 3px #000 !important;
}
.board-seat-bl .premium-seat-head,
.board-seat-br .premium-seat-head {
  top: -60% !important;
  height: 56% !important;
}
.board-player-seat .premium-seat-head strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: clamp(18px, 2.9cqw, 44px) !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;
  letter-spacing: .025em !important;
  text-align: center !important;
  text-transform: uppercase;
  color: #fff !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  padding-right: 14%;
}
.board-player-seat .premium-seat-head.long-player-name strong {
  font-size: clamp(14px, 2.05cqw, 30px) !important;
  letter-spacing: 0 !important;
}
.seat-meta { display: flex; justify-content: center; align-items: center; gap: 8px; }
.board-player-seat .seat-status,
.board-player-seat .seat-power-count {
  font-size: clamp(10px, 1.05cqw, 14px) !important;
  line-height: 1.15 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.board-player-seat.action-now .premium-seat-head {
  background: linear-gradient(135deg, #102d4b, #17395d) !important;
  box-shadow: 0 0 0 3px #fff, 0 0 24px rgba(var(--seat-rgb), .8) !important;
}

/* The guide is a real layout column, never a tiny overlay on the artwork. */
.universe-live-hud.readable-game-guide {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid #4076aa !important;
  background: linear-gradient(155deg, #102b50, #07142f 65%) !important;
  box-shadow: 0 12px 38px #0007 !important;
  font-size: 18px;
}
body.in-game .readable-game-guide .universe-hud-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
body.in-game .readable-game-guide .universe-hud-head strong {
  font-size: 18px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  color: #94edff !important;
}
body.in-game .readable-game-guide .universe-turn-line {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  padding: 12px 14px !important;
  border: 1px solid rgba(var(--turn-rgb), .65) !important;
  border-left: 5px solid var(--turn-color) !important;
  border-radius: 12px !important;
  background: #07162d !important;
  overflow: visible !important;
  white-space: normal !important;
}
.universe-turn-label { font-size: 12px; line-height: 1.2; letter-spacing: .09em; color: #a9c9e9; }
.universe-turn-name { font-size: clamp(24px, 2vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
body.in-game .readable-game-guide .universe-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; flex: 0 0 auto; }
body.in-game .readable-game-guide .meter { min-width: 0 !important; padding: 9px 7px !important; border-radius: 10px !important; }
body.in-game .readable-game-guide .meter-head { display: grid; gap: 5px; font-size: 12px !important; line-height: 1.2 !important; }
body.in-game .readable-game-guide .meter-head span:last-child { font-size: 21px; font-weight: 950; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.in-game .readable-game-guide .meter.think .meter-head span:first-child { color: #70ddff; }
body.in-game .readable-game-guide .meter.act .meter-head span:first-child { color: #ffe46a; }
body.in-game .readable-game-guide .meter.care .meter-head span:first-child { color: #ff8fc1; }
body.in-game .readable-game-guide .meter-track { height: 6px !important; margin-top: 7px !important; }
body.in-game .readable-game-guide .universe-action {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: block !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #5486ae #0b1c39;
  padding: 0 3px 3px 0;
}
body.in-game .readable-game-guide .universe-action .action-panel {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}
body.in-game .readable-game-guide .universe-action .action-turn-kicker { font-size: 13px !important; line-height: 1.3 !important; letter-spacing: .05em !important; }
body.in-game .readable-game-guide .universe-action .action-panel h3,
body.in-game .readable-game-guide .universe-action .result-banner {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  overflow-wrap: anywhere;
}
body.in-game .readable-game-guide .universe-action .action-panel p,
body.in-game .readable-game-guide .universe-action .think-prompt,
body.in-game .readable-game-guide .universe-action .board-touch-prompt,
body.in-game .readable-game-guide .universe-action .smart-solve-badge {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  padding: 0 !important;
}
body.in-game .readable-game-guide .universe-action .think-prompt,
body.in-game .readable-game-guide .universe-action .board-touch-prompt {
  padding: 12px !important;
  border-radius: 10px !important;
  background: #163451 !important;
  color: #fff !important;
}
body.in-game .readable-game-guide .universe-action .primary-btn,
body.in-game .readable-game-guide .universe-action .secondary-btn,
body.in-game .readable-game-guide .universe-action .compact-go,
body.in-game .readable-game-guide .universe-action .onboard-pass {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  border-radius: 12px !important;
  white-space: normal !important;
}
body.in-game .readable-game-guide .universe-action .button-row { width: 100%; margin: 0 !important; }
.guide-deck-action { margin-top: 16px !important; }
body.in-game .readable-game-guide .universe-action .resolution-box { gap: 6px !important; }
body.in-game .readable-game-guide .universe-action .resolution-stat { padding: 10px 5px !important; font-size: 12px !important; }
body.in-game .readable-game-guide .universe-action .resolution-stat strong { font-size: 23px !important; line-height: 1.2 !important; }
.readable-guardian-picks { display: grid; gap: 8px; }
.readable-guardian-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 7px; }
.readable-guardian-choice { display: grid; gap: 4px; text-align: left; border: 1px solid #48729b; background: #112b48; color: #fff; padding: 11px 12px; border-radius: 10px; min-height: 58px; }
.readable-guardian-choice strong { font-size: 18px; line-height: 1.2; }
.readable-guardian-choice span { font-size: 12px; line-height: 1.3; color: #c1dbee; white-space: nowrap; }
.readable-guardian-choice[aria-pressed="true"] { border: 2px solid #ffe064; background: #304052; }
.readable-guardian-choice:disabled { opacity: .45; }
.readable-card-zoom { border: 1px solid #6b9ccd; border-radius: 10px; background: #153b63; color: #fff; font-size: 25px; min-height: 44px; }
.readable-game-guide button:focus-visible { outline: 3px solid #a5f3ff !important; outline-offset: 2px !important; }
body.in-game .readable-game-guide .universe-action .board-power-choice-tray {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
body.in-game .readable-game-guide .power-tray-head { font-size: 16px !important; line-height: 1.3 !important; gap: 10px; }
body.in-game .readable-game-guide .power-tray-head button { width: 40px; height: 40px; flex: 0 0 40px; font-size: 24px; }
body.in-game .readable-game-guide .power-tray-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 0; align-items: stretch; }
body.in-game .readable-game-guide .power-choice-card { height: auto; width: 100%; max-width: none; display: block; }
body.in-game .readable-game-guide .power-choice-card.response-disabled,
body.in-game .hand-card.response-disabled { opacity: .38; filter: grayscale(.8); }
body.in-game .readable-game-guide .power-choice-play { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 5px; border: 1px solid #4c7697; background: #102942; border-radius: 10px; color: #fff; }
body.in-game .readable-game-guide .power-choice-card.think .power-choice-play { border-color: #45cfff; box-shadow: inset 0 0 18px #168fef22; }
body.in-game .readable-game-guide .power-choice-card.act .power-choice-play { border-color: #ffd447; box-shadow: inset 0 0 18px #ffad1822; }
body.in-game .readable-game-guide .power-choice-card.care .power-choice-play { border-color: #ff5fa8; box-shadow: inset 0 0 18px #ef347f22; }
body.in-game .readable-game-guide .power-choice-play img { width: auto; height: 145px; max-width: 100%; object-fit: contain; }
.power-choice-name { font-size: 15px; line-height: 1.25; font-weight: 850; }
.power-choice-value { font-size: 14px; font-weight: 950; color: #ffe678; }
body.in-game .readable-game-guide .power-choice-zoom { width: 34px !important; height: 34px !important; right: 0 !important; top: 0 !important; bottom: auto !important; font-size: 21px !important; }
body.in-game .readable-game-guide .reward-power-picks { display: flex; height: auto !important; gap: 12px; }
body.in-game .readable-game-guide .reward-power-pick { width: 48% !important; max-height: none !important; }
body.in-game .readable-game-guide .reward-power-pick img { width: 100%; max-height: 220px; object-fit: contain; }
body.in-game .readable-game-guide .universe-action .reward-celebration {
  position: relative !important; overflow: hidden !important; text-align: center !important;
  padding: 24px 18px !important; border: 2px solid #ffe46a !important; border-radius: 18px !important;
  background: radial-gradient(circle at 50% 4%,#ffe45a42,transparent 37%),linear-gradient(160deg,#244ead,#321d72 68%,#0c3269) !important;
  box-shadow: inset 0 0 28px #54ddff24,0 0 30px #ffe15a33 !important;
}
body.in-game .readable-game-guide .universe-action .reward-celebration h3 { font-size: 36px !important; color: #fff3a0; text-shadow: 0 0 18px #ffd94d77; }
body.in-game .readable-game-guide .universe-action .reward-celebration .action-turn-kicker { font-size: 18px !important; color: #baf5ff; }
body.in-game .readable-game-guide .universe-action .reward-celebration .reward-reveal { width: 100%; box-sizing: border-box; padding: 14px !important; }
body.in-game .readable-game-guide .universe-action .reward-celebration .reward-reveal > strong { font-size: 21px; }
body.in-game .readable-game-guide .universe-action .reward-celebration .fixed-hand-note { font-size: 16px !important; line-height: 1.4 !important; color: #bdf5ff !important; }
body.in-game .readable-game-guide .universe-board-tools {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid #345576;
}
body.in-game .readable-game-guide .universe-board-tools button { aspect-ratio: auto !important; min-height: 50px; display: grid; align-content: center; gap: 3px; border-radius: 9px !important; padding: 4px 2px !important; }
.guide-tool-icon { font-size: 21px; line-height: 1; }
.guide-tool-label { font-size: 13px; line-height: 1.2; }

@container (max-width: 1100px) {
  .board-player-seat .seat-meta { display: none; }
}
@media (orientation: landscape) and (max-height: 600px) {
  body.in-game .premium-table-arena.universe-table { --guide-width: 280px; gap: 8px !important; padding: 6px !important; }
  body.in-game .premium-board.universe-board { width: min(100%, calc((100dvh - 12px) * 1.3333333)) !important; }
  .universe-live-hud.readable-game-guide { padding: 10px !important; gap: 8px !important; border-radius: 12px !important; }
  body.in-game .readable-game-guide .universe-turn-line { padding: 8px 10px !important; gap: 2px; }
  .universe-turn-name { font-size: 24px; }
  body.in-game .readable-game-guide .meter { padding: 6px 5px !important; }
  body.in-game .readable-game-guide .meter-head span:last-child { font-size: 19px; }
  body.in-game .readable-game-guide .universe-action .action-panel h3,
  body.in-game .readable-game-guide .universe-action .result-banner { font-size: 24px !important; }
  body.in-game .readable-game-guide .universe-action .action-panel p,
  body.in-game .readable-game-guide .universe-action .think-prompt,
  body.in-game .readable-game-guide .universe-action .board-touch-prompt { font-size: 16px !important; line-height: 1.45 !important; }
  body.in-game .readable-game-guide .universe-action .primary-btn,
  body.in-game .readable-game-guide .universe-action .secondary-btn,
  body.in-game .readable-game-guide .universe-action .onboard-pass { font-size: 16px !important; min-height: 44px !important; padding: 10px !important; }
  body.in-game .readable-game-guide .universe-board-tools { padding-top: 6px; }
  body.in-game .readable-game-guide .universe-board-tools button { min-height: 44px; }
  .readable-guardian-choice strong { font-size: 16px; }
  .readable-guardian-row { grid-template-columns: minmax(0, 1fr) 40px; }
  body.in-game .readable-game-guide .power-choice-play img { height: 120px; }
}
@media (orientation: portrait) and (max-width: 1100px) {
  body.in-game .premium-table-arena.universe-table { visibility: hidden !important; }
}

/* Match the printed hand wells without moving the nameplates. */
body.in-game .board-player-seat .premium-seat-cards {
  position: relative !important;
  left: 3% !important;
  top: 6.6% !important;
  height: 107% !important;
}
body.in-game .board-player-seat .seat-lead-guardian {
  left: 107% !important;
  top: 6.6% !important;
  height: 107% !important;
}
body.in-game .card-zoom-mini {
  width: 44px !important; height: 44px !important;
  right: -5px !important; bottom: -9px !important;
  font-size: 29px !important;
}
body.in-game .readable-game-guide .power-choice-zoom {
  width: 44px !important; height: 44px !important;
  right: 0 !important; top: 0 !important; bottom: auto !important;
  font-size: 28px !important;
}
.board-player-seat .premium-seat-head { min-height: 28px !important; }
.player-hand-view {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 5px; border: 0; background: transparent; color: #c6f7ff;
  font-size: clamp(20px, 2cqw, 30px); font-weight: 950;
  cursor: zoom-in; touch-action: manipulation;
}
.player-hand-view:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.seat-turn-marker {
  position: absolute; z-index: 80; left: -6%; top: -68%;
  width: clamp(24px, 3.2cqw, 46px); aspect-ratio: 1;
  display: grid; place-items: center; pointer-events: none;
  border: 2px solid #ffe27b; border-radius: 50%; background: #04223d;
  box-shadow: 0 0 15px #71dfff, 0 0 3px #fff inset;
  font-size: clamp(18px, 2.4cqw, 35px); line-height: 1;
}
.board-seat-bl .seat-turn-marker, .board-seat-br .seat-turn-marker { top: -52%; }
body.in-game .lead-home-label { font-size: clamp(8px, .9cqw, 12px) !important; top: -17% !important; padding: 2px 6px !important; }
body.in-game .board-deck > span, body.in-game .board-discard > span { font-size: clamp(8px, .85cqw, 12px) !important; line-height: 1.2 !important; }
body.in-game .board-deck > small, body.in-game .board-discard > small { font-size: clamp(8px, .75cqw, 11px) !important; line-height: 1.2 !important; }
body.in-game .readable-game-guide .no-power-note { font-size: 18px; line-height: 1.4; grid-column: 1 / -1; }
body.in-game .readable-game-guide .power-tray-head button { width: 44px; height: 44px; flex-basis: 44px; }
@container (max-width: 900px) {
  /* The full nameplate opens the five-card hand on smaller boards. */
  .board-player-seat .guardian-zoom { display: none !important; }
}

/* Keep escape and return controls visible on every secondary screen. */
.resume-game-bar {
  position: fixed; z-index: 150; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 18px; width: max-content; max-width: calc(100vw - 24px);
  padding: 10px 14px; border-radius: 16px; border: 1px solid #73c4ee;
  background: #061a37; box-shadow: 0 8px 30px #0009; color: white; font-size: 16px;
}
.resume-game-bar button { min-height: 44px; padding: 10px 18px; font-size: 17px; }
body:has(.resume-game-bar:not(.hidden)) .setup-cta-row,
body:has(.resume-game-bar:not(.hidden)) .draft-cta { bottom: 92px !important; }
body:not(.in-game) .screen { padding-bottom: 120px; }
.setup-resume-note { font-size: 18px; line-height: 1.5; padding: 16px; border: 1px solid #71c9ed; border-radius: 12px; background: #0c2c4b; }

/* A large card viewer with a fixed, readable navigation bar. */
body.card-viewer-open { overflow: hidden !important; }
body.card-viewer-open .rotate-overlay { display: none !important; }
#rotateExit { min-height: 48px; padding: 12px 18px; margin-top: 24px; font-size: 18px; }
#cardModal { z-index: 300; padding: 12px; }
#cardModal .card-viewer-panel {
  width: min(1180px, calc(100vw - 24px));
  height: min(960px, calc(100dvh - 24px)); max-height: none;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
}
.viewer-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto; gap: 12px; padding: 12px;
  background: #081c3c; border-bottom: 1px solid #547fa7;
}
.viewer-navigation { display: flex; align-items: center; gap: 12px; }
.viewer-toolbar button {
  min-width: 48px; min-height: 48px; padding: 10px 14px;
  border: 1px solid #7eb8e7; border-radius: 10px; color: #fff;
  background: #183d63; font-size: 17px; font-weight: 850; white-space: nowrap;
}
.viewer-toolbar button:focus-visible { outline: 3px solid #ffe16b; outline-offset: 2px; }
.viewer-toolbar .viewer-close { margin-left: auto; border-color: #ffdb68; color: #ffe790; }
#viewerCounter { font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
#cardModal .viewer-grid {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr) !important;
  align-items: start; gap: 24px; padding: 20px;
}
.viewer-image-stage { position: sticky; top: 0; text-align: center; min-width: 0; }
#cardModal .viewer-card {
  width: 100%; max-height: min(740px, calc(100dvh - 180px));
  object-fit: contain; border-radius: 10px; touch-action: pan-y pinch-zoom;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.viewer-swipe-hint { margin: 10px 0 0; color: #c5e4ff; font-size: 14px; line-height: 1.35; }
#cardModal .viewer-copy { padding-top: 0; font-size: 18px; line-height: 1.5; }
#cardModal .viewer-copy h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
#cardModal .viewer-meta-line { font-size: 18px !important; }
#cardModal .big-stats .stat-pill { font-size: 19px; }
#cardModal .challenge-scale span { font-size: 14px; }
#cardModal .challenge-scale b { font-size: 18px; }
@media (max-width: 650px) {
  body:has(.resume-game-bar:not(.hidden)) .setup-cta-row,
  body:has(.resume-game-bar:not(.hidden)) .draft-cta { bottom: 120px !important; }
  #cardModal .viewer-grid { grid-template-columns: 1fr !important; gap: 20px; padding: 14px; }
  .viewer-image-stage { position: static; }
  .viewer-navigation { gap: 8px; }
  .viewer-navigation button span { display: none; }
  .viewer-toolbar { gap: 8px; padding: 8px; }
  .viewer-toolbar button { padding: 8px 10px; }
  #cardModal .viewer-card { max-height: 66dvh; }
}
@media (orientation: landscape) and (max-height: 600px) {
  body.in-game .readable-game-guide .universe-hud-head { flex-wrap: nowrap; }
  body.in-game .readable-game-guide .universe-hud-head > span { display: none; }
  body.in-game .readable-game-guide .universe-hud-head strong { font-size: 16px !important; }
  body.in-game .readable-game-guide .universe-turn-label { display: none; }
  body.in-game .readable-game-guide .universe-turn-name { font-size: 22px; }
  body.in-game .readable-game-guide .guide-tool-icon { display: none; }
  body.in-game .readable-game-guide .guide-tool-label { font-size: 13px; }
  body.in-game .readable-game-guide .universe-board-tools button { min-height: 44px; }
  #cardModal .viewer-grid { padding: 10px 16px; }
  #cardModal .viewer-card { max-height: calc(100dvh - 140px); }
}

/* Retry and solution content share the guide's scroll area. Board artwork,
   scores and the fixed exit controls keep their existing positions. */
body.in-game .readable-game-guide .encounter-help {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #52779a;
  font-size: 18px; line-height: 1.5; overflow-wrap: anywhere;
}
body.in-game .readable-game-guide .encounter-help .button-row { display: grid; gap: 10px; }
body.in-game .readable-game-guide .team-power-preview { margin-bottom: 14px; }
body.in-game .readable-game-guide .team-power-preview summary { cursor: pointer; min-height: 48px; display: list-item; padding: 12px 8px; box-sizing: border-box; color: #b7f4ff; font-weight: 800; }
body.in-game .readable-game-guide .team-power-preview summary:focus-visible { outline: 3px solid #a5f3ff; outline-offset: 2px; }
body.in-game .readable-game-guide .encounter-help p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
body.in-game .readable-game-guide .solution-plan { margin-top: 16px; }
body.in-game .readable-game-guide .solution-plan h3 { font-size: 26px; line-height: 1.2; color: #ffe584; margin: 0 0 12px; }
body.in-game .readable-game-guide .solution-player { margin: 14px 0; padding: 14px; background: #143753; border: 1px solid #4a7ba6; border-radius: 12px; }
body.in-game .readable-game-guide .solution-player > strong { display: block; color: #b7f4ff; font-size: 24px; margin-bottom: 8px; }
body.in-game .power-stack-count {
  position: absolute; z-index: 8; bottom: -20%; left: -5%; width: 110%;
  padding: 3px 5px; border-radius: 6px; background: #081c38;
  border: 1px solid #70bedc; color: #fff; text-align: center;
  font-size: clamp(10px, 1.2cqw, 17px); font-weight: 900; white-space: nowrap;
}
@media (orientation: landscape) and (max-height: 600px) {
  body.in-game .readable-game-guide .encounter-help,
  body.in-game .readable-game-guide .encounter-help p { font-size: 16px; }
}
body.in-game .readable-guardian-choice span { font-size: 16px; line-height: 1.4; white-space: normal; }
body.in-game .readable-game-guide .power-choice-name { font-size: 16px; }
body.in-game .readable-game-guide .power-choice-value { font-size: 18px; }
body.in-game .screen:has(> .win-screen) {
  display: block !important; height: 100dvh !important; overflow: auto !important;
  box-sizing: border-box; padding: 24px !important;
}
body.in-game .win-screen .button-row { flex-wrap: wrap; }
body.in-game .win-screen .button-row button { min-height: 48px; font-size: 18px; }

/* Scarce Power rules 1.2.0: road, leadership, rest, Camp and united finale. */
.adventure-road {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  flex: 0 0 auto; padding: 8px; border: 1px solid #416b92; border-radius: 12px;
  background: #06152d;
}
.road-mission {
  display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 6px;
  min-height: 34px; padding: 5px 7px; border: 1px solid #365977; border-radius: 8px;
  color: #d9e8f7; font-size: 12px; line-height: 1.15; font-weight: 850;
}
.road-mission b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #163a59; color: #fff; font-size: 14px; }
.road-mission.done { border-color: #37da84; background: #0b332a; color: #bfffd9; }
.road-mission.current { border-color: #ffe36b; box-shadow: 0 0 0 2px #ffe36b33; color: #fff4b8; }
.road-mission.future { opacity: .78; }
.road-mission.big { grid-column: 1 / -1; background: linear-gradient(90deg,#312054,#152b55); border-color: #b888ff; }
.road-mission.big.ready { border-color: #ffe36b; color: #fff2a8; box-shadow: 0 0 16px #c483ff55; }
.universe-turn-line.guardians-united { border-color: #ffe36b !important; border-left-color: #ffe36b !important; background: linear-gradient(110deg,#2f1f54,#0c3154) !important; }

.guardian-resting .table-guardian-slot img { filter: grayscale(.75) brightness(.48) !important; opacity: .75; }
.resting-pin {
  position: absolute; z-index: 70; inset: 50% auto auto 50%; transform: translate(-50%,-50%) rotate(-7deg);
  padding: 4px 7px; border: 2px solid #d9f4ff; border-radius: 7px; background: #102844e8;
  color: #fff; font-size: clamp(6px,.75cqw,11px); font-weight: 1000; letter-spacing: .08em; box-shadow: 0 3px 12px #000b;
}
.readable-guardian-row.resting { opacity: .68; }
.readable-guardian-row.resting .readable-guardian-choice { background: #18212c; border-color: #71808d; }
.board-player-seat.mission-leader .seat-panel-glow { opacity: 1 !important; border-color: #ffe36b !important; box-shadow: 0 0 24px #ffe36b77 !important; }
.leader-globe { animation: leaderGlobe 1.4s ease-in-out infinite alternate; }
@keyframes leaderGlobe { to { transform: translateY(-3px) scale(1.08); box-shadow: 0 0 25px #ffe36b,0 0 8px #fff inset; } }

.united-universe-marker {
  position: absolute; z-index: 62; left: 50%; top: 47%; transform: translate(-50%,-50%);
  width: 9.5%; aspect-ratio: 1; display: grid; place-items: center; align-content: center;
  border: 3px solid #ffe36b; border-radius: 50%; background: radial-gradient(circle at 35% 25%,#2199de,#061b46 70%);
  box-shadow: 0 0 22px #55d9ff,0 0 34px #ffe36b66,inset 0 0 10px #fff8; color: #fff;
  font-size: clamp(18px,3cqw,46px); line-height: .8; text-align: center; pointer-events: none;
  animation: leaderGlobe 1.4s ease-in-out infinite alternate;
}
.united-universe-marker span { display: block; margin-top: 4px; font-size: clamp(4px,.55cqw,9px); line-height: 1.05; font-weight: 1000; letter-spacing: .06em; }

.rest-summary { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #617b92; border-radius: 10px; background: #101f34; font-size: 15px; line-height: 1.35; }
.rest-summary > b { color: #b8e8ff; font-size: 14px; letter-spacing: .04em; }
.rest-summary > span { display: block; }
.rest-summary.all-ready { border-color: #42ca7c; background: #0c3029; color: #c8ffdf; }
.camp-warning { padding: 12px; border: 2px solid #ffcd55; border-radius: 10px; background: #4a3410; color: #fff0bd; font-size: 17px; line-height: 1.4; font-weight: 850; }
body.in-game .readable-game-guide .camp-btn {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 2px solid #70ddb0; border-radius: 12px;
  background: linear-gradient(180deg,#23754f,#12452f); color: #fff; font-size: 17px; line-height: 1.25; font-weight: 1000;
}
body.in-game .readable-game-guide .camp-btn.required { border-color: #ffd45b; box-shadow: 0 0 0 3px #ffd45b33; animation: requiredCamp 1s ease-in-out infinite alternate; }
@keyframes requiredCamp { to { filter: brightness(1.22); transform: translateY(-1px); } }

.extra-player-grid,.unity-ready-grid { display: grid; gap: 9px; }
.extra-player-choice,.unity-ready-btn {
  width: 100%; min-height: 58px; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #65bce8; border-radius: 11px;
  background: #133657; color: #fff; text-align: left;
}
.extra-player-choice strong,.unity-ready-btn { font-size: 17px; font-weight: 950; }
.extra-player-choice span { color: #c5eaff; font-size: 14px; line-height: 1.3; }
.extra-player-choice:disabled { opacity: .42; filter: grayscale(.65); cursor: not-allowed; }
.unity-ready-btn { display: block; text-align: center; }
.unity-ready-btn.ready { border-color: #42dc82; background: #14533b; color: #d4ffe5; }
.route-hint { padding: 10px 12px; border: 1px solid #5f86a8; border-radius: 9px; background: #102b45; }

@media (orientation: landscape) and (max-height: 650px) {
  .adventure-road { grid-template-columns: repeat(5,minmax(0,1fr)); padding: 5px; gap: 4px; }
  .road-mission,.road-mission.big { grid-column: auto; grid-template-columns: 18px minmax(0,1fr); min-height: 28px; padding: 3px 4px; font-size: 9px; }
  .road-mission b { width: 18px; height: 18px; font-size: 10px; }
  .rest-summary { font-size: 13px; }
}

/* 1.2.1 Universe identity and no-drag responsive guide. */
.topbar-gu-emblem {
  width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(78,221,255,.45));
}
.home-gu-lockup { display: block; width: min(570px, 100%); margin: 0 0 2px; filter: drop-shadow(0 14px 26px #0008); }
.home-cosmic-brand {
  position: absolute; z-index: 0; inset: 1% 3%; width: 94%; height: 94%; object-fit: cover;
  border-radius: 50%; opacity: .52; filter: saturate(1.15) drop-shadow(0 0 42px rgba(69,207,255,.28));
  -webkit-mask-image: radial-gradient(circle at center,#000 45%,transparent 74%);
  mask-image: radial-gradient(circle at center,#000 45%,transparent 74%);
}
.home-visual .home-mat { z-index: 1; }
.home-visual .founder-fan { z-index: 2; }
.rotate-gu-logo { display: block; width: min(210px, 55vw); margin: 0 auto 8px; filter: drop-shadow(0 0 22px #4edfff66); }

.universe-brand-badge {
  width: 16% !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
.universe-brand-badge img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px #55ddff88); }
.seat-turn-marker { overflow: hidden; padding: 1px; background: radial-gradient(circle,#143974,#031a3a) !important; }
.seat-turn-marker img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.united-universe-marker { overflow: visible; padding: 2px; background: radial-gradient(circle,#143974,#031a3a) !important; }
.united-universe-marker img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.united-universe-marker span {
  position: absolute; top: 102%; left: 50%; transform: translateX(-50%); min-width: 125%;
  padding: 3px 5px; border-radius: 6px; background: #061a3fe8; border: 1px solid #ffe36b;
}

body.in-game .universe-live-hud.readable-game-guide {
  padding: 14px !important; gap: 9px !important;
}
.guide-identity-row {
  flex: 0 0 auto; min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr);
  align-items: center; gap: 9px; padding-bottom: 7px; border-bottom: 1px solid #335d82;
}
.guide-emblem { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px #55dfff66); }
body.in-game .readable-game-guide .guide-identity-row .universe-hud-head {
  min-width: 0; display: grid; gap: 2px; align-content: center;
}
body.in-game .readable-game-guide .guide-identity-row .universe-hud-head strong {
  font-size: 17px !important; overflow-wrap: anywhere;
}
body.in-game .readable-game-guide .guide-identity-row .universe-hud-head span {
  font-size: 12px; color: #c2d9f2; white-space: normal;
}
.guide-current-player {
  flex: 0 0 auto; display: grid; min-width: 0; gap: 2px; padding: 8px 10px;
  border: 1px solid rgba(var(--turn-rgb),.68); border-left: 5px solid var(--turn-color);
  border-radius: 11px; background: linear-gradient(100deg,rgba(var(--turn-rgb),.18),#07162d 48%);
}
.guide-current-player span { color: #bfd7ee; font-size: 11px; line-height: 1.15; font-weight: 900; letter-spacing: .07em; }
.guide-current-player strong {
  min-width: 0; color: #fff; font-size: clamp(21px,1.75vw,29px); line-height: 1.08;
  white-space: normal; overflow-wrap: anywhere;
}
.guide-current-player.guardians-united { border-color: #ffe36b; border-left-color: #ffe36b; background: linear-gradient(100deg,#2f1f54,#0c3154); }
.guide-pane-tabs {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px;
  padding: 4px; border: 1px solid #365e82; border-radius: 12px; background: #06162f;
}
.guide-pane-tabs button {
  min-width: 0; min-height: 45px; display: grid; grid-template-columns: auto auto; align-content: center;
  justify-content: center; gap: 5px; padding: 5px 3px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #bcd4ec; font-size: 12px; line-height: 1; font-weight: 950;
}
.guide-pane-tabs button span { font-size: 14px; }
.guide-pane-tabs button.active { color: #071737; background: linear-gradient(180deg,#fff07b,#ffc52e); border-color: #fff3ad; box-shadow: 0 4px 12px #0006; }
.guide-pane { display: none !important; flex: 1 1 auto; min-height: 0; min-width: 0; }
.guide-pane.active { display: flex !important; }
.guide-play-pane { flex-direction: column; gap: 8px; overflow: hidden; }
.guide-score-ribbon { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.guide-score-chip {
  min-width: 0; min-height: 42px; display: grid; place-items: center; align-content: center; gap: 1px;
  padding: 5px 2px; border: 1px solid currentColor; border-radius: 8px; background: #081b37;
}
.guide-score-chip small { font-size: 10px; line-height: 1; font-weight: 1000; }
.guide-score-chip b { color: #fff; font-size: 17px; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide-score-chip.think { color: #5ad9ff; }
.guide-score-chip.act { color: #ffda4b; }
.guide-score-chip.care { color: #ff6bac; }
body.in-game .readable-game-guide .guide-play-pane .universe-action {
  flex: 1 1 auto !important; min-height: 0 !important; width: 100%; overflow: hidden !important;
  display: flex !important; flex-direction: column; padding: 0 !important; overscroll-behavior: none;
}
body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel {
  flex: 1 1 auto; width: 100%; max-height: 100%; gap: 10px !important; overflow: hidden !important;
}
body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel h3 { margin: 0 !important; }
body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel p { margin: 0 !important; }
.guide-score-pane { flex-direction: column; gap: 12px; overflow: hidden; }
.guide-score-pane .adventure-road { margin-top: auto; }
.guide-help-pane {
  display: none !important; flex-direction: column; overflow: auto; overscroll-behavior: contain;
  padding: 2px 4px 8px 0; scrollbar-width: thin; scrollbar-color: #5486ae #0b1c39;
}
.guide-help-pane.active { display: flex !important; }
.guide-menu-pane { flex-direction: column; justify-content: center; overflow: hidden; }
.guide-menu-pane .universe-board-tools {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important;
  padding: 0 !important; border: 0 !important;
}
body.in-game .readable-game-guide .guide-menu-pane .universe-board-tools button { min-height: 76px; font-size: 16px !important; }
.guide-menu-pane .guide-tool-icon { font-size: 28px; }
.guide-menu-pane .guide-tool-label { font-size: 15px; }
.hud-help-empty { margin: auto; text-align: center; color: #dcecff; }
.hud-help-empty img { width: min(170px,45%); filter: drop-shadow(0 0 18px #4fdfff66); }
.hud-help-empty h3 { margin: 6px 0; color: #ffe36b; font-size: 26px; }
.hud-help-empty p { margin: 0; font-size: 17px; line-height: 1.5; }
body.in-game .readable-game-guide .guide-help-pane .encounter-help { margin: 0; padding: 0; border: 0; }

/* Five Guardian choices fit without scrolling; the full card remains one tap away. */
body.in-game .readable-game-guide .readable-guardian-picks { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
body.in-game .readable-game-guide .readable-guardian-row { min-width: 0; grid-template-columns: minmax(0,1fr) 40px; gap: 5px; }
body.in-game .readable-game-guide .readable-guardian-choice { min-width: 0; min-height: 60px; padding: 7px 8px; }
body.in-game .readable-game-guide .readable-guardian-choice strong { font-size: 16px; }
body.in-game .readable-game-guide .readable-guardian-choice span { font-size: 11px; line-height: 1.25; white-space: normal; }
body.in-game .readable-game-guide .readable-card-zoom { min-height: 44px; padding: 0; }

/* Six finale choices use two rows instead of a tall card list. */
body.in-game .readable-game-guide .power-tray-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
body.in-game .readable-game-guide .power-choice-play { gap: 4px; padding: 6px 3px; }
body.in-game .readable-game-guide .power-choice-play img { height: clamp(86px,12dvh,118px); }
body.in-game .readable-game-guide .power-choice-name { font-size: 12px; line-height: 1.15; }
body.in-game .readable-game-guide .power-choice-value { font-size: 13px; }

.celebration-gu-emblem { width: 76px; height: 76px; object-fit: contain; margin: 0 auto -12px; filter: drop-shadow(0 0 18px #5ce6ff88); }
.win-screen { isolation: isolate; min-height: calc(100dvh - 48px); }
.win-cosmic-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.win-screen::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(2,9,33,.26),rgba(3,9,31,.82)); }
.win-content { position: relative; z-index: 1; }
.win-gu-logo { display: block; width: min(560px,82vw); max-height: 190px; object-fit: contain; margin: 0 auto -8px; filter: drop-shadow(0 14px 25px #0009); }

/* Tablet: keep the board large and give the paged guide a wider touch column. */
@media (orientation: landscape) and (max-width: 1250px) {
  body.in-game .premium-table-arena.universe-table { --guide-width: clamp(340px,38vw,410px); }
  body.in-game .readable-game-guide .guardian-select-panel > p { display: none !important; }
}

@media (orientation: landscape) and (max-height: 850px) {
  body.in-game .readable-game-guide .guardian-select-panel > p { display: none !important; }
  body.in-game .readable-game-guide .mission-drop-panel > .helper { display: none !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel { gap: 8px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel h3,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .result-banner { font-size: 24px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel p,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .think-prompt,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .board-touch-prompt { font-size: 16px !important; line-height: 1.35 !important; }
  body.in-game .readable-game-guide .readable-guardian-choice { min-height: 54px; padding: 5px 7px; }
  body.in-game .readable-game-guide .rest-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 8px; padding: 7px 9px; font-size: 13px; }
  body.in-game .readable-game-guide .rest-summary > b { grid-column: 1 / -1; }
  body.in-game .readable-game-guide .camp-warning { padding: 8px; font-size: 14px; line-height: 1.3; }
  body.in-game .readable-game-guide .universe-action .reward-celebration { padding: 12px !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration h3 { font-size: 28px !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration .fixed-hand-note { font-size: 14px !important; line-height: 1.3 !important; }
  .celebration-gu-emblem { width: 58px; height: 58px; }
}

/* Short landscape phones/tablets: compact only the visible PLAY panel. */
@media (orientation: landscape) and (max-height: 620px) {
  body.in-game .premium-table-arena.universe-table { --guide-width: clamp(285px,37vw,350px); gap: 6px !important; padding: 6px !important; }
  body.in-game .premium-board.universe-board { width: min(100%,calc((100dvh - 12px) * 1.3333333)) !important; }
  body.in-game .universe-live-hud.readable-game-guide { padding: 6px !important; gap: 5px !important; border-radius: 10px !important; }
  .guide-identity-row { grid-template-columns: 32px minmax(0,1fr); gap: 6px; padding-bottom: 3px; }
  .guide-emblem { width: 32px; height: 32px; }
  body.in-game .readable-game-guide .guide-identity-row .universe-hud-head strong { font-size: 13px !important; }
  body.in-game .readable-game-guide .guide-identity-row .universe-hud-head span { font-size: 9px; }
  .guide-current-player { padding: 4px 7px; border-left-width: 4px; }
  .guide-current-player span { display: none; }
  .guide-current-player strong { font-size: 18px; line-height: 1.05; }
  .guide-pane-tabs { padding: 2px; gap: 3px; border-radius: 8px; }
  .guide-pane-tabs button { min-height: 38px; grid-template-columns: 1fr; gap: 1px; font-size: 9px; border-radius: 6px; }
  .guide-pane-tabs button span { font-size: 12px; }
  .guide-play-pane { gap: 4px; }
  .guide-score-ribbon { gap: 3px; }
  .guide-score-chip { min-height: 31px; padding: 2px 1px; border-radius: 6px; }
  .guide-score-chip small { font-size: 8px; }
  .guide-score-chip b { font-size: 12px; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel { gap: 5px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-turn-kicker { font-size: 10px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel h3,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .result-banner { font-size: 18px !important; line-height: 1.05 !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel p,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .think-prompt,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .board-touch-prompt,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .smart-solve-badge { font-size: 12px !important; line-height: 1.25 !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .think-prompt,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .board-touch-prompt { padding: 5px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .primary-btn,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .secondary-btn,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .compact-go,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .onboard-pass { min-height: 40px !important; padding: 6px 8px !important; font-size: 13px !important; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .helper { display: none !important; }
  body.in-game .readable-game-guide .guardian-select-panel > p { display: none !important; }
  body.in-game .readable-game-guide .readable-guardian-picks { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  body.in-game .readable-game-guide .readable-guardian-row { display: block; }
  body.in-game .readable-game-guide .readable-guardian-choice { min-height: 54px; height: 100%; padding: 4px 3px; text-align: center; }
  body.in-game .readable-game-guide .readable-guardian-choice strong { font-size: 12px; }
  body.in-game .readable-game-guide .readable-guardian-choice span { font-size: 8px; line-height: 1.15; }
  body.in-game .readable-game-guide .readable-card-zoom { display: none; }
  .rest-summary { padding: 5px 7px; gap: 2px; font-size: 10px; line-height: 1.2; }
  .rest-summary > b { font-size: 10px; }
  .camp-warning { padding: 6px; font-size: 11px; line-height: 1.25; }
  body.in-game .readable-game-guide .camp-btn { min-height: 40px; padding: 6px 8px; font-size: 12px; }
  .extra-player-grid,.unity-ready-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .extra-player-choice,.unity-ready-btn { min-height: 40px; padding: 5px 6px; }
  .extra-player-choice strong,.unity-ready-btn { font-size: 12px; }
  .extra-player-choice span { font-size: 9px; }
  body.in-game .readable-game-guide .universe-action .reward-celebration { padding: 6px !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration h3 { font-size: 20px !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration .action-turn-kicker { font-size: 11px !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration .fixed-hand-note { display: none !important; }
  .celebration-gu-emblem { width: 42px; height: 42px; margin-bottom: -10px; }
  .celebration-stars { font-size: 11px; }
  body.in-game .readable-game-guide .universe-action .reward-celebration .reward-reveal { padding: 5px !important; margin: 0 !important; }
  body.in-game .readable-game-guide .universe-action .reward-celebration .reward-reveal > strong { font-size: 13px; }
  .guide-score-pane { gap: 6px; }
  body.in-game .readable-game-guide .guide-score-pane .universe-turn-line { padding: 5px 7px !important; }
  body.in-game .readable-game-guide .guide-score-pane .universe-turn-name { font-size: 18px; }
  body.in-game .readable-game-guide .guide-score-pane .meter { padding: 4px !important; }
  body.in-game .readable-game-guide .guide-score-pane .meter-head { gap: 1px; font-size: 8px !important; }
  body.in-game .readable-game-guide .guide-score-pane .meter-head span:last-child { font-size: 13px; }
  body.in-game .readable-game-guide .guide-score-pane .meter-track { margin-top: 2px !important; height: 4px !important; }
  .guide-menu-pane .universe-board-tools { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 5px !important; }
  body.in-game .readable-game-guide .guide-menu-pane .universe-board-tools button { min-height: 52px; }
  .guide-menu-pane .guide-tool-icon { font-size: 18px; }
  .guide-menu-pane .guide-tool-label { font-size: 10px; }
  .hud-help-empty img { width: 75px; }
  .hud-help-empty h3 { font-size: 18px; margin: 2px 0; }
  .hud-help-empty p { font-size: 12px; line-height: 1.3; }

  /* Card choices temporarily become the whole screen; no tiny stacked card window. */
  body.in-game .readable-game-guide .guide-play-pane .board-power-choice-tray {
    position: fixed !important; z-index: 260 !important; inset: 6px !important; width: auto !important; height: auto !important;
    padding: 10px !important; gap: 6px !important; border: 2px solid var(--tray-color) !important; border-radius: 14px !important;
    background: linear-gradient(155deg,#102b50,#07142f 65%) !important; box-shadow: 0 18px 60px #000c !important;
  }
  body.in-game .readable-game-guide .power-tray-head { font-size: 14px !important; }
  body.in-game .readable-game-guide .power-tray-cards { grid-template-columns: repeat(auto-fit,minmax(92px,1fr)); gap: 5px; }
  body.in-game .readable-game-guide .power-choice-play img { height: min(39dvh,150px); }
  body.in-game .readable-game-guide .power-choice-name { font-size: 11px; }
  body.in-game .readable-game-guide .power-choice-value { font-size: 12px; }
  body.in-game .readable-game-guide .power-choice-zoom { width: 40px !important; height: 40px !important; font-size: 24px !important; }
}

@media (orientation: landscape) and (max-height: 430px) {
  body.in-game .premium-table-arena.universe-table { --guide-width: clamp(270px,37vw,320px); }
  .guide-identity-row { grid-template-columns: 26px minmax(0,1fr); }
  .guide-emblem { width: 26px; height: 26px; }
  .guide-current-player strong { font-size: 15px; }
  .guide-pane-tabs button { min-height: 34px; }
  .guide-score-chip { min-height: 27px; }
  body.in-game .readable-game-guide .guide-play-pane .universe-action .action-panel h3,
  body.in-game .readable-game-guide .guide-play-pane .universe-action .result-banner { font-size: 16px !important; }
}

@media (orientation: portrait) and (max-width: 1100px) {
  .rotate-gu-logo { width: min(180px,48vw); }
  body.in-game .rotate-overlay > div { max-height: calc(100dvh - 32px); padding: 18px; }
}
/* 1.2.2: make the cause of a win visible, with short, purposeful motion. */
.win-recap { margin: 8px 0; padding: 10px; border: 1px solid #71e7bd88; border-radius: 12px; background: #061b31e8; color: #f5ffff; text-align: center; }
.win-recap > strong { font: 800 12px/1.3 system-ui,sans-serif; letter-spacing: .06em; }
.recap-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 7px; }
.recap-stat { display: grid; gap: 3px; padding: 7px 3px; border-radius: 8px; background: #183852; border-bottom: 3px solid #55d3ff; animation: gu-recap-arrive .48s both; animation-delay: var(--recap-delay,0ms); }
.recap-stat.act { border-color: #ffe269; }
.recap-stat.care { border-color: #ff90d3; }
.recap-stat > span { font: 800 10px system-ui,sans-serif; }
.recap-stat b { font: 900 20px system-ui,sans-serif; color: #effff7; }
.recap-stat b small { font-size: 12px; color: #ccdfec; }
.recap-stat > small { font: 500 10px/1.3 system-ui,sans-serif; color: #cbe4f2; }
.win-recap p { margin: 5px 0 0; font: 600 12px/1.3 system-ui,sans-serif; }
.win-screen .win-recap { width: min(520px,100%); margin: 18px auto; }
.power-choice-preview { display: block; color: #f0f7ff; font: 700 12px/1.4 system-ui,sans-serif; padding: 4px 2px; }
.strong-plan-panel { border: 1px solid #69efc4; background: linear-gradient(150deg,#123b42,#0c243d); }
.strong-plan-panel h3 { color: #8cf6ce; }
.gentle-retry { border: 1px solid #91ccff; background: #0c2743; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #fff08a !important; outline-offset: 3px; }
@keyframes gu-recap-arrive { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@media (orientation:landscape) and (max-height:600px) {
  .win-recap { margin: 5px 0; padding: 5px; }
  .win-recap > strong { font-size: 10px; }
  .recap-stats { gap: 3px; margin-top: 4px; }
  .recap-stat { padding: 4px 2px; gap: 2px; }
  .recap-stat b { font-size: 16px; }
  .recap-stat > small { font-size: 9px; }
  .power-choice-preview { font-size: 11px; }
}
body.reduce-motion .recap-stat { animation: none !important; }
@media (prefers-reduced-motion:reduce) { .recap-stat { animation: none !important; } }
/* The recap and reward are separate taps so both stay readable on short screens. */
body.in-game .readable-game-guide .universe-action .victory-recap-panel { display:flex !important; flex-direction:column; gap:4px; min-height:0; padding:6px !important; overflow-y:auto !important; }
body.in-game .readable-game-guide .victory-recap-panel h3 { margin:0 !important; }
body.in-game .readable-game-guide .victory-recap-panel .win-recap { flex:1; margin:0; padding:5px; }
body.in-game .readable-game-guide .victory-recap-panel > button { flex-shrink:0; margin-top:2px; }
@media (orientation:landscape) and (max-height:430px) {
  body.in-game .readable-game-guide .victory-recap-panel .recap-stat { padding:3px 2px; }
  body.in-game .readable-game-guide .victory-recap-panel .win-recap p { font-size:10px !important; margin-top:3px !important; }
  body.in-game .readable-game-guide .victory-recap-panel .recap-stats { margin-top:3px; }
}
.setup-feedback {padding:14px;border:1px solid #ffdf7b;border-radius:10px;background:#302b25;color:#fff5c6;font:700 16px/1.45 system-ui,sans-serif;}

.viewer-draft-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#112d4c;border-bottom:1px solid #547fa7}.viewer-draft-actions span{margin-right:auto;font-size:18px;font-weight:850}.viewer-draft-actions button{min-height:46px;padding:10px 16px;font-size:16px}.viewer-draft-actions button:disabled{opacity:.55}#cardModal:has(.viewer-draft-actions:not(.hidden)) .viewer-card{max-height:calc(100dvh - 240px)}
@media(max-width:650px){.viewer-draft-actions{gap:8px;padding:8px}.viewer-draft-actions span{width:100%;font-size:15px}.viewer-draft-actions button{flex:1;font-size:13px}#cardModal:has(.viewer-draft-actions:not(.hidden)) .viewer-card{max-height:60dvh}}

/* Keep card moves beside the enlarged card on touchscreens and TV. */
.viewer-game-actions{flex:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px;background:#102c49;border-bottom:2px solid #39c9ff;color:#f4faff;max-height:30dvh;overflow:auto}
.viewer-game-status{font:750 14px/1.4 system-ui,sans-serif;flex:1 1 150px}
.viewer-game-buttons{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 250px}
.viewer-game-buttons button{min-height:48px;flex:1 1 160px;white-space:normal;font-size:15px;line-height:1.3;padding:10px 14px;touch-action:manipulation}
.viewer-game-buttons button[aria-pressed=true]{border:2px solid #74ffc7}
@media(max-width:650px){.viewer-game-actions{padding:8px;gap:6px;max-height:34dvh}.viewer-game-status{flex-basis:100%;font-size:13px}.viewer-game-buttons{flex-basis:100%}.viewer-game-buttons button{font-size:14px}}
@media(orientation:landscape) and (max-height:500px){.viewer-game-actions{padding:6px 10px;max-height:32dvh}.viewer-game-status{font-size:12px}.viewer-game-buttons button{font-size:13px;min-height:44px;padding:6px 10px}}

.seat-power-button{font:inherit;color:inherit;background:#08213b;border:1px solid #7ed9ff;border-radius:5px;padding:3px 6px;cursor:pointer;touch-action:manipulation}
