:root {
  color-scheme: dark;

  font-family:
    var(--ctn-font-interface);

  color:
    var(--ctn-text-primary);

  background:
    var(--ctn-color-stage-deep);
}

* {
  box-sizing:
    border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height:
    100vh;

  min-height:
    100dvh;

  overflow-x:
    hidden;

  background:
    radial-gradient(
      circle at 50% -12%,
      color-mix(
        in srgb,
        var(--ctn-semantic-focus) 15%,
        transparent
      ) 0%,
      transparent 34%
    ),
    radial-gradient(
      circle at 110% 85%,
      color-mix(
        in srgb,
        var(--ctn-chrome-light) 9%,
        transparent
      ) 0%,
      transparent 36%
    ),
    linear-gradient(
      160deg,
      var(--ctn-color-stage-deep) 0%,
      var(--ctn-color-stage-base) 58%,
      var(--ctn-color-elevated) 100%
    );

  color:
    var(--ctn-text-primary);
}

body::before {
  content:
    "";

  position:
    fixed;

  inset: 0;

  pointer-events:
    none;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 255, 255, 0.018) 44%,
      transparent 68%
    );

  opacity:
    0.8;
}

button,
input {
  font: inherit;
}

button {
  min-height:
    var(--ctn-touch-minimum);
}

button,
input {
  -webkit-tap-highlight-color:
    transparent;
}

button:focus-visible,
input:focus-visible {
  outline:
    3px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 78%,
      white
    );

  outline-offset:
    3px;
}

.shell {
  position:
    relative;

  z-index:
    1;

  width:
    min(
      calc(
        100% -
        (
          var(--ctn-layout-gutter-compact)
          * 2
        )
      ),
      540px
    );

  margin:
    0 auto;

  min-height:
    100vh;

  min-height:
    100dvh;

  display:
    grid;

  align-content:
    center;

  gap:
    var(--ctn-space-6);

  padding:
    max(
      var(--ctn-space-10),
      env(safe-area-inset-top)
    )
    0
    max(
      var(--ctn-space-10),
      env(safe-area-inset-bottom)
    );
}

.core-screen {
  transition:
    width
    var(--ctn-motion-normal)
    ease;
}

.core-header {
  display:
    grid;

  gap:
    var(--ctn-space-2);

  padding:
    0
    var(--ctn-space-1);
}

.eyebrow {
  margin: 0;

  color:
    var(--ctn-text-tertiary);

  font-family:
    var(--ctn-font-impact);

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.18em;

  text-transform:
    uppercase;
}

h1 {
  margin: 0;

  max-width:
    11ch;

  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      44px,
      13vw,
      72px
    );

  font-weight:
    600;

  letter-spacing:
    -0.045em;

  line-height:
    0.92;

  text-wrap:
    balance;

  text-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.38);
}

.subtitle {
  max-width:
    38ch;

  margin:
    var(--ctn-space-1)
    0
    0;

  color:
    var(--ctn-text-secondary);

  font-size:
    16px;

  line-height:
    1.55;
}

.card,
.core-surface {
  position:
    relative;

  overflow:
    hidden;

  padding:
    var(--ctn-space-6);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 16%,
      transparent
    );

  border-radius:
    var(--ctn-radius-xl);

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--ctn-color-soft) 88%,
        transparent
      ),
      color-mix(
        in srgb,
        var(--ctn-color-elevated) 92%,
        transparent
      )
    );

  box-shadow:
    0 24px 70px
      rgba(0, 0, 0, 0.42),
    inset 0 1px 0
      rgba(255, 255, 255, 0.055);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);
}

.core-surface::before {
  content:
    "";

  position:
    absolute;

  inset:
    0 0 auto 0;

  height:
    1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(
        in srgb,
        var(--ctn-chrome-specular) 20%,
        transparent
      ),
      transparent
    );
}

label {
  display:
    grid;

  gap:
    var(--ctn-space-2);

  margin-bottom:
    var(--ctn-space-5);

  color:
    var(--ctn-text-secondary);

  font-size:
    13px;

  font-weight:
    700;

  letter-spacing:
    0.03em;
}

input {
  width:
    100%;

  min-height:
    var(--ctn-button-height-lg);

  padding:
    var(--ctn-space-3)
    var(--ctn-space-4);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 14%,
      transparent
    );

  border-radius:
    var(--ctn-radius-md);

  color:
    var(--ctn-text-primary);

  background:
    color-mix(
      in srgb,
      var(--ctn-color-stage-base) 74%,
      black
    );

  outline:
    none;

  transition:
    border-color
      var(--ctn-motion-fast)
      ease,
    background
      var(--ctn-motion-fast)
      ease;
}

input:focus {
  border-color:
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 70%,
      white
    );

  background:
    var(--ctn-color-stage-base);
}

.code-input {
  text-transform:
    uppercase;

  letter-spacing:
    0.24em;

  font-weight:
    900;
}

button {
  width:
    100%;

  padding:
    var(--ctn-space-3)
    var(--ctn-space-5);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 55%,
      white
    );

  border-radius:
    var(--ctn-radius-md);

  color:
    var(--ctn-text-on-accent);

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--ctn-semantic-focus) 86%,
        #4b2382
      ),
      color-mix(
        in srgb,
        var(--ctn-semantic-focus) 64%,
        #291443
      )
    );

  box-shadow:
    0 10px 28px
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 24%,
      transparent
    );

  font-weight:
    850;

  letter-spacing:
    0.01em;

  cursor:
    pointer;

  transition:
    transform
      var(--ctn-motion-fast)
      ease,
    filter
      var(--ctn-motion-fast)
      ease,
    border-color
      var(--ctn-motion-fast)
      ease;
}

button:not(:disabled):active {
  transform:
    translateY(1px)
    scale(0.99);
}

button:disabled {
  cursor:
    wait;

  filter:
    saturate(0.55);

  opacity:
    0.48;
}

.status {
  min-height:
    24px;

  margin:
    var(--ctn-space-4)
    0 0;

  color:
    var(--ctn-text-tertiary);

  font-size:
    13px;

  line-height:
    1.45;
}

.success {
  display:
    grid;

  gap:
    var(--ctn-space-5);
}

.join-code {
  color:
    var(--ctn-text-primary);

  font-family:
    var(--ctn-font-impact);

  font-size:
    clamp(
      32px,
      9vw,
      46px
    );

  font-weight:
    900;

  letter-spacing:
    0.2em;

  line-height:
    1;
}

.meta {
  color:
    var(--ctn-text-tertiary);

  font-size:
    13px;
}

.welcome {
  font-size:
    22px;

  font-weight:
    800;
}

.roster-block {
  display:
    grid;

  gap:
    var(--ctn-space-3);
}

.roster-heading {
  color:
    var(--ctn-text-tertiary);

  font-family:
    var(--ctn-font-impact);

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.12em;

  text-transform:
    uppercase;
}

.roster {
  display:
    grid;

  gap:
    var(--ctn-space-2);

  margin:
    0;

  padding:
    0;

  list-style:
    none;
}

.roster-player {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-3);

  min-height:
    var(--ctn-touch-minimum);

  padding:
    var(--ctn-space-3)
    var(--ctn-space-4);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 10%,
      transparent
    );

  border-radius:
    var(--ctn-radius-md);

  background:
    color-mix(
      in srgb,
      var(--ctn-color-soft) 70%,
      transparent
    );
}

.you-tag {
  display:
    inline-flex;

  margin-left:
    var(--ctn-space-2);

  padding:
    3px 6px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 30%,
      transparent
    );

  border-radius:
    var(--ctn-radius-full);

  color:
    var(--ctn-text-secondary);

  font-size:
    9px;

  letter-spacing:
    0.12em;
}

.presence {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  flex:
    none;

  color:
    var(--ctn-text-tertiary);

  font-size:
    11px;

  font-weight:
    800;
}

.presence::before {
  content:
    "";

  width:
    7px;

  height:
    7px;

  flex:
    none;

  border-radius:
    var(--ctn-radius-full);

  background:
    currentColor;
}

.presence.active {
  color:
    var(--ctn-semantic-success);
}

.presence.disconnected {
  color:
    var(--ctn-text-disabled);
}

.waiting {
  color:
    var(--ctn-text-secondary);

  line-height:
    1.5;
}

.starting {
  display:
    grid;

  gap:
    var(--ctn-space-2);

  padding:
    var(--ctn-space-4);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 20%,
      transparent
    );

  border-radius:
    var(--ctn-radius-lg);

  background:
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 7%,
      var(--ctn-color-soft)
    );
}

.starting strong {
  font-size:
    20px;
}


/* ==========================================================
   OWNER LOBBY
========================================================== */

.owner-lobby {
  display:
    grid;

  gap:
    var(--ctn-space-6);
}

.owner-host {
  display:
    flex;

  align-items:
    baseline;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-4);
}

.owner-host strong {
  font-family:
    var(--ctn-font-display);

  font-size:
    28px;

  font-weight:
    600;

  text-transform:
    capitalize;
}

.owner-join-grid {
  display:
    grid;

  grid-template-columns:
    1fr;

  gap:
    var(--ctn-space-5);
}

.owner-code-block {
  display:
    grid;

  align-content:
    center;

  gap:
    var(--ctn-space-2);
}

.owner-qr {
  display:
    flex;

  justify-content:
    center;
}

.owner-qr img {
  width:
    min(
      100%,
      280px
    );

  padding:
    var(--ctn-space-2);

  border-radius:
    var(--ctn-radius-lg);

  background:
    white;

  box-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.32);
}

.owner-empty {
  padding:
    var(--ctn-space-5);

  color:
    var(--ctn-text-tertiary);
}


/* ==========================================================
   HOSTED TRUTH OR DARE
========================================================== */

.game-screen {
  width:
    100%;

  max-width:
    var(--ctn-layout-max-prompt);

  margin:
    0 auto;

  display:
    grid;

  gap:
    var(--ctn-space-5);
}

.game-topline {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-4);
}

.game-topline .eyebrow {
  margin:
    0;
}

.game-turn {
  flex:
    none;

  color:
    var(--ctn-text-tertiary);

  font-family:
    var(--ctn-font-impact);

  font-size:
    11px;

  font-weight:
    900;

  letter-spacing:
    0.14em;
}

.game-player-focus {
  color:
    var(--ctn-semantic-focus);

  font-family:
    var(--ctn-font-impact);

  font-size:
    13px;

  font-weight:
    900;

  letter-spacing:
    0.16em;

  text-transform:
    uppercase;
}

.waiting-player {
  color:
    var(--ctn-text-secondary);
}

.game-question {
  padding:
    var(--ctn-space-4)
    0;

  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      34px,
      9vw,
      52px
    );

  font-weight:
    600;

  letter-spacing:
    -0.035em;

  line-height:
    0.98;

  text-wrap:
    balance;
}

.game-choice-grid {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    var(--ctn-space-3);
}

.game-action {
  min-height:
    var(--ctn-button-height-lg);
}

.truth-action,
.dare-action {
  min-height:
    96px;

  font-family:
    var(--ctn-font-impact);

  font-size:
    22px;

  letter-spacing:
    0.055em;

  text-transform:
    uppercase;
}

.truth-action {
  border-color:
    color-mix(
      in srgb,
      var(--ctn-game-truth) 72%,
      white
    );

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--ctn-game-truth) 90%,
        #351061
      ),
      color-mix(
        in srgb,
        var(--ctn-game-truth) 58%,
        #150822
      )
    );

  box-shadow:
    0 14px 34px
    color-mix(
      in srgb,
      var(--ctn-game-truth) 25%,
      transparent
    );
}

.dare-action {
  border-color:
    color-mix(
      in srgb,
      var(--ctn-game-dare) 72%,
      white
    );

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--ctn-game-dare) 92%,
        #8a2c0a
      ),
      color-mix(
        in srgb,
        var(--ctn-game-dare) 58%,
        #351006
      )
    );

  box-shadow:
    0 14px 34px
    color-mix(
      in srgb,
      var(--ctn-game-dare) 24%,
      transparent
    );
}

.prompt-card {
  position:
    relative;

  overflow:
    hidden;

  display:
    grid;

  gap:
    var(--ctn-space-5);

  min-height:
    220px;

  align-content:
    center;

  padding:
    var(--ctn-space-8)
    var(--ctn-space-6);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-game-primary) 34%,
      var(--ctn-chrome-highlight)
    );

  border-radius:
    var(--ctn-radius-xl);

  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--ctn-game-primary) 10%,
        var(--ctn-color-soft)
      ),
      color-mix(
        in srgb,
        var(--ctn-color-elevated) 94%,
        black
      )
    );

  box-shadow:
    0 26px 70px
    rgba(0, 0, 0, 0.36);
}

