/* GRAUMAENLEIN.TV / GTV Blocks 1.4.3 — Extra breites Desktop-Feld
 * 10 x 20 Spielraster bleibt unverändert; es wird nur visuell gestreckt.
 * Auf kleinen Displays gelten weiterhin die Mobilregeln aus 1.4.0/1.4.1.
 */
@media (min-width:981px) {
  .app { max-width:1740px; }
  .layout {
    max-width:1650px;
    width:100%;
    grid-template-columns:minmax(190px,1fr) minmax(0,1.8fr) minmax(215px,1fr);
    column-gap:clamp(13px,1.5vw,28px);
  }
  .playzone {gap:clamp(8px,.8vw,14px);}
  .side-rail {width:clamp(86px,6vw,106px);flex-shrink:0;}
  .frame {
    width:min(35vw,560px,calc((var(--gtv-blocks-outer-height-v141, 900px) - 225px)*.80));
    aspect-ratio:4 / 5;
  }
  html.gtv-blocks-fullscreen-v140 .frame,
  html.gtv-blocks-parent-fullscreen-v141 .frame {
    width:min(40vw,620px,calc((100dvh - 190px)*.80));
    aspect-ratio:4 / 5;
  }
  html.gtv-blocks-classic-v142 .frame {
    width:min(32vw,380px,calc((var(--gtv-blocks-outer-height-v141,900px) - 225px)*.50));
    aspect-ratio:1 / 2;
  }
  html.gtv-blocks-classic-v142.gtv-blocks-fullscreen-v140 .frame,
  html.gtv-blocks-classic-v142.gtv-blocks-parent-fullscreen-v141 .frame {
    width:min(32vw,420px,calc((100dvh - 190px)*.5));
    aspect-ratio:1 / 2;
  }
  .overlay-content {max-width:330px;}
}
@media (min-width:981px) and (max-width:1250px) {
  .layout {grid-template-columns:minmax(160px,1fr) minmax(0,2.15fr) minmax(175px,1fr);gap:12px;}
  .side-rail {width:88px;}
  .frame {width:min(37vw,500px,calc((var(--gtv-blocks-outer-height-v141,900px) - 225px)*.80));}
  html.gtv-blocks-fullscreen-v140 .frame {width:min(39vw,540px,calc((100dvh - 190px)*.80));}
}
/* One entry point: the button lives UNDER "Jetzt spielen" in the ready overlay.
 * Hide both legacy fullscreen buttons in the normal page to avoid duplicates. */
.header-right #gtv-blocks-fullscreen-v140 {display:none!important;}
#gtv-blocks-fullscreen-intro-v143 {
  display:block; width:100%; margin:10px 0 0; min-height:43px;
  border:1px solid rgba(183,144,255,.60);border-radius:12px;
  background:rgba(125,77,217,.20);color:#e8d9ff;
  font-weight:850;font-size:11px;letter-spacing:.05em;
  cursor:pointer;touch-action:manipulation;
}
#gtv-blocks-fullscreen-intro-v143:hover {background:rgba(131,72,228,.35);}
#gtv-blocks-fullscreen-intro-v143:focus-visible {outline:3px solid #d9adff;outline-offset:3px;}
html.gtv-blocks-fullscreen-v140 #gtv-blocks-fullscreen-intro-v143,
html.gtv-blocks-parent-fullscreen-v141 #gtv-blocks-fullscreen-intro-v143 {display:none!important;}
/* Only in fullscreen: the existing internal control becomes a clear EXIT control.
 * position:fixed also works if the start menu or game is scrolled vertically. */
html.gtv-blocks-fullscreen-v140 .header-right #gtv-blocks-fullscreen-v140 {
  display:inline-flex!important;align-items:center;justify-content:center;
  position:fixed!important;z-index:9999!important;
  top:max(8px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));
  min-height:41px;border-radius:11px;border:1px solid #b28cf7;
  padding:7px 13px;background:#5e28b7;color:#fff;
  box-shadow:0 7px 25px rgba(17,8,36,.35);
}
@media (max-width:620px) {
  #gtv-blocks-fullscreen-intro-v143 {min-height:42px;font-size:10px;margin-top:8px;}
  html.gtv-blocks-fullscreen-v140 .header-right #gtv-blocks-fullscreen-v140 {width:auto!important;min-width:110px!important;min-height:39px;padding:6px 10px!important;white-space:nowrap;}
  html.gtv-blocks-fullscreen-v140 .header-right #gtv-blocks-fullscreen-v140 .gtv-ux-label {display:inline!important;font-size:10px;}
}
