/* Game */
.game-body {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, rgba(23, 115, 121, .2), transparent 38%),
    linear-gradient(180deg, #071013 0%, #030709 100%);
  color: #f4f7f7;
  overflow-x: hidden;
}
.game-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.game-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 76px;
  background: rgba(4, 10, 12, .9);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.game-header-inner {
  width: min(1080px, calc(100% - 28px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.game-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.game-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}
.game-brand span { display: grid; line-height: 1.02; }
.game-brand strong { font-size: 1.05rem; letter-spacing: .08em; }
.game-brand small {
  margin-top: 4px;
  color: #98adb1;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.game-header-actions { display: flex; gap: 8px; }
.game-icon-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  color: #eaf2f3;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.game-icon-button svg { width: 22px; height: 22px; fill: currentColor; }
.game-icon-button:active { transform: scale(.97); }
.game-main { min-height: calc(100svh - 76px); position: relative; z-index: 1; }
.game-screen { display: none; }
.game-screen.is-active { display: block; }
.game-overline {
  margin: 0 0 11px;
  color: #73dcde;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.game-primary-button {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f9f9, #dce5e6);
  color: #071013;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(255,255,255,.1);
}
.game-primary-button:active { transform: translateY(1px) scale(.995); }
.game-text-button {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #dce8e9;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
/* Opening screen */
.game-screen-intro { min-height: calc(100svh - 76px); }
.intro-stage {
  width: min(620px, calc(100% - 28px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(26px, 5svh, 54px) 0 max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.intro-deck {
  position: relative;
  width: min(46svh, 78vw, 380px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,.52));
}
.intro-deck img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  will-change: transform;
}
.intro-deck img:nth-child(1) { transform: rotate(-7deg) translate(-15px, 9px); opacity: .72; }
.intro-deck img:nth-child(2) { transform: rotate(6deg) translate(15px, 7px); opacity: .88; }
.intro-deck img:nth-child(3) { animation: deckBreath 4.6s ease-in-out infinite; }
@keyframes deckBreath {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, -9px, 0) rotate(.6deg); }
}
.intro-copy { text-align: center; }
.intro-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 3.9rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.intro-disciplines {
  margin: 14px 0 0;
  color: #e5edef;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.intro-disciplines span { color: #587176; margin: 0 8px; }
.intro-note { margin: 10px auto 0; font-size: .88rem; color: #92a7ac; }
.intro-actions { width: min(440px, 100%); margin: 0 auto; display: grid; gap: 2px; }
/* Setup sequence */
.game-screen-setup { min-height: calc(100svh - 76px); }
.setup-shell {
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 max(34px, env(safe-area-inset-bottom));
}
.setup-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(36px, 6svh, 72px);
}
.game-back-button {
  min-height: 50px;
  padding: 0 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd8da;
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}
.game-back-button svg { width: 23px; height: 23px; fill: currentColor; }
.setup-progress { display: flex; gap: 8px; }
.setup-progress span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  transition: background .25s ease;
}
.setup-progress span.is-active { background: #77dfe0; }
.setup-step { display: none; }
.setup-step.is-active { display: block; animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.setup-step h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.setup-intro { margin: 13px 0 30px; color: #9fb2b6; font-size: 1.03rem; }
.discipline-options { border-top: 1px solid rgba(255,255,255,.12); }
.discipline-option {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 15px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #f3f6f7;
  text-align: left;
  cursor: pointer;
}
.discipline-option strong { display: block; font-size: 1.08rem; }
.discipline-option small { display: block; margin-top: 4px; color: #93a8ac; font-size: .84rem; line-height: 1.35; }
.discipline-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
  color: #dfe9ea;
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.discipline-option.is-selected .discipline-mark { border-color: rgba(113,222,224,.7); background: rgba(20,143,148,.18); color: #8df3f4; }
.option-arrow { color: #688085; font-size: 2rem; font-weight: 300; }
.draw-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 30px;
}
.draw-option {
  min-height: 218px;
  padding: 15px 8px 14px;
  display: grid;
  grid-template-rows: 128px auto auto;
  justify-items: center;
  align-items: end;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  color: #f2f6f6;
  cursor: pointer;
}
.draw-option.is-selected {
  border-color: rgba(113,222,224,.72);
  background: linear-gradient(180deg, rgba(18,120,126,.16), rgba(255,255,255,.02));
  box-shadow: inset 0 -3px 0 #61d5d7;
}
.draw-option strong { font-size: 1.65rem; line-height: 1; }
.draw-option small { margin-top: 4px; color: #9eb0b4; font-weight: 750; }
.draw-stack { position: relative; width: 70px; height: 112px; align-self: center; }
.draw-stack img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 102px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 22px rgba(0,0,0,.34);
}
.draw-one img { transform: translate(-50%,-50%); }
.draw-three img:nth-child(1) { transform: translate(-64%,-48%) rotate(-8deg); }
.draw-three img:nth-child(2) { transform: translate(-36%,-48%) rotate(8deg); }
.draw-three img:nth-child(3) { transform: translate(-50%,-54%); }
.draw-five img:nth-child(1) { transform: translate(-72%,-46%) rotate(-12deg); }
.draw-five img:nth-child(2) { transform: translate(-28%,-46%) rotate(12deg); }
.draw-five img:nth-child(3) { transform: translate(-62%,-52%) rotate(-6deg); }
.draw-five img:nth-child(4) { transform: translate(-38%,-52%) rotate(6deg); }
.draw-five img:nth-child(5) { transform: translate(-50%,-57%); }
.safety-line { margin: 0 0 18px; color: #8fa4a8; font-size: .88rem; text-align: center; }
.deal-button { margin-top: 4px; }
/* Playing table */
.game-screen-table { min-height: calc(100svh - 76px); }
.table-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 15px 0 max(28px, env(safe-area-inset-bottom));
}
.round-topbar {
  width: min(660px, calc(100% - 28px));
  min-height: 46px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.round-topbar p { margin: 0; color: #edf3f4; font-weight: 850; font-size: .92rem; }
.round-exit, .round-deal-again {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #92a8ac;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.round-exit { text-align: left; }
.round-deal-again { text-align: right; }
.round-progress {
  width: min(360px, calc(100% - 56px));
  height: 3px;
  margin: 5px auto 13px;
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
}
.round-progress span { border-radius: 999px; background: rgba(255,255,255,.14); }
.round-progress span.is-current { background: #e8eff0; }
.round-progress span.is-complete { background: #5fd1d3; }
.reveal-cue {
  min-height: 28px;
  margin: 0 auto 8px;
  padding: 0 18px;
  color: #cbd7d9;
  font-size: .91rem;
  font-weight: 750;
  text-align: center;
}
.deal-table { position: relative; overflow: hidden; }
.card-carousel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 3vw 8px;
  touch-action: pan-x pan-y;
}
.card-carousel::-webkit-scrollbar { display: none; }
.card-slide {
  flex: 0 0 94%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.card-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  opacity: 0;
  transform: translate3d(38vw, 22vh, 0) rotate(11deg) scale(.62);
  transform-origin: 50% 100%;
}
.card-stage.is-dealt {
  opacity: 1;
  transform: none;
  transition: transform .58s cubic-bezier(.2,.8,.2,1), opacity .34s ease;
}
.card-position-label { margin: 0; color: #91a7ab; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-wrap { perspective: 1500px; width: 100%; display: grid; justify-items: center; }
.card-button {
  position: relative;
  width: min(100%, 60svh, 640px);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.card-3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .56s cubic-bezier(.2,.75,.25,1); }
.card-button.revealed .card-3d { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 44px rgba(0,0,0,.45);
}
.card-face.front { transform: rotateY(180deg); }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.tap-card-label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(4,10,12,.78);
  border: 1px solid rgba(255,255,255,.16);
  color: #eff5f5;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: opacity .2s ease;
}
.card-button.revealed .tap-card-label { opacity: 0; pointer-events: none; }
.card-action-dock {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.card-stage.is-revealed .card-action-dock { opacity: 1; visibility: visible; transform: none; }
.card-action {
  min-height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
  color: #eef4f5;
  font-weight: 850;
  font-size: .93rem;
  cursor: pointer;
}
.card-action.complete { background: #e7eeee; color: #071013; border-color: transparent; }
.card-action.is-complete { background: rgba(34,161,166,.2); color: #9ff1f2; border-color: rgba(95,209,211,.42); }
.card-next-cue { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #79cfd1; font-size: .82rem; text-align: center; opacity: 0; }
.card-stage.is-complete .card-next-cue { opacity: 1; }
.swipe-instruction {
  min-height: 42px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #778f94;
  font-size: .78rem;
  font-weight: 750;
}
.swipe-instruction svg { width: 18px; height: 18px; fill: currentColor; }
.deal-origin {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 2%;
  width: 96px;
  height: 145px;
  transform: translate(-50%, 30%) scale(.78);
  opacity: 0;
  pointer-events: none;
}
.deal-origin.is-active { animation: dealOrigin .95s ease both; }
.deal-origin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.deal-origin img:nth-child(1) { transform: rotate(-7deg); }
.deal-origin img:nth-child(2) { transform: rotate(6deg); }
@keyframes dealOrigin { 0% { opacity: 0; transform: translate(-50%, 36%) scale(.65); } 25%,65% { opacity: .9; transform: translate(-50%, 4%) scale(.85); } 100% { opacity: 0; transform: translate(-50%, -10%) scale(.7); } }
/* Dialogs */
.game-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(82svh, 760px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: #0b1518;
  color: #f2f6f7;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
.game-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.dialog-inner { padding: 26px; overflow: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.dialog-heading h2, .complete-inner h2 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.55rem); line-height: 1; letter-spacing: -.03em; }
.dialog-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #dbe6e8; font-size: 1.8rem; cursor: pointer; }
.audio-fieldset { padding: 0; margin: 0 0 18px; border: 0; }
.audio-fieldset legend { margin-bottom: 10px; color: #a8babd; font-size: .85rem; font-weight: 800; }
.voice-segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.05); }
.voice-segmented input { position: absolute; opacity: 0; }
.voice-segmented span { min-height: 52px; display: grid; place-items: center; border-radius: 12px; color: #adbec1; font-weight: 800; cursor: pointer; }
.voice-segmented input:checked + span { background: #e7eeee; color: #071013; }
.audio-toggle { min-height: 76px; display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.audio-toggle input { width: 22px; height: 22px; margin-top: 2px; }
.audio-toggle strong { display: block; }
.audio-toggle small { display: block; margin-top: 4px; color: #94a9ad; line-height: 1.4; }
.dialog-preview { width: 100%; min-height: 58px; margin-top: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.04); color: #edf3f4; font-weight: 850; cursor: pointer; }
.help-sequence { list-style: none; padding: 0; margin: 0; }
.help-sequence li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); }
.help-sequence li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(71,192,196,.13); color: #8eeaed; font-weight: 900; }
.help-sequence strong { display: block; }
.help-sequence p { margin: 4px 0 0; color: #9eb1b5; font-size: .91rem; line-height: 1.45; }
.help-safety { margin: 20px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #aebfc2; font-size: .88rem; }
.complete-inner { text-align: center; }
.complete-deck { position: relative; width: 116px; height: 172px; margin: 0 auto 22px; }
.complete-deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.complete-deck img:nth-child(1) { transform: rotate(-8deg) translateX(-12px); }
.complete-deck img:nth-child(2) { transform: rotate(8deg) translateX(12px); }
.complete-inner .game-primary-button { margin-top: 10px; }
.complete-inner .game-text-button { width: 100%; }
/* Shared responsive navigation outside the game */
@media (max-width: 980px) {
  .site-nav { position:fixed; top:93px; right:16px; left:16px; display:none; flex-direction:column; align-items:stretch; padding:14px; background: rgba(6,11,13,.98); border:1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: var(--shadow); }
  .site-nav.open { display:flex; }
  .nav-toggle { display:block; }
  .hero-grid, .card-promo-grid, .feature-grid.four, .resource-grid, .contact-grid, .footer-grid, .footer-bottom, .leadership-profile { grid-template-columns:1fr; display:grid; }
  .hero-grid { min-height:auto; padding: 74px 0 68px; }
  .hero-cards { min-height: 360px; }
  .card-a { right: 14%; top: 4%; }
  .card-b { right: 8%; top: 16%; }
  .card-c { right: 0; top: 28%; }
  .leadership-profile { display:grid; }
}
@media (max-width: 720px) {
  .shell { width: min(var(--shell), calc(100% - 24px)); }
  .header-inner { min-height: 86px; }
  .brand-text small { display:none; }
  .button, .ghost-button, .game-action { min-height:60px; }
  .footer-bottom { display:grid; }
  .game-header, .game-header-inner { min-height: 68px; }
  .game-main, .game-screen-intro, .game-screen-setup, .game-screen-table { min-height: calc(100svh - 68px); }
  .game-brand img { width: 38px; height: 38px; }
  .game-brand small { display: none; }
  .game-icon-button { width: 48px; height: 48px; }
  .intro-stage { min-height: calc(100svh - 68px); grid-template-rows: minmax(285px, 1fr) auto auto; padding-top: 18px; }
  .intro-deck { width: min(43svh, 74vw, 345px); }
  .draw-option { min-height: 198px; grid-template-rows: 116px auto auto; }
  .draw-stack { transform: scale(.88); }
  .table-shell { padding-top: 8px; }
  .card-carousel { padding-left: 2.5vw; padding-right: 2.5vw; }
  .card-slide { flex-basis: 95%; }
  .card-button { width: min(100%, 60svh, 640px); }
  .card-action-dock { gap: 8px; }
  .card-action { min-height: 60px; font-size: .88rem; }
}
@media (max-width: 430px) {
  .intro-copy h1 { font-size: 2.35rem; }
  .intro-note { max-width: 30ch; }
  .setup-topline { margin-bottom: 34px; }
  .draw-options { gap: 6px; }
  .draw-option { min-height: 184px; padding-left: 3px; padding-right: 3px; border-radius: 16px; }
  .draw-stack { transform: scale(.78); }
  .round-exit, .round-deal-again { font-size: .75rem; }
  .card-button { width: min(100%, 58svh, 620px); }
  .card-action { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-deck img:nth-child(3) { animation: none; }
  .card-stage, .card-stage.is-dealt, .setup-step.is-active { animation: none; transition: none; transform: none; opacity: 1; }
  .deal-origin.is-active { animation: none; opacity: 0; }
  .card-3d { transition-duration: .01ms; }
}