.prompt-card::after {
  content:
    "";

  position:
    absolute;

  inset:
    auto -15% -55% 25%;

  height:
    190px;

  border-radius:
    50%;

  background:
    var(--ctn-game-primary);

  filter:
    blur(90px);

  opacity:
    0.14;

  pointer-events:
    none;
}

.prompt-card.truth {
  --ctn-game-primary:
    var(--ctn-game-truth);
}

.prompt-card.dare {
  --ctn-game-primary:
    var(--ctn-game-dare);
}

.prompt-type {
  position:
    relative;

  z-index:
    1;

  color:
    var(--ctn-game-primary);

  font-family:
    var(--ctn-font-impact);

  font-size:
    12px;

  font-weight:
    900;

  letter-spacing:
    0.18em;
}

.prompt-text {
  position:
    relative;

  z-index:
    1;

  max-width:
    28ch;

  color:
    var(--ctn-text-primary);

  font-size:
    clamp(
      25px,
      7vw,
      38px
    );

  font-weight:
    750;

  letter-spacing:
    -0.025em;

  line-height:
    1.12;

  text-wrap:
    balance;
}

.game-actions {
  display:
    grid;

  gap:
    var(--ctn-space-3);
}

.secondary-action {
  margin-top:
    var(--ctn-space-1);

  color:
    var(--ctn-text-secondary);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 14%,
      transparent
    );

  background:
    color-mix(
      in srgb,
      var(--ctn-color-soft) 76%,
      transparent
    );

  box-shadow:
    none;
}

.game-status {
  margin-top:
    0;
}

.owner-active-player {
  display:
    grid;

  gap:
    var(--ctn-space-2);
}

.owner-active-player strong {
  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      38px,
      7vw,
      58px
    );

  font-weight:
    600;

  letter-spacing:
    -0.035em;
}

.game-owner-meta {
  display:
    flex;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-4);

  color:
    var(--ctn-text-tertiary);

  font-size:
    12px;
}


/* ==========================================================
   MEDIUM LAYOUT
========================================================== */

html[data-ctn-layout="medium"]
.shell {
  width:
    min(
      calc(
        100% -
        (
          var(--ctn-layout-gutter-standard)
          * 2
        )
      ),
      820px
    );

  gap:
    var(--ctn-space-8);
}

html[data-ctn-layout="medium"]
.card {
  padding:
    var(--ctn-space-8);
}

html[data-ctn-layout="medium"]
.owner-shell {
  max-width:
    900px;
}


/* ==========================================================
   EXPANDED / TABLET
========================================================== */

html[data-ctn-layout="expanded"]
.shell {
  width:
    min(
      calc(
        100% -
        (
          var(--ctn-layout-gutter-wide)
          * 2
        )
      ),
      var(--ctn-layout-max-content)
    );

  gap:
    var(--ctn-space-8);
}

html[data-ctn-layout="expanded"]
.owner-shell {
  max-width:
    var(--ctn-layout-max-content);
}

html[data-ctn-layout="expanded"]
.card {
  padding:
    var(--ctn-space-10);
}

html[data-ctn-layout="expanded"]
.owner-join-grid {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(240px, 320px);

  align-items:
    center;

  gap:
    var(--ctn-space-10);
}

html[data-ctn-layout="expanded"]
.owner-game-screen
.prompt-text {
  font-size:
    44px;
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (
  prefers-reduced-motion:
    reduce
) {
  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }
}

/* ==========================================================
   ACTIVE GAME — IMMERSIVE PRESENTATION
========================================================== */

html[data-ctn-game="truth-or-dare"]
body::after {
  content: "";

  position: fixed;

  z-index: 0;

  inset: 0;

  pointer-events: none;

  background-position:
    center;

  background-repeat:
    no-repeat;

  background-size:
    cover;

  opacity:
    0;

  transition:
    opacity
      var(--ctn-motion-slow)
      ease;
}

html[data-ctn-game="truth-or-dare"]
.core-header {
  display:
    none;
}

html[data-ctn-game="truth-or-dare"]
.shell {
  width:
    min(
      calc(
        100% -
        (
          var(--ctn-layout-gutter-compact)
          * 2
        )
      ),
      760px
    );

  align-content:
    center;

  padding-top:
    max(
      var(--ctn-space-6),
      env(safe-area-inset-top)
    );

  padding-bottom:
    max(
      var(--ctn-space-6),
      env(safe-area-inset-bottom)
    );
}

html[data-ctn-game="truth-or-dare"]
.card.core-surface {
  overflow:
    visible;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  box-shadow:
    none;

  backdrop-filter:
    none;

  -webkit-backdrop-filter:
    none;
}

html[data-ctn-game="truth-or-dare"]
.card.core-surface::before {
  display:
    none;
}

html[data-ctn-game="truth-or-dare"]
.game-screen {
  position:
    relative;

  isolation:
    isolate;

  padding:
    var(--ctn-space-5);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 14%,
      transparent
    );

  border-radius:
    var(--ctn-radius-xl);

  background:
    linear-gradient(
      160deg,
      rgba(12, 13, 20, 0.88),
      rgba(5, 6, 10, 0.76)
    );

  box-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.48);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}

html[data-ctn-mechanic="truth"]
body::after {
  background-image:
    linear-gradient(
      180deg,
      rgba(4, 5, 7, 0.28),
      rgba(4, 5, 7, 0.78)
    ),
    url(
      "/assets/games/truth-or-dare/backgrounds/truth-background.webp"
    );

  opacity:
    0.58;
}

html[data-ctn-mechanic="dare"]
body::after {
  background-image:
    linear-gradient(
      180deg,
      rgba(4, 5, 7, 0.24),
      rgba(4, 5, 7, 0.80)
    ),
    url(
      "/assets/games/truth-or-dare/backgrounds/dare-background.webp"
    );

  opacity:
    0.62;
}

html[data-ctn-mechanic="choice"]
body::after {
  background:
    radial-gradient(
      circle at 20% 30%,
      color-mix(
        in srgb,
        var(--ctn-game-truth) 30%,
        transparent
      ),
      transparent 42%
    ),
    radial-gradient(
      circle at 82% 70%,
      color-mix(
        in srgb,
        var(--ctn-game-dare) 28%,
        transparent
      ),
      transparent 42%
    );

  opacity:
    0.7;
}

html[data-ctn-game="truth-or-dare"]
.game-topline {
  padding:
    0
    var(--ctn-space-1);
}

html[data-ctn-game="truth-or-dare"]
.game-player-focus {
  padding:
    var(--ctn-space-2)
    var(--ctn-space-3);

  width:
    fit-content;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 35%,
      transparent
    );

  border-radius:
    var(--ctn-radius-full);

  background:
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 10%,
      transparent
    );
}

html[data-ctn-game="truth-or-dare"]
.game-question {
  padding:
    var(--ctn-space-5)
    var(--ctn-space-1)
    var(--ctn-space-4);

  font-size:
    clamp(
      38px,
      10vw,
      58px
    );
}

html[data-ctn-game="truth-or-dare"]
.prompt-card {
  min-height:
    min(
      40vh,
      340px
    );

  border-width:
    1px;

  box-shadow:
    0 28px 90px
      rgba(0, 0, 0, 0.48),
    inset 0 1px 0
      rgba(255, 255, 255, 0.06);
}

html[data-ctn-game="truth-or-dare"]
.prompt-text {
  font-size:
    clamp(
      27px,
      7vw,
      42px
    );
}

html[data-ctn-layout="medium"][data-ctn-game="truth-or-dare"]
.shell,
html[data-ctn-layout="expanded"][data-ctn-game="truth-or-dare"]
.shell {
  width:
    min(
      calc(
        100% -
        (
          var(--ctn-layout-gutter-wide)
          * 2
        )
      ),
      860px
    );
}

html[data-ctn-layout="expanded"][data-ctn-game="truth-or-dare"]
.game-screen {
  padding:
    var(--ctn-space-8);
}

/* ==========================================================
   CANONICAL GAME SETUP
========================================================== */

.game-setup-panel {
  display:
    grid;

  gap:
    var(--ctn-space-5);

  padding:
    var(--ctn-space-5);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 16%,
      transparent
    );

  border-radius:
    var(--ctn-radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(20, 23, 33, 0.78),
      rgba(8, 9, 13, 0.90)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.04);
}

.game-setup-heading {
  display:
    flex;

  align-items:
    start;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-4);
}

.game-setup-heading h2 {
  margin:
    var(--ctn-space-1)
    0
    0;

  font-size:
    clamp(
      26px,
      5vw,
      36px
    );
}

.setup-badge {
  flex:
    none;

  padding:
    var(--ctn-space-2)
    var(--ctn-space-3);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 36%,
      transparent
    );

  border-radius:
    var(--ctn-radius-full);

  color:
    var(--ctn-text-secondary);

  background:
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 10%,
      transparent
    );

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.08em;
}

.game-setup-grid {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap:
    var(--ctn-space-4);
}

.setup-field {
  display:
    grid;

  gap:
    var(--ctn-space-2);
}

.setup-label {
  color:
    var(--ctn-text-secondary);

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.12em;
}

.setup-field select {
  width:
    100%;

  min-height:
    var(--ctn-touch-min);

  padding:
    var(--ctn-space-3)
    var(--ctn-space-4);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 18%,
      transparent
    );

  border-radius:
    var(--ctn-radius-md);

  color:
    var(--ctn-text-primary);

  background:
    var(--ctn-surface-soft);

  font:
    inherit;
}

.setup-field select:focus-visible {
  outline:
    2px solid
    var(--ctn-semantic-focus);

  outline-offset:
    2px;

  box-shadow:
    0 0 0 5px
    color-mix(
      in srgb,
      var(--ctn-semantic-focus) 18%,
      transparent
    );
}

.setup-help {
  display:
    block;

  color:
    var(--ctn-text-tertiary);

  font-size:
    13px;

  line-height:
    1.45;
}

.setup-toggle {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-4);

  min-height:
    var(--ctn-touch-min);

  padding:
    var(--ctn-space-4);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--ctn-chrome-highlight) 14%,
      transparent
    );

  border-radius:
    var(--ctn-radius-md);

  background:
    rgba(255, 255, 255, 0.025);
}

.setup-toggle > span {
  display:
    grid;

  gap:
    var(--ctn-space-1);
}

.setup-toggle input {
  width:
    24px;

  height:
    24px;

  flex:
    none;

  accent-color:
    var(--ctn-semantic-focus);
}

.setup-locked {
  display:
    grid;

  gap:
    var(--ctn-space-1);

  padding:
    var(--ctn-space-4);

  border:
    1px dashed
    color-mix(
      in srgb,
      var(--ctn-text-tertiary) 22%,
      transparent
    );

  border-radius:
    var(--ctn-radius-md);

  color:
    var(--ctn-text-tertiary);

  background:
    rgba(255, 255, 255, 0.018);

  font-size:
    13px;

  line-height:
    1.45;
}

.setup-locked strong {
  color:
    var(--ctn-text-secondary);
}

html[data-ctn-layout="medium"]
.game-setup-grid,
html[data-ctn-layout="expanded"]
.game-setup-grid {
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
}

/* ==========================================================
   CANONICAL CHOICE STATE
========================================================== */

.game-action.selected-choice {
  transform:
    translateY(-2px);

  border-color:
    rgba(255, 255, 255, 0.36);

  box-shadow:
    0 0 0 2px
      rgba(255, 255, 255, 0.08),
    0 18px 42px
      rgba(0, 0, 0, 0.32);
}

.truth-action.selected-choice {
  box-shadow:
    0 0 0 2px
      color-mix(
        in srgb,
        var(--ctn-game-truth) 30%,
        transparent
      ),
    0 0 36px
      color-mix(
        in srgb,
        var(--ctn-game-truth) 30%,
        transparent
      );
}

.dare-action.selected-choice {
  box-shadow:
    0 0 0 2px
      color-mix(
        in srgb,
        var(--ctn-game-dare) 30%,
        transparent
      ),
    0 0 36px
      color-mix(
        in srgb,
        var(--ctn-game-dare) 30%,
        transparent
      );
}

.surprise-action {
  margin-top:
    var(--ctn-space-2);
}

.reveal-action {
  margin-top:
    var(--ctn-space-2);

  font-weight:
    850;

  letter-spacing:
    0.04em;
}

/* ==========================================================
   PREMIUM GAMEPLAY V2 — PASS 01
   Active player identity / orbit / Rex / choice cards
========================================================== */

