/* TABOOO PLAY v2.0.6 — dedicated Words wide canvas only.
   The Words engine markup/events are not replaced or reparented. */
html.tabooo-game-html:has(body.tpg-words-wide){overflow-x:hidden!important}
body.tabooo-game-canvas.tpg-words-wide .tpg-main{
  width:100%!important;
  max-width:none!important;
  padding:clamp(15px,2.25vw,34px) clamp(14px,3.1vw,56px) 40px!important;
  margin:0 auto!important;
  box-sizing:border-box;
}
body.tabooo-game-canvas.tpg-words-wide .tpg-engine{
  width:min(1560px,100%)!important;
  max-width:1560px!important;
  min-width:0!important;
  margin:0 auto!important;
  transform:none!important;
  zoom:1!important;
}
/* Fallback when the game engine renders its own root wrapper before JS
   initializes, or if internal labels differ in a newer Words version. */
body.tabooo-game-canvas.tpg-words-wide .tpg-engine > :is(div,main,section,article){
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-inline:auto!important;
}
/* Container-only overrides: the 5-column board itself keeps its own grid,
   six attempts, keyboard keys, state and event listeners. */
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-shell{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:auto!important;margin-right:auto!important;
}
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-play{
  width:min(1240px,100%)!important;max-width:1240px!important;
  min-width:0!important;margin-left:auto!important;margin-right:auto!important;
}
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-hud,
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-clue{
  width:min(1140px,100%)!important;max-width:1140px!important;
  min-width:0!important;margin-left:auto!important;margin-right:auto!important;
}
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-keyboard{
  max-width:min(840px,100%)!important;min-width:0!important;
  margin-inline:auto!important;
}
body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-board{
  max-width:100%!important;min-width:0!important;
  margin-inline:auto!important;
}
/* Fullscreen is naturally reflowed, never shrunk with transform/zoom. */
body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-main{
  display:block!important;
  min-height:100dvh!important;
  height:auto!important;
  overflow:visible!important;
  padding:clamp(60px,7dvh,82px) clamp(12px,3vw,54px) 38px!important;
}
body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-engine{
  width:min(1660px,100%)!important;max-width:1660px!important;
  transform:none!important;zoom:1!important;
}
body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-words-wide-play{
  width:min(1440px,100%)!important;max-width:1440px!important;
}
body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-words-wide-hud,
body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-words-wide-clue{
  width:min(1280px,100%)!important;max-width:1280px!important;
}
/* On phones there is no artificial minimum width or forced tile dimensions. */
@media(max-width:720px){
  body.tabooo-game-canvas.tpg-words-wide .tpg-main{padding:12px 9px 26px!important}
  body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-shell,
  body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-play,
  body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-hud,
  body.tabooo-game-canvas.tpg-words-wide .tpg-words-wide-clue{width:100%!important;max-width:100%!important}
  body.tabooo-game-canvas.tpg-words-wide.tpg-native-fullscreen .tpg-main{padding:64px 9px 22px!important}
}
@media(prefers-reduced-motion:reduce){body.tabooo-game-canvas.tpg-words-wide .tpg-engine *{scroll-behavior:auto!important}}
