@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Orbitron:wght@500;600;700&display=swap");

:root {
  --ink: #f2fff8;
  --muted: rgba(218, 239, 228, 0.55);
  --green: #45f5a0;
  --red: #ff5365;
  --blue: #68b7ff;
  --gold: #f1d282;
  --line: rgba(255, 255, 255, 0.11);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #0c1410;
}

body {
  min-height: 100%;
  color: var(--ink);
  background: #0c1410;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  color: #031008;
  background: var(--green);
}

.poker-shell {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 58px);
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 7%, rgba(255, 83, 101, 0.1), transparent 27%),
    radial-gradient(circle at 7% 31%, rgba(29, 109, 75, 0.18), transparent 30%),
    linear-gradient(147deg, #0c1410, #050807 48%, #030504);
}

.poker-grid,
.poker-grain,
.page-particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-particle-canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.poker-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(69, 245, 160, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 245, 160, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 84%, transparent);
}

.poker-grain {
  z-index: -1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.poker-nav,
.poker-hero,
.poker-strip,
.poker-section,
.poker-closing,
.poker-footer {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.poker-nav {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.poker-nav a,
.poker-nav p {
  color: rgba(220, 246, 233, 0.48);
  font-size: 7px;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.poker-nav .poker-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.poker-nav-brand img {
  display: block;
  width: 46px;
  height: auto;
}

.poker-nav .poker-nav-brand span {
  color: rgba(220, 246, 233, 0.48);
}

.poker-nav > div {
  display: flex;
  justify-self: end;
  gap: clamp(14px, 2.5vw, 31px);
}

.poker-nav a {
  transition: color 180ms ease;
}

.poker-nav a:hover,
.poker-nav a:focus-visible {
  outline: none;
  color: var(--green);
}

.poker-hero {
  display: grid;
  min-height: min(790px, calc(100svh - 78px));
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
  padding: clamp(70px, 10vh, 118px) 0;
}

.poker-kicker {
  color: rgba(115, 255, 187, 0.65);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.poker-kicker span {
  margin-right: 7px;
  color: var(--red);
}

.poker-hero h1 {
  margin-top: 18px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(65px, 9vw, 118px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.77;
}

.poker-hero h1 span,
.poker-section-heading h2 span,
.poker-closing h2 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(102, 255, 181, 0.72);
}

.poker-hero-copy > p:nth-of-type(2) {
  max-width: 650px;
  margin-top: 32px;
  color: rgba(220, 244, 232, 0.6);
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.85;
}

.poker-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 29px;
}

.poker-hero-actions a,
.poker-closing > a {
  padding: 12px 14px;
  border: 1px solid rgba(69, 245, 160, 0.31);
  border-radius: 8px;
  background: rgba(69, 245, 160, 0.055);
  color: rgba(224, 255, 239, 0.82);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.poker-hero-actions a:last-child {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(224, 242, 233, 0.55);
}

.poker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 25px;
  list-style: none;
}

.poker-tags li {
  padding: 6px 8px;
  border: 1px solid rgba(69, 245, 160, 0.12);
  border-radius: 999px;
  color: rgba(205, 242, 223, 0.43);
  font-size: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.poker-table-wrap {
  transform: perspective(1200px) rotateY(-3deg);
}

.poker-table {
  position: relative;
  aspect-ratio: 1.48;
  border: 11px solid #151b18;
  border-radius: 48%;
  background:
    radial-gradient(circle at 50% 50%, rgba(78, 255, 168, 0.1), transparent 48%),
    repeating-linear-gradient(27deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px),
    #0b4b31;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.09),
    inset 0 0 70px rgba(0, 0, 0, 0.52),
    0 36px 100px rgba(0, 0, 0, 0.55);
}

.poker-table::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  content: "";
  inset: 7%;
}

.table-player {
  position: absolute;
  z-index: 2;
  min-width: 118px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(3, 7, 5, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.table-player small,
.table-player strong,
.table-player span {
  display: block;
}

.table-player small {
  color: var(--green);
  font-size: 6px;
}

.table-player strong {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 500;
}

.table-player span {
  margin-top: 3px;
  color: rgba(230, 250, 240, 0.45);
  font-size: 7px;
}

.table-player--utg {
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
}

.table-player--sb {
  top: 50%;
  right: -7%;
  transform: translateY(-50%);
}

.table-player--bb {
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
}

.table-player--hero {
  top: 50%;
  left: -7%;
  border-color: rgba(69, 245, 160, 0.5);
  box-shadow: 0 0 30px rgba(69, 245, 160, 0.12);
  transform: translateY(-50%);
}

.table-pot {
  position: absolute;
  z-index: 2;
  top: 37%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.table-pot small,
.table-pot strong {
  display: block;
}

.table-pot small {
  color: rgba(224, 245, 234, 0.4);
  font-size: 6px;
  text-transform: uppercase;
}

.table-pot strong {
  margin-top: 3px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
}

.table-cards {
  position: absolute;
  z-index: 3;
  bottom: 23%;
  left: 26%;
  display: flex;
  gap: 5px;
}

.table-cards span {
  display: flex;
  width: 45px;
  height: 62px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 7px 6px;
  border-radius: 5px;
  background: #f6faf7;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.38);
  color: #122219;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.table-cards span:last-child {
  transform: rotate(3deg) translateY(2px);
}

.table-cards b {
  color: #148a55;
}

.table-chip {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 4px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38);
}

.table-chip--one { top: 44%; left: 42%; }
.table-chip--two { top: 48%; left: 47%; background: #f3c95e; }
.table-chip--three { top: 43%; left: 52%; background: #329fe7; }

.poker-table-wrap > p {
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
  color: rgba(221, 244, 232, 0.4);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poker-table-wrap > p span {
  color: var(--green);
}

.poker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.poker-strip p {
  padding: 17px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 244, 232, 0.47);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.poker-strip p:last-child {
  border-right: 0;
}

.poker-strip span {
  margin-right: 8px;
  color: rgba(69, 245, 160, 0.53);
}

.poker-section {
  padding: clamp(90px, 12vw, 156px) 0;
  border-bottom: 1px solid var(--line);
}

.poker-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 35px;
  align-items: end;
  margin-bottom: 44px;
}

.poker-section-heading h2,
.poker-closing h2 {
  margin-top: 12px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(35px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.poker-section-heading > p {
  color: rgba(218, 241, 229, 0.47);
  font-size: 9px;
  line-height: 1.8;
}

.result-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(2, 6, 4, 0.55);
}

.result-feature figure {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.result-feature figure::after,
.result-card-visual::after {
  position: absolute;
  background: linear-gradient(180deg, transparent 68%, rgba(1, 4, 2, 0.9));
  content: "";
  inset: 0;
}

.result-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-feature figcaption,
.result-card-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: 12px;
  left: 15px;
  display: flex;
  justify-content: space-between;
  color: rgba(235, 255, 245, 0.62);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-feature-copy {
  padding: clamp(28px, 4vw, 48px);
}

.result-feature-copy > p:first-child {
  color: rgba(69, 245, 160, 0.59);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-feature-copy h3 {
  margin-top: 15px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.result-feature dl {
  margin-top: 33px;
  border-top: 1px solid var(--line);
}

.result-feature dl div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result-feature dt {
  color: rgba(220, 242, 231, 0.4);
  font-size: 7px;
  text-transform: uppercase;
}

.result-feature dd {
  color: rgba(244, 255, 249, 0.85);
  font-size: 9px;
}

.result-note {
  margin-top: 26px;
  color: rgba(218, 241, 229, 0.46);
  font-size: 8px;
  line-height: 1.75;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.result-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(2, 6, 4, 0.45);
}

.result-card-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(69, 245, 160, 0.08), transparent 50%),
    #060a08;
}

.result-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.result-card--online .result-card-visual img {
  transform: scale(1.09);
  transform-origin: center bottom;
}

.result-card-copy {
  padding: clamp(25px, 3.4vw, 40px);
}

.result-card-copy h3 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 13px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(27px, 3.2vw, 41px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.result-card-copy h3 span {
  color: var(--green);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 400;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.result-card-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 25px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-card-copy dl div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-card--online .result-card-copy dl div:last-child,
.result-card--live .result-card-copy dl div:last-child {
  grid-column: 1 / -1;
}

.result-card-copy dt {
  color: rgba(220, 242, 231, 0.35);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-card-copy dd {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: rgba(244, 255, 249, 0.82);
  font-size: 8px;
  line-height: 1.4;
}

.result-card-copy > p:last-child {
  margin-top: 22px;
  color: rgba(218, 241, 229, 0.43);
  font-size: 8px;
  line-height: 1.75;
}

.hand-replay-section {
  background:
    radial-gradient(circle at 12% 42%, rgba(255, 83, 101, 0.075), transparent 33%),
    radial-gradient(circle at 88% 20%, rgba(69, 245, 160, 0.07), transparent 30%);
}

.hand-replay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 12px;
  align-items: stretch;
}

.hand-replay-player,
.hand-replay-copy {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 4, 0.58);
}

.hand-replay-player {
  position: relative;
  align-self: start;
  aspect-ratio: 1548 / 802;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hand-replay-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020302;
  object-fit: contain;
}

.hand-replay-status {
  position: absolute;
  top: 13px;
  left: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(69, 245, 160, 0.18);
  border-radius: 999px;
  background: rgba(2, 8, 5, 0.78);
  color: rgba(222, 249, 235, 0.58);
  font-size: 6px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hand-replay-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(220, 242, 231, 0.33);
}

.hand-replay-player.is-playing .hand-replay-status {
  color: var(--green);
}

.hand-replay-player.is-playing .hand-replay-status span {
  background: var(--green);
  box-shadow: 0 0 10px rgba(69, 245, 160, 0.85);
}

.hand-replay-copy {
  padding: clamp(27px, 3.8vw, 46px);
}

.hand-replay-copy h3 {
  margin-top: 16px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hand-replay-copy dl {
  margin-top: 29px;
  border-top: 1px solid var(--line);
}

.hand-replay-copy dl div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hand-replay-copy dt {
  color: rgba(220, 242, 231, 0.35);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hand-replay-copy dd {
  color: rgba(244, 255, 249, 0.82);
  font-size: 8px;
  text-align: right;
}

.hand-replay-copy > p:not(.poker-kicker) {
  margin-top: 25px;
  color: rgba(218, 241, 229, 0.46);
  font-size: 8px;
  line-height: 1.75;
}

.hand-replay-copy small {
  display: block;
  margin-top: 18px;
  color: rgba(218, 241, 229, 0.28);
  font-size: 6px;
  line-height: 1.65;
}

.trainer-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(69, 245, 160, 0.2);
  border-radius: 18px;
  background: rgba(1, 5, 3, 0.76);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
}

.trainer-controls {
  padding: 24px;
  border-right: 1px solid rgba(69, 245, 160, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.trainer-label {
  color: rgba(205, 239, 222, 0.4);
  font-size: 6px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.profile-switch button {
  padding: 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: transparent;
  color: rgba(222, 245, 234, 0.43);
  cursor: pointer;
  font-size: 6px;
  text-transform: uppercase;
}

.profile-switch button.is-active {
  border-color: rgba(69, 245, 160, 0.42);
  background: rgba(69, 245, 160, 0.075);
  color: var(--green);
}

.trainer-progress {
  margin-top: 32px;
}

.trainer-progress strong {
  display: block;
  margin-top: 9px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: 25px;
  font-weight: 500;
}

.trainer-progress > div {
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.trainer-progress > div span {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(69, 245, 160, 0.6);
  transition: width 260ms ease;
}

.trainer-session-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 31px;
}

.trainer-session-stats div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.trainer-session-stats dt {
  color: rgba(220, 242, 231, 0.31);
  font-size: 6px;
  text-transform: uppercase;
}

.trainer-session-stats dd {
  margin-top: 5px;
  color: rgba(239, 255, 247, 0.76);
  font-size: 11px;
}

.trainer-profile-note {
  margin-top: 23px;
  color: rgba(216, 240, 227, 0.35);
  font-size: 7px;
  line-height: 1.7;
}

.trainer-terminal header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(69, 245, 160, 0.13);
}

.trainer-terminal header > div {
  display: flex;
  gap: 5px;
}

.trainer-terminal header > div span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(69, 245, 160, 0.25);
}

.trainer-terminal header p,
.trainer-terminal header b {
  color: rgba(202, 242, 222, 0.36);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.trainer-terminal header b {
  justify-self: end;
  color: rgba(69, 245, 160, 0.56);
}

.terminal-game {
  padding: clamp(25px, 4vw, 45px);
}

.terminal-hand-number {
  color: rgba(217, 246, 231, 0.55);
  font-size: 8px;
  text-align: center;
}

.terminal-table-line {
  margin-top: 23px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(218, 244, 231, 0.42);
  font-size: 7px;
  line-height: 1.6;
}

.terminal-board {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.terminal-board p {
  margin: 7px 0;
  color: rgba(235, 255, 245, 0.7);
  font-size: clamp(8px, 1vw, 10px);
}

.terminal-board i {
  margin: 0 9px;
  color: rgba(255, 255, 255, 0.19);
}

.terminal-board strong {
  color: var(--gold);
}

.club { color: #58e59c; }
.diamond, .heart { color: #ff6273; }
.spade { color: #72bfff; }

.terminal-action-copy {
  margin-top: 18px;
  color: rgba(232, 255, 243, 0.7);
  font-size: 8px;
}

.terminal-prompt {
  margin-top: 17px;
  color: rgba(218, 241, 229, 0.36);
  font-size: 7px;
}

.terminal-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.terminal-options button {
  min-height: 69px;
  padding: 10px;
  border: 1px solid rgba(69, 245, 160, 0.16);
  border-radius: 8px;
  background: rgba(69, 245, 160, 0.025);
  color: rgba(232, 255, 243, 0.69);
  cursor: pointer;
  text-align: left;
}

.terminal-options button:hover,
.terminal-options button:focus-visible {
  border-color: var(--green);
  outline: none;
  background: rgba(69, 245, 160, 0.08);
}

.terminal-options button:disabled {
  cursor: default;
  opacity: 0.45;
}

.terminal-options button.is-selected {
  border-color: var(--red);
  opacity: 1;
}

.terminal-options button.is-best {
  border-color: rgba(69, 245, 160, 0.7);
  opacity: 1;
}

.terminal-options strong,
.terminal-options span {
  display: block;
}

.terminal-options strong {
  font-size: 8px;
  font-weight: 400;
}

.terminal-options span {
  margin-top: 7px;
  color: rgba(218, 241, 229, 0.36);
  font-size: 6px;
  line-height: 1.4;
}

.trainer-feedback {
  display: grid;
  min-height: 72px;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.trainer-feedback > span {
  color: var(--green);
}

.trainer-feedback p {
  color: rgba(218, 241, 229, 0.43);
  font-size: 7px;
  line-height: 1.65;
}

.trainer-feedback strong {
  color: rgba(240, 255, 248, 0.82);
  font-weight: 500;
}

.trainer-feedback.is-positive {
  border-color: rgba(69, 245, 160, 0.28);
  background: rgba(69, 245, 160, 0.035);
}

.trainer-feedback.is-caution {
  border-color: rgba(255, 83, 101, 0.27);
  background: rgba(255, 83, 101, 0.025);
}

.next-spot {
  width: 100%;
  margin-top: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(69, 245, 160, 0.27);
  border-radius: 7px;
  background: rgba(69, 245, 160, 0.055);
  color: var(--green);
  cursor: pointer;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.trainer-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trainer-features article {
  min-height: 145px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.trainer-features article > span {
  color: rgba(69, 245, 160, 0.48);
  font-size: 6px;
}

.trainer-features h3 {
  margin-top: 23px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.trainer-features p {
  margin-top: 9px;
  color: rgba(218, 241, 229, 0.4);
  font-size: 7px;
  line-height: 1.65;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lab-card {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(69, 245, 160, 0.045), transparent 32%),
    rgba(2, 6, 4, 0.45);
}

.lab-card--primary {
  grid-row: span 2;
  min-height: 470px;
}

.lab-card > div:first-child {
  display: flex;
  justify-content: space-between;
}

.lab-card > div:first-child span,
.lab-card > div:first-child b {
  color: rgba(69, 245, 160, 0.5);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lab-card > div:first-child b {
  color: rgba(255, 255, 255, 0.27);
}

.lab-card h3 {
  max-width: 550px;
  margin-top: 37px;
  font-family: "Orbitron", "DM Mono", monospace;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.lab-card p {
  max-width: 550px;
  margin-top: 16px;
  color: rgba(218, 241, 229, 0.42);
  font-size: 8px;
  line-height: 1.75;
}

.mini-table {
  position: relative;
  width: min(360px, 90%);
  aspect-ratio: 1.7;
  margin: 52px auto 0;
  border: 6px solid #17201b;
  border-radius: 50%;
  background: #0a4a30;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.5);
}

.mini-table i {
  position: absolute;
  width: 34px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 4px;
  background: #07100b;
}

.mini-table i:nth-child(1) { top: -10px; left: 50%; transform: translateX(-50%); }
.mini-table i:nth-child(2) { top: 50%; right: -17px; transform: translateY(-50%); }
.mini-table i:nth-child(3) { bottom: -10px; left: 50%; transform: translateX(-50%); }
.mini-table i:nth-child(4) { top: 50%; left: -17px; transform: translateY(-50%); }

.mini-table strong {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(240, 255, 247, 0.83);
  font-family: Georgia, serif;
  font-size: 17px;
  transform: translate(-50%, -50%);
}

.poker-closing {
  padding: clamp(105px, 15vw, 190px) 0;
  text-align: center;
}

.poker-closing h2 {
  margin-top: 18px;
  font-size: clamp(40px, 7.5vw, 86px);
}

.poker-closing > p:not(.poker-kicker) {
  max-width: 730px;
  margin: 27px auto 0;
  color: rgba(218, 241, 229, 0.49);
  font-size: 10px;
  line-height: 1.8;
}

.poker-closing > a {
  display: inline-flex;
  gap: 35px;
  margin-top: 31px;
}

.poker-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(218, 241, 229, 0.31);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .poker-nav {
    grid-template-columns: 1fr auto;
  }

  .poker-nav > div {
    display: none;
  }

  .poker-hero,
  .poker-section-heading,
  .result-feature,
  .hand-replay-layout {
    grid-template-columns: 1fr;
  }

  .poker-hero {
    min-height: 0;
  }

  .poker-table-wrap {
    width: min(700px, 90%);
    margin: 30px auto;
    transform: none;
  }

  .result-feature figure {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trainer-layout {
    grid-template-columns: 1fr;
  }

  .trainer-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(69, 245, 160, 0.14);
  }

  .trainer-progress {
    margin-top: 0;
  }

  .trainer-session-stats {
    margin-top: 0;
  }

  .trainer-profile-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .poker-shell {
    padding:
      max(14px, env(safe-area-inset-top, 0px))
      max(20px, calc(env(safe-area-inset-right, 0px) + 14px))
      max(36px, calc(env(safe-area-inset-bottom, 0px) + 18px))
      max(20px, calc(env(safe-area-inset-left, 0px) + 14px));
  }

  .poker-nav {
    min-height: 66px;
  }

  .poker-nav p {
    text-align: right;
  }

  .poker-hero {
    gap: 55px;
    padding: 70px 0 90px;
  }

  .poker-hero h1 {
    font-size: clamp(62px, 22vw, 91px);
  }

  .poker-hero-actions a {
    flex: 1 1 auto;
    text-align: center;
  }

  .poker-table-wrap {
    width: 82%;
  }

  .table-player {
    min-width: 85px;
    padding: 7px;
  }

  .table-cards span {
    width: 34px;
    height: 48px;
    font-size: 14px;
  }

  .poker-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .poker-strip p:nth-child(2) {
    border-right: 0;
  }

  .poker-strip p:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .poker-section {
    padding: 85px 0;
  }

  .poker-section-heading h2 {
    font-size: clamp(33px, 12vw, 49px);
  }

  .result-feature figure {
    min-height: 250px;
  }

  .result-gallery {
    grid-template-columns: 1fr;
  }

  .trainer-controls {
    grid-template-columns: 1fr;
  }

  .trainer-profile-note {
    grid-column: auto;
  }

  .trainer-terminal header {
    grid-template-columns: 1fr auto;
  }

  .trainer-terminal header p {
    display: none;
  }

  .terminal-game {
    padding: 22px 15px;
  }

  .terminal-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .trainer-features {
    grid-template-columns: 1fr 1fr;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .lab-card--primary {
    grid-row: auto;
    min-height: 430px;
  }

  .poker-closing h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .poker-footer {
    gap: 20px;
  }

  .poker-footer p:last-child {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