.premium-turn-hero {
  position:
    relative;

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items:
    center;

  gap:
    clamp(
      14px,
      4vw,
      28px
    );

  min-height:
    156px;

  padding:
    clamp(
      16px,
      4vw,
      24px
    );

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );

  border-radius:
    28px;

  background:
    linear-gradient(
      135deg,
      rgba(21, 18, 35, 0.92),
      rgba(8, 8, 14, 0.82)
    );

  box-shadow:
    inset 0 1px 0
      rgba(
        255,
        255,
        255,
        0.05
      ),
    0 24px 60px
      rgba(
        0,
        0,
        0,
        0.32
      );
}

.premium-turn-hero::after {
  content:
    "";

  position:
    absolute;

  inset:
    auto
    -15%
    -70%
    20%;

  height:
    170px;

  pointer-events:
    none;

  background:
    radial-gradient(
      ellipse,
      rgba(
        126,
        74,
        255,
        0.20
      ),
      transparent 68%
    );

  filter:
    blur(14px);
}

.premium-player-identity {
  position:
    relative;

  z-index:
    2;

  display:
    flex;

  align-items:
    center;

  gap:
    clamp(
      14px,
      4vw,
      22px
    );
}

.premium-avatar-orbit {
  position:
    relative;

  width:
    clamp(
      82px,
      22vw,
      112px
    );

  aspect-ratio:
    1;

  flex:
    none;

  display:
    grid;

  place-items:
    center;

  border-radius:
    50%;

  filter:
    drop-shadow(
      0
      0
      18px
      rgba(
        145,
        94,
        255,
        0.30
      )
    );
}

.premium-avatar-orbit::before {
  content:
    "";

  position:
    absolute;

  inset:
    -6px;

  border-radius:
    50%;

  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(172, 116, 255, 0.10) 40deg,
      rgba(191, 137, 255, 1) 92deg,
      rgba(255, 192, 78, 0.95) 132deg,
      transparent 190deg,
      transparent 360deg
    );

  -webkit-mask:
    radial-gradient(
      farthest-side,
      transparent
        calc(100% - 5px),
      #000
        calc(100% - 4px)
    );

  mask:
    radial-gradient(
      farthest-side,
      transparent
        calc(100% - 5px),
      #000
        calc(100% - 4px)
    );

  animation:
    ctn-active-player-orbit
    3.4s
    linear
    infinite;
}

.is-waiting-player
.premium-avatar-orbit::before {
  opacity:
    0.34;

  animation-duration:
    7s;
}

.premium-avatar-shell {
  position:
    relative;

  width:
    calc(100% - 10px);

  aspect-ratio:
    1;

  overflow:
    hidden;

  border-radius:
    50%;

  background:
    rgba(
      7,
      7,
      12,
      0.92
    );

  box-shadow:
    inset
      0
      0
      0
      1px
      rgba(
        255,
        255,
        255,
        0.08
      );
}

.premium-avatar-image {
  position:
    absolute;

  inset:
    4%;

  width:
    92%;

  height:
    92%;

  object-fit:
    cover;

  border-radius:
    50%;
}

.premium-avatar-ring-art {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  pointer-events:
    none;
}

.premium-player-copy {
  min-width:
    0;

  display:
    grid;

  gap:
    3px;
}

.premium-turn-kicker {
  color:
    rgba(
      255,
      255,
      255,
      0.58
    );

  font-size:
    11px;

  font-weight:
    850;

  letter-spacing:
    0.15em;
}

.premium-player-name {
  max-width:
    100%;

  overflow:
    hidden;

  color:
    var(
      --ctn-text-primary,
      #fff
    );

  font-size:
    clamp(
      22px,
      6vw,
      34px
    );

  line-height:
    1.05;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.premium-player-context {
  color:
    var(
      --ctn-text-secondary,
      rgba(
        255,
        255,
        255,
        0.68
      )
    );

  font-size:
    13px;
}

.rex-gameplay-presence {
  position:
    relative;

  z-index:
    2;

  align-self:
    end;

  width:
    clamp(
      82px,
      24vw,
      124px
    );

  height:
    140px;

  display:
    flex;

  justify-content:
    center;

  pointer-events:
    none;
}

.rex-gameplay-presence img {
  position:
    absolute;

  bottom:
    -22px;

  width:
    145px;

  max-width:
    none;

  height:
    172px;

  object-fit:
    contain;

  object-position:
    center bottom;

  filter:
    drop-shadow(
      0
      14px
      18px
      rgba(
        0,
        0,
        0,
        0.34
      )
    );

  animation:
    ctn-rex-presence-in
    420ms
    cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    )
    both;
}

.rex-presence-label {
  position:
    absolute;

  right:
    -2px;

  bottom:
    5px;

  display:
    none;
}

.choice-card-symbol {
  display:
    grid;

  place-items:
    center;

  width:
    44px;

  height:
    44px;

  flex:
    none;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.18
    );

  border-radius:
    14px;

  background:
    rgba(
      255,
      255,
      255,
      0.075
    );

  font-size:
    26px;

  font-weight:
    900;
}

.choice-card-copy {
  display:
    grid;

  gap:
    2px;

  text-align:
    left;
}

.choice-card-copy strong {
  font-size:
    clamp(
      18px,
      5vw,
      23px
    );
}

.choice-card-copy small {
  opacity:
    0.62;

  font-size:
    12px;

  font-weight:
    650;
}

.game-choice-grid
.game-action {
  min-height:
    92px;

  display:
    flex;

  align-items:
    center;

  gap:
    13px;

  padding:
    18px;

  text-align:
    left;

  overflow:
    hidden;

  position:
    relative;

  transition:
    transform
      180ms
      ease,
    box-shadow
      180ms
      ease,
    border-color
      180ms
      ease;
}

.game-choice-grid
.game-action::after {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  pointer-events:
    none;

  opacity:
    0;

  background:
    linear-gradient(
      105deg,
      transparent 20%,
      rgba(
        255,
        255,
        255,
        0.16
      ) 48%,
      transparent 72%
    );

  transform:
    translateX(-120%);

  transition:
    opacity 180ms ease;
}

.game-choice-grid
.game-action.selected-choice::after {
  opacity:
    1;

  animation:
    ctn-choice-sweep
    900ms
    ease
    both;
}

.prompt-card {
  animation:
    ctn-prompt-reveal
    440ms
    cubic-bezier(
      0.18,
      0.82,
      0.2,
      1
    )
    both;
}

.premium-owner-player {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;
}

.owner-player-avatar {
  width:
    54px;

  height:
    54px;

  flex:
    none;

  border:
    2px solid
    rgba(
      178,
      122,
      255,
      0.52
    );

  border-radius:
    50%;

  object-fit:
    cover;

  box-shadow:
    0
    0
    20px
    rgba(
      142,
      83,
      255,
      0.22
    );
}

@keyframes ctn-active-player-orbit {
  to {
    transform:
      rotate(360deg);
  }
}

@keyframes ctn-choice-sweep {
  0% {
    transform:
      translateX(-120%);
  }

  100% {
    transform:
      translateX(120%);
  }
}

@keyframes ctn-prompt-reveal {
  0% {
    opacity:
      0;

    transform:
      translateY(12px)
      scale(0.975);

    filter:
      blur(5px);
  }

  100% {
    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

    filter:
      blur(0);
  }
}

@keyframes ctn-rex-presence-in {
  0% {
    opacity:
      0;

    transform:
      translateX(12px)
      translateY(8px)
      scale(0.96);
  }

  100% {
    opacity:
      1;

    transform:
      translateX(0)
      translateY(0)
      scale(1);
  }
}

html[data-ctn-mechanic="truth"]
.premium-avatar-orbit {
  filter:
    drop-shadow(
      0
      0
      22px
      color-mix(
        in srgb,
        var(
          --ctn-game-truth,
          #8d60ff
        ) 46%,
        transparent
      )
    );
}

html[data-ctn-mechanic="dare"]
.premium-avatar-orbit {
  filter:
    drop-shadow(
      0
      0
      22px
      color-mix(
        in srgb,
        var(
          --ctn-game-dare,
          #ff8a3d
        ) 46%,
        transparent
      )
    );
}

html[data-ctn-layout="medium"]
.premium-turn-hero,
html[data-ctn-layout="expanded"]
.premium-turn-hero {
  min-height:
    178px;
}

html[data-ctn-layout="expanded"]
.premium-turn-hero {
  padding:
    26px
    30px;
}

