/* TABOOO PLAY v2.0.3: Standalone page template for existing /play/{game}/ pages.
   No global styles outside these pages; all selectors use body.tabooo-game-canvas. */
html.tabooo-game-html {background:#090c14!important;min-height:100%;margin:0!important;overflow-x:hidden!important;color-scheme:dark}
html.tabooo-game-html body.tabooo-game-canvas {background:#090c14!important;color:#f7f7fb!important;margin:0!important;padding:0!important;min-height:100vh!important;min-height:100dvh!important;max-width:none!important;overflow-x:hidden!important;box-shadow:none!important}
body.tabooo-game-canvas,body.tabooo-game-canvas * {box-sizing:border-box}
body.tabooo-game-canvas .tpg-frame {background:radial-gradient(ellipse at 50% 0%,#19101e 0%,#090c14 58%)!important;color:#f5f6ff!important;min-height:100vh;min-height:100dvh;width:100%!important;max-width:none!important;position:relative;isolation:isolate;}
body.tabooo-game-canvas .tpg-topbar {position:relative;z-index:5;background:#0c0b16!important;border-bottom:1px solid #312531;min-height:64px;display:flex;align-items:center}
body.tabooo-game-canvas .tpg-top-inner {display:flex;gap:18px;align-items:center;justify-content:space-between;width:min(1340px,calc(100% - 36px));margin:0 auto}
body.tabooo-game-canvas .tpg-back,body.tabooo-game-canvas .tpg-bottom a {color:#f8ebed!important;text-decoration:none!important;font-size:13px;font-weight:700}
body.tabooo-game-canvas .tpg-back:hover,body.tabooo-game-canvas .tpg-bottom a:hover {color:#ff7185!important}
body.tabooo-game-canvas .tpg-mark {display:inline-flex;align-items:center;gap:9px;text-decoration:none!important;color:#f56577!important;font-weight:850;font-size:16px;letter-spacing:.08em}
body.tabooo-game-canvas .tpg-mark img {display:block;width:33px;height:33px;object-fit:contain}
body.tabooo-game-canvas .tpg-top-title {font-size:12px;color:#aba6b5;max-width:36%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.tabooo-game-canvas .tpg-main {background:transparent!important;width:100%!important;max-width:none!important;min-width:0!important;padding:28px 22px 58px;margin:0!important;min-height:calc(100vh - 65px)}
body.tabooo-game-canvas .tpg-engine {width:min(1380px,100%)!important;max-width:1380px!important;margin:0 auto!important;background:transparent!important;min-width:0!important}
body.tabooo-game-canvas .tpg-engine > * {max-width:100%;}
body.tabooo-game-canvas .tpg-bottom {padding:18px;text-align:center;background:#0b0a13!important;border-top:1px solid #30202c}
body.tabooo-game-canvas a:focus-visible,body.tabooo-game-canvas button:focus-visible {outline:3px solid #ff7a8c!important;outline-offset:3px}
/* Same-origin player: no WP admin bar, website chrome, or artificial side margins. */
body.tabooo-game-canvas.tabooo-game-embedded .tpg-topbar,body.tabooo-game-canvas.tabooo-game-embedded .tpg-bottom,body.tabooo-game-canvas.tabooo-game-embedded #wpadminbar {display:none!important}
body.tabooo-game-canvas.tabooo-game-embedded .tpg-frame {min-height:100vh;min-height:100dvh;background:#090c14!important}
body.tabooo-game-canvas.tabooo-game-embedded .tpg-main {padding:0!important;min-height:100vh;min-height:100dvh}
body.tabooo-game-canvas.tabooo-game-embedded .tpg-engine {width:100%!important;max-width:none!important;background:#090c14!important;margin:0!important}
html.tabooo-game-html:has(body.tabooo-game-embedded){margin-top:0!important}
@media(max-width:720px){body.tabooo-game-canvas .tpg-top-title{display:none}body.tabooo-game-canvas .tpg-main{padding:13px 9px 32px}body.tabooo-game-canvas .tpg-topbar{min-height:56px}body.tabooo-game-canvas .tpg-engine{max-width:100%!important}}
@media(prefers-reduced-motion:reduce){body.tabooo-game-canvas *{scroll-behavior:auto!important}}
/* v2.0.5 – Fullscreen uses reflow, not a transformed fixed-size game. */
body.tabooo-game-canvas .tpg-top-inner{flex-wrap:wrap}
body.tabooo-game-canvas .tpg-fullscreen-btn,
body.tabooo-game-canvas .tpg-exit-fullscreen,
body.tabooo-game-canvas .tpg-focus-toggle{
  appearance:none;-webkit-appearance:none;color:#fdf4f7!important;background:#b32742!important;
  border:1px solid #f07b91!important;border-radius:100px;padding:10px 16px;
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  cursor:pointer;font:700 12px/1.2 system-ui,sans-serif;letter-spacing:0;white-space:nowrap;
}
body.tabooo-game-canvas .tpg-fullscreen-btn:hover,
body.tabooo-game-canvas .tpg-exit-fullscreen:hover,
body.tabooo-game-canvas .tpg-focus-toggle:hover{background:#dd3d5a!important}
body.tabooo-game-canvas .tpg-focus-controls{position:fixed;top:12px;right:16px;z-index:2147483646;display:none;gap:10px;align-items:center}
body.tabooo-game-canvas .tpg-focus-toggle{background:#262030!important;border-color:#8a6779!important}
body.tabooo-game-canvas .tpg-focus-toggle[hidden]{display:none!important}
body.tabooo-game-canvas .tpg-exit-fullscreen{background:#bd354e!important}
body.tabooo-game-canvas.tabooo-game-focus .tpg-main{padding-top:18px;padding-bottom:22px}
html.tabooo-game-html:fullscreen,
html.tabooo-game-html:fullscreen body.tabooo-game-canvas{background:#080a13!important;color-scheme:dark;overflow:auto!important}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-topbar,
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-bottom,
body.tabooo-game-canvas.tpg-native-fullscreen #wpadminbar{display:none!important}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-frame{min-height:100dvh;background:radial-gradient(ellipse at center 5%,#1e1021 0%,#080a13 75%)!important}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-main{
  display:grid!important;place-items:center!important;
  padding:76px clamp(12px,2vw,34px) 25px!important;
  min-height:100dvh!important;height:auto!important;overflow:visible!important;
}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-engine{
  margin:auto!important;width:100%!important;max-width:1650px!important;
  transform:none!important;zoom:1!important;flex-shrink:1!important;
}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-engine > * {max-width:100%!important}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-focus-controls{display:flex}
/* Compact tracker stays interactive: score and lifelines remain visible;
   the long 12-arena progress list is scrollable instead of dictating page height. */
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-compact-tracker:not(.tpg-focus-sidebar){
  max-height:clamp(340px,53dvh,540px)!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;scrollbar-color:#995d6f #1b1420;
  overscroll-behavior-y:contain;
}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-tracker-layout:not(.tpg-focus-layout) > :not(.tpg-compact-tracker){
  align-self:center!important;
}
/* Fullscreen focus is opt-in by the native controls and only activates when
   an arena column and Revolution Tracker are positively identified. */
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-focus-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;justify-items:center!important;gap:0!important;
  width:100%!important;max-width:100%!important;
}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-focus-sidebar{display:none!important}
body.tabooo-game-canvas.tpg-native-fullscreen .tpg-focus-layout > :not(.tpg-focus-sidebar){
  width:100%!important;max-width:1100px!important;min-width:0!important;margin-inline:auto!important;
}
@media(max-width:760px){
 body.tabooo-game-canvas .tpg-top-inner{gap:9px;width:calc(100% - 22px)}
 body.tabooo-game-canvas .tpg-fullscreen-btn{font-size:11px;min-height:37px;padding:8px 10px}
 body.tabooo-game-canvas .tpg-back{font-size:11px}
 body.tabooo-game-canvas .tpg-mark{font-size:12px;gap:4px}
 body.tabooo-game-canvas .tpg-mark img{width:26px;height:26px}
 body.tabooo-game-canvas.tpg-native-fullscreen .tpg-main{padding:70px 12px 15px!important}
 body.tabooo-game-canvas .tpg-focus-controls{top:11px;right:10px;gap:6px}
 body.tabooo-game-canvas .tpg-exit-fullscreen,body.tabooo-game-canvas .tpg-focus-toggle{font-size:11px;min-height:36px;padding:8px 11px}
}
@media(prefers-reduced-motion:reduce){body.tabooo-game-canvas .tpg-engine{transition:none!important}}