@media (
  max-width: 420px
) {
  .premium-turn-hero {
    grid-template-columns:
      minmax(0, 1fr)
      76px;

    min-height:
      142px;
  }

  .rex-gameplay-presence {
    width:
      72px;

    height:
      118px;
  }

  .rex-gameplay-presence img {
    width:
      122px;

    height:
      145px;

    right:
      -25px;
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  .premium-avatar-orbit::before,
  .game-choice-grid
  .game-action.selected-choice::after,
  .prompt-card,
  .rex-gameplay-presence img {
    animation:
      none;
  }

  .game-choice-grid
  .game-action {
    transition:
      none;
  }
}

/* ==========================================================
   PREMIUM GAMEPLAY PASS 02 — CHOICE REVEAL
========================================================== */

.game-choice-grid
.game-action.choice-dimmed {
  opacity:
    0.58;

  filter:
    saturate(0.72)
    brightness(0.82);

  transform:
    scale(0.985);
}

.game-choice-grid
.game-action.selected-choice {
  transform:
    translateY(-3px)
    scale(1.015);

  border-color:
    rgba(
      255,
      255,
      255,
      0.48
    );
}

.game-choice-grid
.game-action.selected-choice
.choice-card-symbol {
  border-color:
    rgba(
      255,
      255,
      255,
      0.42
    );

  box-shadow:
    0 0 0 1px
      rgba(
        255,
        255,
        255,
        0.08
      ),
    0 0 22px
      rgba(
        255,
        255,
        255,
        0.14
      );
}

.game-choice-grid
.game-action.selected-choice
.choice-card-copy small {
  opacity:
    1;

  font-weight:
    800;

  letter-spacing:
    0.015em;
}

.game-choice-grid
.game-action.choice-dimmed
.choice-card-copy small {
  opacity:
    0.48;
}

.reveal-action {
  position:
    relative;

  overflow:
    hidden;

  border-color:
    rgba(
      255,
      255,
      255,
      0.34
    );

  box-shadow:
    0 18px 42px
      rgba(
        0,
        0,
        0,
        0.30
      ),
    0 0 30px
      color-mix(
        in srgb,
        var(--ctn-accent-primary)
          24%,
        transparent
      );
}

@media (
  prefers-reduced-motion:
    reduce
) {
  .game-choice-grid
  .game-action.selected-choice,
  .game-choice-grid
  .game-action.choice-dimmed {
    transform:
      none;
  }
}


/* =========================================================
   GAMEPLAY CORE FINALIZATION — END GAME
   ========================================================= */

.owner-end-game {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.owner-end-game:hover {
  background: rgba(255, 255, 255, 0.1);
}

.owner-end-game:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* ==========================================================
   TRUTH OR DARE — FINAL VISUAL PASS V3
   Reference Build presentation layer
   ========================================================== */

html[data-ctn-game="truth-or-dare"] {
  --tod-truth: var(--ctn-game-truth, #8f4cff);
  --tod-dare: var(--ctn-game-dare, #ff7139);
  --tod-accent: var(--tod-truth);
}

html[data-ctn-game="truth-or-dare"][data-ctn-mechanic="truth"] {
  --tod-accent: var(--tod-truth);
}

html[data-ctn-game="truth-or-dare"][data-ctn-mechanic="dare"] {
  --tod-accent: var(--tod-dare);
}


/* ==========================================================
   GAME STAGE
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: min(100%, 760px);
  gap: clamp(16px, 4vw, 26px);

  padding:
    clamp(18px, 5vw, 34px);

  border:
    1px solid rgba(255, 255, 255, 0.10);

  border-radius:
    clamp(24px, 6vw, 36px);

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(139, 72, 255, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 24%,
      rgba(255, 105, 48, 0.09),
      transparent 30%
    ),
    linear-gradient(
      160deg,
      rgba(19, 13, 31, 0.98),
      rgba(7, 7, 13, 0.99)
    );

  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-ctn-game="truth-or-dare"]
.game-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45%;
  pointer-events: none;

  background:
    conic-gradient(
      from 130deg,
      transparent 0deg,
      rgba(142, 79, 255, 0.09) 70deg,
      transparent 125deg,
      rgba(255, 103, 45, 0.07) 215deg,
      transparent 290deg
    );

  filter: blur(48px);

  animation:
    tod-v3-ambient 18s linear infinite;
}


/* ==========================================================
   TOP BAR
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-topline {
  position: relative;
  z-index: 3;

  align-items: center;

  padding-bottom: 14px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.075);
}

html[data-ctn-game="truth-or-dare"]
.game-topline .eyebrow {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.68);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.20em;
}

html[data-ctn-game="truth-or-dare"]
.game-turn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;

  padding: 0 11px;

  border:
    1px solid rgba(255, 255, 255, 0.11);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.045);

  color:
    rgba(255, 255, 255, 0.66);

  font-size: 10px;
  font-weight: 850;

  letter-spacing: 0.08em;
}


/* ==========================================================
   ACTIVE PLAYER HERO
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.premium-turn-hero {
  position: relative;
  overflow: hidden;

  min-height: 154px;

  padding:
    clamp(15px, 4vw, 22px);

  border:
    1px solid rgba(255, 255, 255, 0.09);

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.016)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.045);
}

html[data-ctn-game="truth-or-dare"]
.premium-turn-hero::after {
  content: "";

  position: absolute;

  left: 22px;
  right: 22px;
  bottom: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--tod-accent),
      transparent
    );

  opacity: 0.70;
}

html[data-ctn-game="truth-or-dare"]
.premium-turn-hero.is-active-player {
  border-color:
    color-mix(
      in srgb,
      var(--tod-accent) 30%,
      rgba(255, 255, 255, 0.08)
    );

  box-shadow:
    0 16px 55px
      color-mix(
        in srgb,
        var(--tod-accent) 11%,
        transparent
      ),
    inset 0 1px 0
      rgba(255, 255, 255, 0.055);
}

html[data-ctn-game="truth-or-dare"]
.premium-turn-hero.is-waiting-player {
  opacity: 0.80;
}

html[data-ctn-game="truth-or-dare"]
.premium-player-name {
  font-family:
    var(--ctn-font-display, inherit);

  font-size:
    clamp(27px, 7vw, 40px);

  line-height: 1;

  letter-spacing: -0.025em;
}

html[data-ctn-game="truth-or-dare"]
.premium-turn-kicker {
  color: var(--tod-accent);

  font-size: 10px;
  font-weight: 950;

  letter-spacing: 0.18em;
}

html[data-ctn-game="truth-or-dare"]
.premium-player-context {
  margin-top: 7px;

  color:
    rgba(255, 255, 255, 0.55);

  font-size: 13px;
}


/* ==========================================================
   AVATAR MOMENT
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.premium-avatar-orbit {
  width:
    clamp(90px, 23vw, 118px);

  filter:
    drop-shadow(
      0 0 28px
      color-mix(
        in srgb,
        var(--tod-accent) 38%,
        transparent
      )
    );
}

html[data-ctn-game="truth-or-dare"]
.is-active-player
.premium-avatar-orbit {
  animation:
    tod-v3-avatar 3.2s ease-in-out infinite;
}


/* ==========================================================
   REX PRESENCE
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.rex-gameplay-presence {
  width:
    clamp(84px, 22vw, 126px);

  opacity: 0.94;
}

html[data-ctn-game="truth-or-dare"]
.rex-gameplay-presence img {
  filter:
    drop-shadow(
      0 18px 24px
      rgba(0, 0, 0, 0.58)
    );

  transform-origin: 50% 100%;

  animation:
    tod-v3-rex 4.6s ease-in-out infinite;
}

html[data-ctn-game="truth-or-dare"]
.rex-presence-label {
  background:
    rgba(8, 7, 13, 0.74);

  backdrop-filter:
    blur(10px);
}


/* ==========================================================
   TRUTH OR DARE?
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-question {
  margin: 0;

  padding:
    5px 4px 2px;

  color:
    rgba(255, 255, 255, 0.96);

  font-family:
    var(--ctn-font-display, inherit);

  font-size:
    clamp(34px, 9vw, 54px);

  font-weight: 650;

  line-height: 1.01;

  letter-spacing: -0.04em;

  text-align: center;

  text-wrap: balance;
}


/* ==========================================================
   TRUTH / DARE CHOICE CARDS
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-choice-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(12px, 3vw, 18px);
}

html[data-ctn-game="truth-or-dare"]
.game-choice-grid
.game-action {
  position: relative;
  overflow: hidden;

  min-height:
    clamp(180px, 46vw, 232px);

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 14px;

  padding:
    clamp(18px, 4vw, 28px);

  border-width: 1px;
  border-radius: 25px;

  text-align: center;

  transform: translateZ(0);

  transition:
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

html[data-ctn-game="truth-or-dare"]
.game-choice-grid
.game-action::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0.48;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.15),
      transparent 38%
    ),
    radial-gradient(
      circle at 50% 110%,
      currentColor,
      transparent 55%
    );

  mix-blend-mode: screen;
}

html[data-ctn-game="truth-or-dare"]
.truth-action {
  color: #c798ff;

  border-color:
    color-mix(
      in srgb,
      var(--tod-truth) 72%,
      white
    );

  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(174, 104, 255, 0.22),
      transparent 39%
    ),
    linear-gradient(
      165deg,
      rgba(64, 21, 112, 0.88),
      rgba(20, 8, 38, 0.98)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.09),
    0 20px 52px
      rgba(83, 28, 155, 0.19);
}

html[data-ctn-game="truth-or-dare"]
.dare-action {
  color: #ff9768;

  border-color:
    color-mix(
      in srgb,
      var(--tod-dare) 74%,
      white
    );

  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(255, 112, 52, 0.22),
      transparent 39%
    ),
    linear-gradient(
      165deg,
      rgba(106, 36, 14, 0.90),
      rgba(38, 12, 5, 0.98)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.09),
    0 20px 52px
      rgba(171, 58, 20, 0.18);
}


/* ==========================================================
   CHOICE ICONS
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.choice-card-symbol {
  position: relative;
  z-index: 2;

  width:
    clamp(68px, 18vw, 88px);

  height:
    clamp(68px, 18vw, 88px);

  border:
    2px solid currentColor;

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.30);

  color: currentColor;

  font-family:
    var(--ctn-font-impact, inherit);

  font-size:
    clamp(34px, 10vw, 48px);

  font-weight: 950;

  box-shadow:
    inset 0 0 24px
      color-mix(
        in srgb,
        currentColor 18%,
        transparent
      ),
    0 0 30px
      color-mix(
        in srgb,
        currentColor 22%,
        transparent
      );
}

html[data-ctn-game="truth-or-dare"]
.choice-card-copy {
  position: relative;
  z-index: 2;

  display: grid;

  justify-items: center;

  gap: 8px;

  text-align: center;
}

html[data-ctn-game="truth-or-dare"]
.choice-card-copy strong {
  color: currentColor;

  font-family:
    var(--ctn-font-impact, inherit);

  font-size:
    clamp(29px, 8vw, 42px);

  font-weight: 950;

  line-height: 0.95;

  letter-spacing: 0.025em;

  text-transform: uppercase;

  text-shadow:
    0 0 26px
      color-mix(
        in srgb,
        currentColor 30%,
        transparent
      );
}

html[data-ctn-game="truth-or-dare"]
.choice-card-copy small {
  max-width: 15ch;

  min-height: 2.5em;

  color:
    rgba(255, 255, 255, 0.64);

  font-size: 12px;
  font-weight: 650;

  line-height: 1.25;

  letter-spacing: 0;

  text-transform: none;
}


/* ==========================================================
   SELECTED CHOICE
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-choice-grid
.game-action.selected-choice {
  transform:
    translateY(-5px)
    scale(1.025);

  opacity: 1;

  filter:
    saturate(1.15)
    brightness(1.08);
}

html[data-ctn-game="truth-or-dare"]
.truth-action.selected-choice {
  box-shadow:
    0 0 0 2px
      rgba(180, 108, 255, 0.19),
    0 0 45px
      rgba(142, 68, 255, 0.39),
    0 25px 62px
      rgba(0, 0, 0, 0.44);
}

html[data-ctn-game="truth-or-dare"]
.dare-action.selected-choice {
  box-shadow:
    0 0 0 2px
      rgba(255, 122, 65, 0.19),
    0 0 45px
      rgba(255, 94, 35, 0.37),
    0 25px 62px
      rgba(0, 0, 0, 0.44);
}

html[data-ctn-game="truth-or-dare"]
.game-choice-grid
.game-action.choice-dimmed {
  transform:
    scale(0.965);

  opacity: 0.40;

  filter:
    grayscale(0.20)
    saturate(0.50)
    brightness(0.70);
}


/* ==========================================================
   SECONDARY ACTIONS
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.surprise-action,
html[data-ctn-game="truth-or-dare"]
.game-action[data-command="pass"] {
  min-height: 48px;

  border-radius: 15px;

  border-color:
    rgba(255, 255, 255, 0.09);

  background:
    rgba(255, 255, 255, 0.035);

  color:
    rgba(255, 255, 255, 0.64);
}


/* ==========================================================
   REVEAL CTA
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.reveal-action {
  min-height: 62px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--tod-accent) 62%,
      white
    );

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--tod-accent) 86%,
        #16101d
      ),
      color-mix(
        in srgb,
        var(--tod-accent) 50%,
        #120d17
      )
    );

  color: white;

  font-family:
    var(--ctn-font-impact, inherit);

  font-size: 16px;
  font-weight: 950;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  box-shadow:
    0 18px 50px
      color-mix(
        in srgb,
        var(--tod-accent) 27%,
        transparent
      ),
    inset 0 1px 0
      rgba(255, 255, 255, 0.16);

  animation:
    tod-v3-reveal 2.5s ease-in-out infinite;
}


/* ==========================================================
   PROMPT REVEAL
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.prompt-card {
  --prompt-accent:
    var(--tod-truth);

  position: relative;
  overflow: hidden;

  min-height:
    clamp(330px, 72vw, 430px);

  display: grid;

  align-content: center;
  justify-items: center;

  gap:
    clamp(20px, 5vw, 28px);

  padding:
    clamp(34px, 8vw, 58px)
    clamp(22px, 6vw, 48px);

  border:
    1px solid
    color-mix(
      in srgb,
      var(--prompt-accent) 70%,
      white
    );

  border-radius:
    clamp(25px, 6vw, 34px);

  background:
    radial-gradient(
      circle at 50% -10%,
      color-mix(
        in srgb,
        var(--prompt-accent) 21%,
        transparent
      ),
      transparent 43%
    ),
    radial-gradient(
      circle at 50% 120%,
      color-mix(
        in srgb,
        var(--prompt-accent) 14%,
        transparent
      ),
      transparent 48%
    ),
    linear-gradient(
      160deg,
      rgba(20, 13, 34, 0.98),
      rgba(8, 7, 14, 0.99)
    );

  box-shadow:
    0 0 0 1px
      color-mix(
        in srgb,
        var(--prompt-accent) 12%,
        transparent
      ),
    0 0 55px
      color-mix(
        in srgb,
        var(--prompt-accent) 19%,
        transparent
      ),
    0 34px 90px
      rgba(0, 0, 0, 0.52),
    inset 0 1px 0
      rgba(255, 255, 255, 0.07);

  animation:
    tod-v3-prompt-enter
    520ms
    cubic-bezier(0.18, 0.82, 0.2, 1)
    both;
}

html[data-ctn-game="truth-or-dare"]
.prompt-card.dare {
  --prompt-accent:
    var(--tod-dare);
}

html[data-ctn-game="truth-or-dare"]
.prompt-card::before {
  content:
    "";

  position: absolute;

  inset: -35%;

  pointer-events: none;

  background:
    conic-gradient(
      from 20deg,
      transparent,
      color-mix(
        in srgb,
        var(--prompt-accent) 10%,
        transparent
      ),
      transparent 32%,
      transparent 68%,
      color-mix(
        in srgb,
        var(--prompt-accent) 8%,
        transparent
      ),
      transparent
    );

  animation:
    tod-v3-prompt-aura
    13s linear infinite;
}

html[data-ctn-game="truth-or-dare"]
.prompt-card::after {
  content:
    "";

  position: absolute;

  inset: 1px;

  height: auto;

  border-radius: inherit;

  pointer-events: none;

  opacity: 0.48;

  background:
    linear-gradient(
      110deg,
      transparent 20%,
      rgba(255, 255, 255, 0.05) 42%,
      transparent 62%
    );

  transform:
    translateX(-120%);

  animation:
    tod-v3-prompt-sheen
    1100ms 180ms ease-out both;
}


/* ==========================================================
   PROMPT LABEL + TEXT
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.prompt-type {
  position: relative;
  z-index: 2;

  display: inline-flex;

  align-items: center;

  min-height: 36px;

  padding: 0 16px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--prompt-accent) 46%,
      transparent
    );

  border-radius: 999px;

  background:
    color-mix(
      in srgb,
      var(--prompt-accent) 10%,
      rgba(0, 0, 0, 0.40)
    );

  color:
    color-mix(
      in srgb,
      var(--prompt-accent) 78%,
      white
    );

  font-family:
    var(--ctn-font-impact, inherit);

  font-size: 12px;
  font-weight: 950;

  letter-spacing: 0.25em;

  text-transform: uppercase;

  box-shadow:
    0 0 24px
      color-mix(
        in srgb,
        var(--prompt-accent) 17%,
        transparent
      );
}

html[data-ctn-game="truth-or-dare"]
.prompt-text {
  position: relative;
  z-index: 2;

  max-width: 23ch;

  margin: 0 auto;

  color:
    rgba(255, 255, 255, 0.98);

  font-family:
    var(--ctn-font-display, inherit);

  font-size:
    clamp(30px, 7.8vw, 47px);

  font-weight: 650;

  line-height: 1.10;

  letter-spacing: -0.027em;

  text-align: center;

  text-wrap: balance;

  text-shadow:
    0 4px 30px
      rgba(0, 0, 0, 0.66);
}


/* ==========================================================
   OUTCOME BUTTONS
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.game-actions {
  gap: 11px;
}

html[data-ctn-game="truth-or-dare"]
.game-action[data-command="answered"],
html[data-ctn-game="truth-or-dare"]
.game-action[data-command="nailed"] {
  min-height: 70px;

  border-color:
    color-mix(
      in srgb,
      var(--tod-accent) 58%,
      white
    );

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--tod-accent) 76%,
        #151019
      ),
      color-mix(
        in srgb,
        var(--tod-accent) 42%,
        #0d0b11
      )
    );

  font-weight: 900;

  box-shadow:
    0 16px 45px
      color-mix(
        in srgb,
        var(--tod-accent) 19%,
        transparent
      );
}

html[data-ctn-game="truth-or-dare"]
.game-action[data-command="skip"],
html[data-ctn-game="truth-or-dare"]
.game-action[data-command="failed"],
html[data-ctn-game="truth-or-dare"]
.game-action[data-command="not_applicable"] {
  border-color:
    rgba(255, 255, 255, 0.10);

  background:
    rgba(255, 255, 255, 0.035);

  color:
    rgba(255, 255, 255, 0.62);
}


/* ==========================================================
   WAITING STATE
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.waiting {
  min-height: 56px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 14px 18px;

  border:
    1px solid rgba(255, 255, 255, 0.07);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.025);

  color:
    rgba(255, 255, 255, 0.54);

  font-size: 13px;
  font-weight: 650;

  text-align: center;
}


/* ==========================================================
   OWNER VIEW
   ========================================================== */

html[data-ctn-game="truth-or-dare"]
.owner-game-screen {
  width: min(100%, 820px);
}

html[data-ctn-game="truth-or-dare"]
.premium-owner-player {
  padding: 18px;

  border:
    1px solid rgba(255, 255, 255, 0.09);

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.018)
    );
}

html[data-ctn-game="truth-or-dare"]
.owner-player-avatar {
  width: 72px;
  height: 72px;

  border:
    2px solid
    color-mix(
      in srgb,
      var(--tod-accent) 58%,
      white
    );

  border-radius: 50%;

  object-fit: cover;

  box-shadow:
    0 0 28px
      color-mix(
        in srgb,
        var(--tod-accent) 25%,
        transparent
      );
}

html[data-ctn-game="truth-or-dare"]
.game-owner-meta {
  opacity: 0.44;

  font-size: 10px;
}

html[data-ctn-game="truth-or-dare"]
.owner-end-game {
  margin-top: 14px;

  min-height: 46px;

  border-color:
    rgba(255, 255, 255, 0.08);

  background:
    rgba(255, 255, 255, 0.025);

  color:
    rgba(255, 255, 255, 0.48);
}


/* ==========================================================
   TABLET / DESKTOP
   ========================================================== */

html[data-ctn-layout="medium"]
.game-screen,
html[data-ctn-layout="expanded"]
.game-screen {
  width:
    min(100%, 900px);
}

html[data-ctn-layout="medium"]
.premium-turn-hero,
html[data-ctn-layout="expanded"]
.premium-turn-hero {
  min-height: 174px;

  padding: 24px 28px;
}

html[data-ctn-layout="medium"]
.game-choice-grid
.game-action,
html[data-ctn-layout="expanded"]
.game-choice-grid
.game-action {
  min-height: 248px;
}

html[data-ctn-layout="medium"]
.prompt-card,
html[data-ctn-layout="expanded"]
.prompt-card {
  min-height: 440px;
}


/* ==========================================================
   SMALL PHONE
   ========================================================== */

@media (max-width: 410px) {
  html[data-ctn-game="truth-or-dare"]
  .game-screen {
    padding: 16px;

    border-radius: 25px;
  }

  html[data-ctn-game="truth-or-dare"]
  .premium-turn-hero {
    min-height: 132px;

    padding: 13px;
  }

  html[data-ctn-game="truth-or-dare"]
  .premium-avatar-orbit {
    width: 80px;
  }

  html[data-ctn-game="truth-or-dare"]
  .rex-gameplay-presence {
    width: 72px;
  }

  html[data-ctn-game="truth-or-dare"]
  .rex-gameplay-presence img {
    width: 118px;
    height: 150px;
  }

  html[data-ctn-game="truth-or-dare"]
  .game-choice-grid
  .game-action {
    min-height: 168px;

    padding: 15px 10px;
  }

  html[data-ctn-game="truth-or-dare"]
  .choice-card-symbol {
    width: 61px;
    height: 61px;

    font-size: 31px;
  }

  html[data-ctn-game="truth-or-dare"]
  .choice-card-copy strong {
    font-size: 27px;
  }

  html[data-ctn-game="truth-or-dare"]
  .prompt-card {
    min-height: 325px;

    padding: 30px 20px;
  }

  html[data-ctn-game="truth-or-dare"]
  .prompt-text {
    font-size:
      clamp(28px, 8vw, 36px);
  }
}


/* ==========================================================
   VERY SMALL PHONE
   ========================================================== */

@media (max-width: 350px) {
  html[data-ctn-game="truth-or-dare"]
  .game-choice-grid {
    grid-template-columns: 1fr;
  }

  html[data-ctn-game="truth-or-dare"]
  .game-choice-grid
  .game-action {
    min-height: 142px;
  }

  html[data-ctn-game="truth-or-dare"]
  .game-question {
    font-size: 34px;
  }
}


/* ==========================================================
   MOTION
   ========================================================== */

@keyframes tod-v3-ambient {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes tod-v3-avatar {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes tod-v3-rex {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes tod-v3-reveal {
  0%,
  100% {
    box-shadow:
      0 18px 48px
        color-mix(
          in srgb,
          var(--tod-accent) 20%,
          transparent
        );
  }

  50% {
    box-shadow:
      0 18px 60px
        color-mix(
          in srgb,
          var(--tod-accent) 35%,
          transparent
        );
  }
}

@keyframes tod-v3-prompt-enter {
  from {
    opacity: 0;

    transform:
      translateY(18px)
      scale(0.975);

    filter: blur(5px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter: blur(0);
  }
}

@keyframes tod-v3-prompt-aura {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes tod-v3-prompt-sheen {
  from {
    transform:
      translateX(-120%);
  }

  to {
    transform:
      translateX(120%);
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (
  prefers-reduced-motion: reduce
) {
  html[data-ctn-game="truth-or-dare"]
  .game-screen::before,

  html[data-ctn-game="truth-or-dare"]
  .is-active-player
  .premium-avatar-orbit,

  html[data-ctn-game="truth-or-dare"]
  .rex-gameplay-presence img,

  html[data-ctn-game="truth-or-dare"]
  .reveal-action,

  html[data-ctn-game="truth-or-dare"]
  .prompt-card,

  html[data-ctn-game="truth-or-dare"]
  .prompt-card::before,

  html[data-ctn-game="truth-or-dare"]
  .prompt-card::after {
    animation: none !important;
  }

  html[data-ctn-game="truth-or-dare"]
  .game-choice-grid
  .game-action {
    transition: none;
  }
}

/* ==========================================================
   HIGH OR LOW V2 — PREMIUM GAMEPLAY
   ========================================================== */

html[data-ctn-game="high-or-low"] {
  --hol-gold: #f5c95e;
  --hol-gold-soft: #ffe49a;
  --hol-red: #ef4b5e;
  --hol-black: #c9c8d2;
  --hol-green: #2dc985;
  --hol-danger: #ff5a65;
  --hol-surface: rgba(13, 14, 19, 0.88);
  --hol-surface-2: rgba(24, 24, 31, 0.92);
}

html[data-ctn-game="high-or-low"] body {
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(245, 201, 94, 0.14),
      transparent 38%
    ),
    radial-gradient(
      circle at 10% 70%,
      rgba(239, 75, 94, 0.08),
      transparent 35%
    ),
    #08090d;
}

html[data-ctn-game="high-or-low"]
.core-header {
  display: none;
}

html[data-ctn-game="high-or-low"]
.shell {
  width:
    min(
      100%,
      920px
    );
}

html[data-ctn-game="high-or-low"]
.card.core-surface {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ctn-game="high-or-low"]
.card.core-surface::before {
  display: none;
}

html[data-ctn-game="high-or-low"]
.hol-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  padding: 20px;
}

html[data-ctn-game="high-or-low"]
.hol-screen::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.52;

  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(245, 201, 94, 0.08),
      transparent 24%,
      rgba(239, 75, 94, 0.05),
      transparent 52%,
      rgba(245, 201, 94, 0.06),
      transparent
    );

  animation:
    hol-ambient
    28s
    linear
    infinite;
}

html[data-ctn-game="high-or-low"]
.hol-turn-hero {
  border:
    1px solid
    rgba(245, 201, 94, 0.18);

  background:
    linear-gradient(
      135deg,
      rgba(245, 201, 94, 0.09),
      rgba(255, 255, 255, 0.025) 45%,
      rgba(0, 0, 0, 0.12)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.06),
    0 22px 55px
      rgba(0, 0, 0, 0.25);
}

html[data-ctn-game="high-or-low"]
.hol-turn-hero.is-active-player {
  box-shadow:
    0 0 0 1px
      rgba(245, 201, 94, 0.22),
    0 0 42px
      rgba(245, 201, 94, 0.09),
    inset 0 1px 0
      rgba(255, 255, 255, 0.08);
}

html[data-ctn-game="high-or-low"]
.premium-turn-kicker {
  color:
    var(--hol-gold);
}

html[data-ctn-game="high-or-low"]
.premium-avatar-orbit {
  filter:
    drop-shadow(
      0 0 22px
      rgba(245, 201, 94, 0.22)
    );
}

html[data-ctn-game="high-or-low"]
.hol-phase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding:
    14px
    16px;

  border:
    1px solid
    rgba(245, 201, 94, 0.14);

  border-radius:
    16px;

  background:
    linear-gradient(
      90deg,
      rgba(245, 201, 94, 0.09),
      rgba(255, 255, 255, 0.02)
    );
}

html[data-ctn-game="high-or-low"]
.hol-phase-banner > div:first-child {
  display: grid;
  gap: 3px;
}

html[data-ctn-game="high-or-low"]
.hol-phase-banner span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color:
    rgba(255, 255, 255, 0.46);
}

html[data-ctn-game="high-or-low"]
.hol-phase-banner strong {
  font-size:
    clamp(
      18px,
      5vw,
      25px
    );

  letter-spacing:
    0.04em;

  color:
    var(--hol-gold-soft);
}

html[data-ctn-game="high-or-low"]
.hol-streak,
html[data-ctn-game="high-or-low"]
.hol-risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 68px;
  min-height: 42px;

  padding:
    0
    12px;

  border-radius:
    999px;

  font-weight: 950;
  color: #0a0a0c;

  background:
    linear-gradient(
      135deg,
      #ffe88f,
      #dba62b
    );

  box-shadow:
    0 0 24px
      rgba(245, 201, 94, 0.15);
}

html[data-ctn-game="high-or-low"]
.hol-table {
  position: relative;

  display: grid;
  align-items: center;
  justify-content: center;

  min-height:
    clamp(
      290px,
      48vh,
      460px
    );

  padding:
    22px
    14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-radius:
    24px;

  background:
    radial-gradient(
      circle at center,
      rgba(245, 201, 94, 0.07),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(20, 21, 27, 0.92),
      rgba(8, 9, 13, 0.95)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.05),
    0 24px 64px
      rgba(0, 0, 0, 0.30);
}

html[data-ctn-game="high-or-low"]
.hol-table.two-card {
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        180px
      )
    );

  gap:
    clamp(
      18px,
      8vw,
      54px
    );
}

html[data-ctn-game="high-or-low"]
.hol-table.one-card {
  grid-template-columns:
    minmax(
      0,
      190px
    );
}

html[data-ctn-game="high-or-low"]
.hol-card {
  position: relative;

  width: 100%;
  aspect-ratio: 0.69;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius:
    15px;

  box-shadow:
    0 18px 40px
      rgba(0, 0, 0, 0.38);

  transform:
    perspective(800px)
    rotateX(1deg);

  animation:
    hol-card-enter
    420ms
    cubic-bezier(
      0.18,
      0.82,
      0.2,
      1
    )
    both;
}

html[data-ctn-game="high-or-low"]
.hol-card-face {
  color: #16161a;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f1f0e9
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.8);
}

html[data-ctn-game="high-or-low"]
.hol-card-face.red {
  color:
    #d63349;
}

html[data-ctn-game="high-or-low"]
.hol-card-face.black {
  color:
    #16171c;
}

html[data-ctn-game="high-or-low"]
.hol-card-back {
  border:
    1px solid
    rgba(245, 201, 94, 0.48);

  color:
    var(--hol-gold-soft);

  background:
    linear-gradient(
      135deg,
      rgba(245, 201, 94, 0.11),
      rgba(18, 17, 25, 0.98)
    );

  box-shadow:
    0 0 0 5px
      rgba(245, 201, 94, 0.035),
    0 18px 42px
      rgba(0, 0, 0, 0.42),
    inset 0 0 40px
      rgba(245, 201, 94, 0.05);
}

html[data-ctn-game="high-or-low"]
.hol-card-back::before {
  content: "";
  position: absolute;
  inset: 12px;

  border:
    1px solid
    rgba(245, 201, 94, 0.24);

  border-radius:
    10px;

  background:
    repeating-linear-gradient(
      45deg,
      rgba(245, 201, 94, 0.04)
      0 4px,
      transparent
      4px 9px
    );
}

html[data-ctn-game="high-or-low"]
.hol-card-back-mark {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;

  width: 64px;
  height: 64px;

  border:
    1px solid
    rgba(245, 201, 94, 0.42);

  border-radius:
    50%;

  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

html[data-ctn-game="high-or-low"]
.hol-card-empty {
  border:
    1px dashed
    rgba(255, 255, 255, 0.12);

  color:
    rgba(255, 255, 255, 0.25);

  background:
    rgba(255, 255, 255, 0.025);
}

html[data-ctn-game="high-or-low"]
.hol-card-suit {
  font-size:
    clamp(
      62px,
      18vw,
      100px
    );

  line-height: 1;
}

html[data-ctn-game="high-or-low"]
.hol-card-corner {
  position: absolute;
  top: 10px;
  left: 12px;

  display: grid;
  justify-items: center;

  font-size:
    clamp(
      18px,
      5vw,
      25px
    );

  line-height: 1;
}

html[data-ctn-game="high-or-low"]
.hol-card-corner span {
  margin-top: 4px;
}

html[data-ctn-game="high-or-low"]
.hol-card-corner-bottom {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 10px;

  transform:
    rotate(180deg);
}

html[data-ctn-game="high-or-low"]
.hol-card small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;

  text-align: center;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;

  opacity: 0.35;
}

html[data-ctn-game="high-or-low"]
.hol-card-back small {
  z-index: 2;
  color:
    rgba(255, 228, 154, 0.70);
}

html[data-ctn-game="high-or-low"]
.hol-locked-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding:
    12px;

  border-radius:
    14px;

  background:
    rgba(245, 201, 94, 0.07);
}

html[data-ctn-game="high-or-low"]
.hol-locked-call span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color:
    rgba(255, 255, 255, 0.42);
}

html[data-ctn-game="high-or-low"]
.hol-locked-call strong {
  color:
    var(--hol-gold-soft);

  letter-spacing:
    0.07em;
}

html[data-ctn-game="high-or-low"]
.hol-actions {
  display: grid;
  gap: 12px;
}

html[data-ctn-game="high-or-low"]
.hol-prediction-grid {
  display: grid;
  gap: 12px;
}

html[data-ctn-game="high-or-low"]
.hol-prediction-grid.two {
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );
}

html[data-ctn-game="high-or-low"]
.hol-prediction-grid.suits {
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );
}

html[data-ctn-game="high-or-low"]
.hol-action {
  appearance: none;

  touch-action:
    manipulation;

  -webkit-tap-highlight-color:
    transparent;

  -webkit-user-select:
    none;

  user-select:
    none;

  display: grid;
  place-items: center;
  gap: 8px;

  min-height: 76px;
  padding:
    14px
    16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    16px;

  color: white;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.025)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.06);

  font: inherit;
  cursor: pointer;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

html[data-ctn-game="high-or-low"]
.hol-action:not(:disabled):active {
  transform:
    scale(0.985);
}

html[data-ctn-game="high-or-low"]
.hol-action:disabled {
  opacity: 0.48;
  cursor: wait;
}

html[data-ctn-game="high-or-low"]
.hol-prediction {
  min-height:
    clamp(
      96px,
      22vw,
      124px
    );
}

html[data-ctn-game="high-or-low"]
.hol-prediction span {
  font-size:
    clamp(
      27px,
      8vw,
      40px
    );

  line-height: 1;
}

html[data-ctn-game="high-or-low"]
.hol-prediction strong {
  font-size:
    clamp(
      15px,
      4vw,
      19px
    );

  letter-spacing:
    0.08em;
}

html[data-ctn-game="high-or-low"]
.hol-prediction.higher,
html[data-ctn-game="high-or-low"]
.hol-primary {
  border-color:
    rgba(245, 201, 94, 0.46);

  color:
    #111115;

  background:
    linear-gradient(
      135deg,
      #ffe99b,
      #d9a72e
    );

  font-weight: 950;

  box-shadow:
    0 12px 30px
      rgba(245, 201, 94, 0.12);
}

html[data-ctn-game="high-or-low"]
.hol-prediction.lower {
  border-color:
    rgba(255, 255, 255, 0.15);

  background:
    linear-gradient(
      135deg,
      #2a2c34,
      #121319
    );
}

html[data-ctn-game="high-or-low"]
.hol-prediction.red {
  color:
    #ff9cab;

  border-color:
    rgba(239, 75, 94, 0.30);

  background:
    linear-gradient(
      135deg,
      rgba(239, 75, 94, 0.16),
      rgba(25, 15, 20, 0.92)
    );
}

html[data-ctn-game="high-or-low"]
.hol-prediction.black {
  color:
    #e4e4ea;

  border-color:
    rgba(220, 220, 230, 0.16);

  background:
    linear-gradient(
      135deg,
      #292a31,
      #101116
    );
}

html[data-ctn-game="high-or-low"]
.hol-safe {
  border-color:
    rgba(45, 201, 133, 0.32);

  background:
    linear-gradient(
      135deg,
      rgba(45, 201, 133, 0.16),
      rgba(9, 35, 25, 0.86)
    );
}

html[data-ctn-game="high-or-low"]
.hol-double {
  border-color:
    rgba(239, 75, 94, 0.38);

  background:
    linear-gradient(
      135deg,
      rgba(239, 75, 94, 0.20),
      rgba(48, 13, 20, 0.90)
    );
}

html[data-ctn-game="high-or-low"]
.hol-cash {
  border-color:
    rgba(45, 201, 133, 0.34);

  background:
    linear-gradient(
      135deg,
      rgba(45, 201, 133, 0.18),
      rgba(9, 34, 25, 0.94)
    );
}

html[data-ctn-game="high-or-low"]
.hol-action small {
  opacity: 0.58;
}

html[data-ctn-game="high-or-low"]
.hol-outcome {
  display: grid;
  justify-items: center;
  gap: 5px;

  padding:
    16px;

  border-radius:
    16px;

  text-align: center;
}

html[data-ctn-game="high-or-low"]
.hol-outcome.success {
  border:
    1px solid
    rgba(45, 201, 133, 0.25);

  background:
    rgba(45, 201, 133, 0.08);
}

html[data-ctn-game="high-or-low"]
.hol-outcome.failure {
  border:
    1px solid
    rgba(255, 90, 101, 0.25);

  background:
    rgba(255, 90, 101, 0.08);
}

html[data-ctn-game="high-or-low"]
.hol-outcome > span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

html[data-ctn-game="high-or-low"]
.hol-outcome > strong {
  font-size:
    clamp(
      22px,
      6vw,
      32px
    );

  letter-spacing:
    0.04em;
}

html[data-ctn-game="high-or-low"]
.hol-outcome.success > strong {
  color:
    #86edba;
}

html[data-ctn-game="high-or-low"]
.hol-outcome.failure > strong {
  color:
    #ff9199;
}

html[data-ctn-game="high-or-low"]
.hol-outcome small {
  font-size: 14px;
  font-weight: 800;
}

html[data-ctn-game="high-or-low"]
.hol-bus-progress {
  display: grid;
  grid-template-columns:
    auto
    1fr
    auto;
  align-items: center;
  gap: 14px;

  padding:
    14px;

  border:
    1px solid
    rgba(239, 75, 94, 0.18);

  border-radius:
    16px;

  background:
    linear-gradient(
      90deg,
      rgba(239, 75, 94, 0.08),
      rgba(245, 201, 94, 0.04)
    );
}

html[data-ctn-game="high-or-low"]
.hol-bus-progress > div:first-child {
  display: grid;
  gap: 3px;
}

html[data-ctn-game="high-or-low"]
.hol-bus-stops {
  display: flex;
  justify-content: center;
  gap: 7px;
}

html[data-ctn-game="high-or-low"]
.hol-bus-stop {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  border:
    1px solid
    rgba(255, 255, 255, 0.11);

  border-radius:
    50%;

  font-size: 12px;
  font-weight: 950;

  color:
    rgba(255, 255, 255, 0.42);

  background:
    rgba(255, 255, 255, 0.03);
}

html[data-ctn-game="high-or-low"]
.hol-bus-stop.active {
  color:
    #111115;

  border-color:
    var(--hol-gold);

  background:
    var(--hol-gold);

  box-shadow:
    0 0 18px
      rgba(245, 201, 94, 0.22);
}

html[data-ctn-game="high-or-low"]
.hol-bus-stop.success {
  color: #0b1711;
  background:
    var(--hol-green);
}

html[data-ctn-game="high-or-low"]
.hol-bus-stop.failure {
  color: white;
  background:
    var(--hol-danger);
}

html[data-ctn-game="high-or-low"]
.hol-damage {
  font-size: 11px;
  font-weight: 900;
  color:
    #ff9199;
}

html[data-ctn-game="high-or-low"]
.hol-reward-panel {
  display: grid;
  gap: 12px;

  padding:
    18px;

  border:
    1px solid
    rgba(245, 201, 94, 0.28);

  border-radius:
    18px;

  background:
    rgba(245, 201, 94, 0.07);
}

html[data-ctn-game="high-or-low"]
.hol-reward-panel > strong {
  font-size:
    clamp(
      28px,
      8vw,
      42px
    );

  color:
    var(--hol-gold-soft);
}

html[data-ctn-game="high-or-low"]
.hol-target-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 10px;
}

html[data-ctn-game="high-or-low"]
.hol-target {
  min-height: 64px;
}

html[data-ctn-game="high-or-low"]
.hol-waiting {
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 12px;

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-radius:
    14px;

  color:
    rgba(255, 255, 255, 0.55);

  background:
    rgba(255, 255, 255, 0.025);
}

html[data-ctn-game="high-or-low"]
.hol-waiting strong {
  color:
    rgba(255, 255, 255, 0.88);
}

html[data-ctn-game="high-or-low"]
.hol-meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;

  padding-top: 4px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;

  color:
    rgba(255, 255, 255, 0.30);
}

html[data-ctn-game="high-or-low"]
.hol-final-result {
  display: grid;
  justify-items: center;
  gap: 8px;

  padding:
    24px
    18px;

  border:
    1px solid
    rgba(245, 201, 94, 0.32);

  border-radius:
    20px;

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(245, 201, 94, 0.16),
      rgba(20, 18, 15, 0.90)
    );
}

html[data-ctn-game="high-or-low"]
.hol-final-result > strong {
  font-size:
    clamp(
      28px,
      8vw,
      46px
    );

  color:
    var(--hol-gold-soft);
}

html[data-ctn-game="high-or-low"]
.owner-hol-table {
  min-height: 340px;
}

.hol-setup-panel {
  border-color:
    rgba(245, 201, 94, 0.16);
}

.hol-setup-summary {
  border-color:
    rgba(245, 201, 94, 0.12);

  background:
    rgba(245, 201, 94, 0.04);
}

.owner-secondary-game-action {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;

  border:
    1px solid
    rgba(245, 201, 94, 0.30);

  border-radius:
    15px;

  color: #111115;

  background:
    linear-gradient(
      135deg,
      #ffe99b,
      #d9a72e
    );

  font: inherit;
  font-weight: 950;
  letter-spacing: 0.04em;

  cursor: pointer;
}

.owner-secondary-game-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 460px) {
  html[data-ctn-game="high-or-low"]
  .hol-screen {
    padding:
      14px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-table {
    min-height:
      275px;

    padding:
      18px
      10px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-table.two-card {
    gap:
      14px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-bus-progress {
    grid-template-columns:
      1fr;
  }

  html[data-ctn-game="high-or-low"]
  .hol-bus-progress > div:first-child,
  html[data-ctn-game="high-or-low"]
  .hol-damage {
    text-align: center;
  }

  html[data-ctn-game="high-or-low"]
  .hol-prediction-grid.suits {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}

@media (max-width: 340px) {
  html[data-ctn-game="high-or-low"]
  .hol-prediction-grid.two,
  html[data-ctn-game="high-or-low"]
  .hol-target-grid {
    grid-template-columns:
      1fr;
  }
}

@keyframes hol-card-enter {
  from {
    opacity: 0;
    transform:
      perspective(800px)
      translateY(12px)
      rotateX(8deg)
      scale(0.97);
  }

  to {
    opacity: 1;
    transform:
      perspective(800px)
      translateY(0)
      rotateX(1deg)
      scale(1);
  }
}

@keyframes hol-ambient {
  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }
}

@media (
  prefers-reduced-motion:
    reduce
) {
  html[data-ctn-game="high-or-low"]
  .hol-screen::before,
  html[data-ctn-game="high-or-low"]
  .hol-card {
    animation:
      none !important;
  }

  html[data-ctn-game="high-or-low"]
  .hol-action {
    transition:
      none;
  }
}
/* H4C-02 TABLET TOUCH */
@media (any-pointer: coarse) {
  html[data-ctn-game="high-or-low"]
  .hol-action {
    touch-action:
      manipulation;

    -webkit-tap-highlight-color:
      transparent;
  }

  html[data-ctn-game="high-or-low"]
  .hol-action:not(:disabled):active {
    transform:
      none;
  }
}

/* ==========================================================
   H7A OWNER PRODUCT SHELL
   Category -> Catalogue -> Game Setup
========================================================== */

.owner-product-shell {
  display:
    grid;

  gap:
    var(--ctn-space-5);
}

.owner-product-heading {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    var(--ctn-space-5);
}

.owner-product-heading > div {
  display:
    grid;

  gap:
    7px;
}

.owner-product-heading h2 {
  margin:
    0;

  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      31px,
      7vw,
      46px
    );

  font-weight:
    600;

  line-height:
    1;

  letter-spacing:
    -0.035em;
}

.owner-product-heading p:not(.eyebrow) {
  max-width:
    48ch;

  margin:
    2px
    0
    0;

  color:
    var(--ctn-text-secondary);

  font-size:
    14px;

  line-height:
    1.5;
}

.owner-category-tabs {
  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap:
    8px;

  padding:
    6px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.07
    );

  border-radius:
    18px;

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
}

.owner-category-tab {
  width:
    auto;

  min-width:
    0;

  min-height:
    48px;

  padding:
    9px
    10px;

  border:
    1px solid
    transparent;

  border-radius:
    13px;

  color:
    rgba(
      255,
      255,
      255,
      0.48
    );

  background:
    transparent;

  box-shadow:
    none;
}

.owner-category-tab strong {
  overflow:
    hidden;

  font-size:
    12px;

  font-weight:
    900;

  letter-spacing:
    0.03em;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.owner-category-tab.is-active {
  border-color:
    rgba(
      196,
      151,
      255,
      0.30
    );

  color:
    #f5ebff;

  background:
    linear-gradient(
      135deg,
      rgba(
        151,
        88,
        255,
        0.19
      ),
      rgba(
        255,
        255,
        255,
        0.04
      )
    );

  box-shadow:
    inset 0 1px 0
      rgba(
        255,
        255,
        255,
        0.06
      );
}

.owner-game-catalogue {
  display:
    grid;

  grid-template-columns:
    1fr;

  gap:
    12px;
}

.owner-game-card {
  position:
    relative;

  width:
    100%;

  min-height:
    160px;

  display:
    grid;

  grid-template-columns:
    92px
    minmax(
      0,
      1fr
    )
    auto;

  align-items:
    center;

  gap:
    17px;

  padding:
    17px;

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.09
    );

  border-radius:
    22px;

  color:
    inherit;

  background:
    radial-gradient(
      circle at 0% 50%,
      rgba(
        154,
        77,
        255,
        0.12
      ),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(
        24,
        21,
        34,
        0.94
      ),
      rgba(
        10,
        10,
        16,
        0.94
      )
    );

  box-shadow:
    inset 0 1px 0
      rgba(
        255,
        255,
        255,
        0.045
      ),
    0 18px 45px
      rgba(
        0,
        0,
        0,
        0.22
      );

  text-align:
    left;
}

.owner-game-card.is-available {
  cursor:
    pointer;
}

.owner-game-card.is-available:hover {
  border-color:
    rgba(
      195,
      150,
      255,
      0.34
    );

  transform:
    translateY(-1px);
}

.owner-game-card.is-coming-soon {
  cursor:
    default;

  filter:
    none;

  opacity:
    0.48;
}

.owner-game-art {
  position:
    relative;

  width:
    92px;

  aspect-ratio:
    1;

  display:
    grid;

  place-items:
    center;

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );

  border-radius:
    19px;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(
        164,
        104,
        255,
        0.24
      ),
      rgba(
        16,
        13,
        24,
        0.96
      )
    );

  box-shadow:
    inset 0 1px 0
      rgba(
        255,
        255,
        255,
        0.06
      );
}

.owner-game-art img {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;
}

.owner-game-monogram {
  position:
    relative;

  z-index:
    2;

  color:
    #e4c8ff;

  font-family:
    var(--ctn-font-impact);

  font-size:
    25px;

  font-weight:
    950;

  letter-spacing:
    -0.02em;
}

.owner-game-copy {
  min-width:
    0;

  display:
    grid;

  gap:
    5px;
}

.owner-game-kicker {
  color:
    rgba(
      255,
      255,
      255,
      0.38
    );

  font-size:
    9px;

  font-weight:
    950;

  letter-spacing:
    0.15em;
}

.owner-game-title {
  color:
    var(--ctn-text-primary);

  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      24px,
      5vw,
      32px
    );

  font-weight:
    600;

  letter-spacing:
    -0.025em;
}

.owner-game-description {
  max-width:
    42ch;

  color:
    rgba(
      255,
      255,
      255,
      0.62
    );

  font-size:
    13px;

  line-height:
    1.4;
}

.owner-game-meta {
  color:
    rgba(
      255,
      255,
      255,
      0.31
    );

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.04em;
}

.owner-game-status {
  align-self:
    flex-start;

  padding:
    7px
    9px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );

  border-radius:
    999px;

  color:
    rgba(
      255,
      255,
      255,
      0.42
    );

  font-size:
    9px;

  font-weight:
    950;

  letter-spacing:
    0.10em;
}

.owner-game-card.is-available
.owner-game-status {
  border-color:
    rgba(
      245,
      201,
      94,
      0.29
    );

  color:
    #f5d775;

  background:
    rgba(
      245,
      201,
      94,
      0.07
    );
}

.owner-catalogue-empty {
  min-height:
    210px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    22px;

  padding:
    30px;

  border:
    1px dashed
    rgba(
      215,
      157,
      255,
      0.20
    );

  border-radius:
    23px;

  background:
    radial-gradient(
      circle at center,
      rgba(
        190,
        91,
        255,
        0.09
      ),
      transparent 58%
    );

  text-align:
    left;
}

.owner-catalogue-empty
.owner-game-monogram {
  display:
    grid;

  place-items:
    center;

  width:
    72px;

  height:
    72px;

  flex:
    none;

  border:
    1px solid
    rgba(
      218,
      154,
      255,
      0.25
    );

  border-radius:
    50%;

  font-size:
    28px;
}

.owner-catalogue-empty h3 {
  margin:
    4px
    0;

  font-family:
    var(--ctn-font-display);

  font-size:
    30px;

  font-weight:
    600;
}

.owner-catalogue-empty p:not(.eyebrow) {
  margin:
    0;

  color:
    var(--ctn-text-secondary);

  font-size:
    13px;
}

.owner-game-setup {
  animation:
    owner-game-setup-enter
    260ms
    cubic-bezier(
      0.16,
      1,
      0.3,
      1
    );
}

.owner-game-back {
  width:
    fit-content;

  min-height:
    38px;

  margin-bottom:
    3px;

  padding:
    7px
    12px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.09
    );

  border-radius:
    999px;

  color:
    rgba(
      255,
      255,
      255,
      0.60
    );

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );

  box-shadow:
    none;

  font-size:
    11px;

  font-weight:
    850;
}

[hidden] {
  display:
    none !important;
}

@keyframes owner-game-setup-enter {
  from {
    opacity:
      0;

    transform:
      translateY(8px)
      scale(0.99);
  }

  to {
    opacity:
      1;

    transform:
      none;
  }
}

html[data-ctn-layout="expanded"]
.owner-game-catalogue {
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );
}

html[data-ctn-layout="expanded"]
.owner-game-card {
  grid-template-columns:
    88px
    minmax(
      0,
      1fr
    );

  min-height:
    190px;
}

html[data-ctn-layout="expanded"]
.owner-game-status {
  position:
    absolute;

  top:
    15px;

  right:
    15px;
}

@media (
  max-width:
    480px
) {
  .owner-product-heading {
    display:
      grid;
  }

  .owner-product-heading
  .setup-badge {
    width:
      fit-content;
  }

  .owner-game-card {
    grid-template-columns:
      72px
      minmax(
        0,
        1fr
      );

    min-height:
      142px;

    gap:
      13px;

    padding:
      13px;
  }

  .owner-game-art {
    width:
      72px;

    border-radius:
      16px;
  }

  .owner-game-status {
    display:
      none;
  }

  .owner-category-tab strong {
    font-size:
      10px;
  }

  .owner-catalogue-empty {
    align-items:
      flex-start;

    padding:
      22px;
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  .owner-game-setup {
    animation:
      none;
  }

  .owner-game-card {
    transition:
      none;
  }
}
/* ==========================================================
   H7B CANONICAL CATALOGUE ART
========================================================== */

.owner-category-visual {
  position:
    relative;

  min-height:
    clamp(
      130px,
      26vw,
      190px
    );

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.09
    );

  border-radius:
    24px;

  background:
    #090a0f;

  box-shadow:
    inset 0 1px 0
      rgba(
        255,
        255,
        255,
        0.05
      ),
    0 22px 58px
      rgba(
        0,
        0,
        0,
        0.28
      );
}

.owner-category-visual img {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  object-position:
    center;

  transform:
    scale(1.025);
}

.owner-category-visual-shade {
  position:
    absolute;

  inset:
    0;

  background:
    linear-gradient(
      90deg,
      rgba(
        4,
        5,
        8,
        0.86
      ),
      rgba(
        4,
        5,
        8,
        0.28
      ) 55%,
      rgba(
        4,
        5,
        8,
        0.10
      )
    );
}

.owner-category-visual > span {
  position:
    absolute;

  z-index:
    2;

  left:
    22px;

  bottom:
    19px;

  color:
    white;

  font-family:
    var(--ctn-font-display);

  font-size:
    clamp(
      28px,
      6vw,
      42px
    );

  font-weight:
    600;

  letter-spacing:
    -0.03em;

  text-shadow:
    0 6px 24px
      rgba(
        0,
        0,
        0,
        0.72
      );
}

.owner-game-art {
  isolation:
    isolate;
}

.owner-game-art::after {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  z-index:
    2;

  pointer-events:
    none;

  border-radius:
    inherit;

  box-shadow:
    inset 0 0 0 1px
      rgba(
        255,
        255,
        255,
        0.05
      );
}

.owner-game-art img {
  position:
    relative;

  z-index:
    1;

  transform:
    scale(1.035);

  transition:
    transform
      var(--ctn-motion-normal)
      ease;
}

.owner-game-card.is-available:hover
.owner-game-art img {
  transform:
    scale(1.08);
}

@media (
  max-width:
    480px
) {
  .owner-category-visual {
    min-height:
      120px;
  }

  .owner-category-visual > span {
    left:
      16px;

    bottom:
      14px;
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  .owner-game-art img {
    transition:
      none;
  }
}
/* ==========================================================
   H7C-02B2 OWNER HOST CHOICE
========================================================== */

.owner-host-choice-screen {
  gap: 28px;
}

.owner-host-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.owner-host-choice-card {
  width: 100%;
  min-height: 150px;

  display: grid;
  grid-template-columns:
    94px
    minmax(0, 1fr)
    auto;

  align-items: center;
  gap: 18px;

  padding: 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius: 22px;

  color: inherit;
  text-align: left;

  background:
    linear-gradient(
      145deg,
      rgba(27, 23, 39, 0.96),
      rgba(10, 10, 16, 0.96)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.045),
    0 20px 52px
      rgba(0, 0, 0, 0.24);

  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.owner-host-choice-card:hover {
  transform: translateY(-2px);

  border-color:
    rgba(199, 155, 255, 0.38);
}

.owner-host-choice-art {
  width: 94px;
  height: 94px;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at center,
      rgba(153, 90, 255, 0.20),
      rgba(8, 8, 14, 0.96)
    );
}

.owner-host-choice-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-host-choice-copy {
  min-width: 0;

  display: grid;
  gap: 4px;
}

.owner-host-choice-copy strong {
  font-family:
    var(--ctn-font-display);

  font-size: 29px;
  line-height: 1;

  letter-spacing:
    -0.025em;
}

.owner-host-choice-copy b {
  color: #e2c7ff;

  font-size: 11px;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}

.owner-host-choice-copy > span:last-child {
  max-width: 40ch;

  margin-top: 3px;

  color:
    var(--ctn-text-secondary);

  font-size: 12px;
  line-height: 1.4;
}

.owner-host-choice-action {
  padding: 7px 9px;

  border:
    1px solid
    rgba(245, 201, 94, 0.25);

  border-radius: 999px;

  color: #f1d271;

  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

@media (max-width: 540px) {
  .owner-host-choice-card {
    min-height: 128px;

    grid-template-columns:
      74px
      minmax(0, 1fr);

    gap: 13px;
  }

  .owner-host-choice-art {
    width: 74px;
    height: 74px;
  }

  .owner-host-choice-action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-host-choice-card {
    transition: none;
  }
}
/* ==========================================================
   H7D-03 CORE PRODUCT RUNTIME PARITY
========================================================== */

/*
 * The Owner may safely recover a previous Night, but the user
 * always retains an explicit escape hatch to start fresh.
 */
.owner-new-night-action {
  position:
    fixed;

  z-index:
    10000;

  top:
    max(
      12px,
      env(safe-area-inset-top)
    );

  right:
    max(
      12px,
      env(safe-area-inset-right)
    );

  min-height:
    42px;

  padding:
    0 16px;

  border:
    1px solid
    rgba(245, 201, 94, 0.30);

  border-radius:
    999px;

  background:
    rgba(8, 9, 13, 0.88);

  backdrop-filter:
    blur(14px);

  color:
    #ffe49a;

  font-size:
    12px;

  font-weight:
    900;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;

  box-shadow:
    0 12px 34px
    rgba(0, 0, 0, 0.28);
}


/*
 * High or Low uses a full-bleed scene. The gameplay canvas stays
 * readable but must not leave half of a tablet as dead space.
 */
html[data-ctn-game="high-or-low"]
body::after {
  content:
    "";

  position:
    fixed;

  z-index:
    0;

  inset:
    0;

  pointer-events:
    none;

  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(111, 63, 216, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 84% 72%,
      rgba(245, 201, 94, 0.10),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(7, 8, 13, 0.22),
      rgba(7, 8, 13, 0.68)
    );
}

html[data-ctn-game="high-or-low"]
.shell {
  width:
    100%;

  max-width:
    none;

  padding-inline:
    clamp(
      10px,
      2.4vw,
      38px
    );
}

html[data-ctn-game="high-or-low"]
.card.core-surface {
  width:
    100%;
}

html[data-ctn-game="high-or-low"]
.hol-screen {
  width:
    min(
      100%,
      1160px
    );

  margin:
    0 auto;

  gap:
    clamp(
      10px,
      1.6vw,
      18px
    );

  padding:
    clamp(
      12px,
      2vw,
      24px
    );
}


/* PHONE: keep the main decision loop tighter and reduce scrolling. */
@media (
  max-width: 600px
) {
  html[data-ctn-game="high-or-low"]
  .shell {
    padding-inline:
      6px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-screen {
    gap:
      10px;

    padding:
      10px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-turn-hero {
    min-height:
      126px;

    padding:
      12px 14px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-phase-banner {
    padding:
      10px 12px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-table {
    min-height:
      clamp(
        220px,
        36dvh,
        310px
      );
  }

  html[data-ctn-game="high-or-low"]
  .hol-table.two-card {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          150px
        )
      );
  }

  html[data-ctn-game="high-or-low"]
  .hol-table.one-card {
    grid-template-columns:
      minmax(
        0,
        158px
      );
  }

  html[data-ctn-game="high-or-low"]
  .hol-prediction {
    min-height:
      82px;
  }

  html[data-ctn-game="high-or-low"]
  .hol-outcome {
    padding:
      12px;
  }
}


/* TABLET / WIDE BROWSER: immersive scene with centered game canvas. */
@media (
  min-width: 601px
) {
  html[data-ctn-game="high-or-low"]
  .hol-screen {
    width:
      min(
        100%,
        1180px
      );
  }

  html[data-ctn-game="high-or-low"]
  .hol-table.two-card {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          205px
        )
      );
  }

  html[data-ctn-game="high-or-low"]
  .hol-table.one-card {
    grid-template-columns:
      minmax(
        0,
        214px
      );
  }
}
/* ==========================================================
   H7D-04 SHARED PLAYING CARD DECK
========================================================== */

html[data-ctn-game="high-or-low"]
.hol-card {
  aspect-ratio:
    1024 / 1430;
}

html[data-ctn-game="high-or-low"]
.hol-card-face,
html[data-ctn-game="high-or-low"]
.hol-card-back {
  border:
    0;

  background:
    transparent;
}

html[data-ctn-game="high-or-low"]
.hol-card-back::before {
  display:
    none;
}

html[data-ctn-game="high-or-low"]
.hol-card-art {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  display:
    block;

  object-fit:
    contain;
}

html[data-ctn-game="high-or-low"]
.hol-card small {
  z-index:
    3;

  left:
    50%;

  right:
    auto;

  bottom:
    7px;

  width:
    max-content;

  max-width:
    calc(100% - 18px);

  padding:
    3px 7px;

  border-radius:
    999px;

  transform:
    translateX(-50%);

  background:
    rgba(5, 6, 10, 0.72);

  color:
    rgba(255, 255, 255, 0.76);

  opacity:
    1;

  backdrop-filter:
    blur(6px);
}

html[data-ctn-game="high-or-low"]
.hol-card-back small {
  color:
    rgba(255, 255, 255, 0.78);
}
/* ==========================================================
   H7D-05 PLAYER PRESET AVATAR JOIN
========================================================== */

.join-avatar-fieldset {
  min-width:
    0;

  margin:
    4px 0
    6px;

  padding:
    0;

  border:
    0;
}

.join-avatar-fieldset legend {
  padding:
    0;

  color:
    var(--ctn-text-primary);

  font-weight:
    850;

  font-size:
    14px;
}

.join-avatar-help {
  margin:
    5px 0
    12px;

  color:
    var(--ctn-text-secondary);

  font-size:
    12px;
}

.join-avatar-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap:
    9px;
}

.join-avatar-choice {
  min-width:
    0;

  min-height:
    0;

  padding:
    8px
    4px
    7px;

  display:
    grid;

  justify-items:
    center;

  gap:
    6px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    14px;

  background:
    rgba(255, 255, 255, 0.035);

  box-shadow:
    none;

  color:
    var(--ctn-text-secondary);

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.join-avatar-choice:not(:disabled):active {
  transform:
    scale(0.97);
}

.join-avatar-choice.is-selected {
  transform:
    translateY(-2px);

  border-color:
    rgba(199, 155, 255, 0.72);

  background:
    linear-gradient(
      145deg,
      rgba(164, 105, 255, 0.18),
      rgba(245, 201, 94, 0.055)
    );

  color:
    var(--ctn-text-primary);

  box-shadow:
    0 0 0 2px
      rgba(173, 116, 255, 0.10),
    0 12px 30px
      rgba(0, 0, 0, 0.24);
}

.join-avatar-choice:focus-visible {
  outline:
    2px solid
    var(--ctn-semantic-focus);

  outline-offset:
    2px;
}

.join-avatar-visual {
  position:
    relative;

  width:
    clamp(
      52px,
      14vw,
      66px
    );

  aspect-ratio:
    1;
}

.join-avatar-image {
  position:
    absolute;

  inset:
    7%;

  width:
    86%;

  height:
    86%;

  object-fit:
    cover;

  border-radius:
    50%;
}

.join-avatar-ring {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  pointer-events:
    none;
}

.join-avatar-label {
  max-width:
    100%;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    9px;

  font-weight:
    850;

  letter-spacing:
    0.03em;
}

.roster-player-identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}

.roster-avatar-shell {
  position:
    relative;

  width:
    42px;

  height:
    42px;

  flex:
    none;
}

.roster-avatar {
  position:
    absolute;

  inset:
    7%;

  width:
    86%;

  height:
    86%;

  object-fit:
    cover;

  border-radius:
    50%;
}

.roster-avatar-ring {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  pointer-events:
    none;
}

@media (
  min-width:
    720px
) {
  .join-avatar-grid {
    grid-template-columns:
      repeat(
        7,
        minmax(0, 1fr)
      );
  }

  .join-avatar-visual {
    width:
      70px;
  }
}

@media (
  prefers-reduced-motion:
    reduce
) {
  .join-avatar-choice {
    transition:
      none;
  }
}
/* ==========================================================
   H7D-06 CORE FREEZE SMOKE FIX
========================================================== */

/*
 * Global buttons are full-width by default.
 * The fixed Owner escape action must size to its own content.
 */
.owner-new-night-action {
  width:
    auto;

  max-width:
    calc(
      100vw - 24px
    );
}

/*
 * Join keeps one selected avatar visible. The full preset
 * catalogue is opened only when the player wants to change it.
 */
.join-avatar-selected {
  display:
    flex;

  align-items:
    center;

  gap:
    14px;

  min-height:
    92px;

  padding:
    12px
    14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    18px;

  background:
    linear-gradient(
      145deg,
      rgba(164, 105, 255, 0.10),
      rgba(255, 255, 255, 0.025)
    );
}

.join-avatar-selected-visual {
  width:
    72px;

  flex:
    none;
}

.join-avatar-selected-copy {
  min-width:
    0;

  flex:
    1;

  display:
    grid;

  gap:
    4px;
}

.join-avatar-selected-copy strong {
  overflow:
    hidden;

  color:
    var(--ctn-text-primary);

  font-size:
    17px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.join-avatar-toggle {
  width:
    auto;

  min-height:
    38px;

  justify-self:
    start;

  margin-top:
    4px;

  padding:
    0 14px;

  border:
    1px solid
    rgba(199, 155, 255, 0.30);

  border-radius:
    999px;

  background:
    rgba(164, 105, 255, 0.09);

  box-shadow:
    none;

  color:
    rgba(232, 214, 255, 0.92);

  font-size:
    11px;

  font-weight:
    850;

  letter-spacing:
    0.04em;

  text-transform:
    uppercase;
}

.join-avatar-grid {
  margin-top:
    12px;
}

.join-avatar-grid[hidden] {
  display:
    none;
}

@media (
  max-width:
    480px
) {
  .join-avatar-selected {
    min-height:
      82px;

    padding:
      10px
      12px;
  }

  .join-avatar-selected-visual {
    width:
      62px;
  }
}