.gm-game {
  --gm-bg: var(--bg, #11131b);
  --gm-panel: #1a1d29;
  --gm-text: var(--text, #f3f1ed);
  --gm-muted: #b6b7c8;
  --gm-mint: var(--mint, #b9eedb);
  --gm-lavender: var(--lavender, #b9a8ed);
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--gm-bg);
  color: var(--gm-text);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.gm-game *, .gm-game *::before, .gm-game *::after { box-sizing: border-box; }
.gm-game ::selection { background: var(--gm-mint); color: #131b1a; }
.gm-game a { color: inherit; text-decoration: none; }
.gm-game button { font: inherit; cursor: pointer; color: inherit; }
.gm-game button:disabled { cursor: default; }
.gm-game button, .gm-game a, .gm-game summary { -webkit-tap-highlight-color: transparent; }
.gm-game :focus-visible { outline: 2px solid var(--gm-mint); outline-offset: 5px; }
.gm-game [tabindex="-1"]:focus { outline: none; }
.gm-game svg { width: 21px; height: 21px; flex-shrink: 0; }
.gm-game-header { display: flex; align-items: center; justify-content: space-between; padding: 27px max(5vw, 24px); border-bottom: 1px solid #ffffff12; }
.gm-game-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.gm-game-brand-dot { color: var(--gm-mint); margin-left: -9px; }
.gm-game-brand-mark { width: 24px; height: 24px; display: flex; align-items: center; gap: 3px; margin-right: 2px; }
.gm-game-brand-mark i { display: block; width: 5px; height: 16px; border: 1px solid var(--gm-mint); border-radius: 3px; transform: rotate(24deg); }
.gm-game-brand-mark i:nth-child(2) { height: 23px; }
.gm-game-header-tools { display: flex; gap: 10px; }
.gm-game-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff25; background: transparent; border-radius: 50%; transition: background .15s ease; }
.gm-game-icon:hover { background: #ffffff0e; }
.gm-game-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 64px 32px 36px; flex: 1; }
.gm-game h1, .gm-game h2, .gm-game p { margin: 0; }
.gm-game-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; }
.gm-game-back { display: inline-flex; font-size: 13px; color: var(--gm-muted) !important; margin-bottom: 28px; text-decoration: underline !important; text-underline-offset: 5px; }
.gm-game-intro h1 { font-size: clamp(54px, 6.5vw, 84px); line-height: .99; font-weight: 450; letter-spacing: -.04em; }
.gm-game-intro h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--gm-lavender); }
.gm-game-description { color: var(--gm-muted); font-size: 17px; line-height: 1.7; margin-top: 24px !important; }
.gm-game-instructions { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 15px; }
.gm-game-instructions li { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.gm-game-instructions li span { color: var(--gm-lavender); font-size: 12px; font-variant-numeric: tabular-nums; }
.gm-game-primary-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 32px; }
.gm-game-button { display: inline-flex; gap: 23px; align-items: center; justify-content: center; min-height: 52px; padding: 15px 23px; border: 1px solid transparent; border-radius: 7px; font-size: 14px !important; font-weight: 600 !important; line-height: 1.4; transition: background .15s ease, transform .15s ease; }
.gm-game-button-primary { background: var(--gm-mint); color: #14241e !important; }
.gm-game-button-primary:hover { background: #d0f8e9; transform: translateY(-1px); }
.gm-game-button-secondary { background: transparent; border-color: #ffffff30; }
.gm-game-button-secondary:hover { background: #ffffff09; }
.gm-game-text-button { display: inline-flex; gap: 9px; align-items: center; background: none; border: 0; padding: 2px 0; font-size: 13px !important; color: var(--gm-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; min-height: 32px; }
.gm-game-text-button:hover { color: var(--gm-mint); }
.gm-game-text-button:disabled { color: var(--gm-muted); text-decoration: none; }
.gm-game-small { color: var(--gm-muted); font-size: 12px; line-height: 1.65; margin-top: 16px !important; }
.gm-game-intro-board { padding: 16px 15px 0; }
.gm-game-mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; transform: rotate(-7deg); width: 100%; max-width: 354px; margin: 0 auto 44px; }
.gm-game-mini-board span { display: grid; place-items: center; aspect-ratio: 1; background: #202434; border: 1px solid #ffffff15; border-radius: 16px; color: #b2b3c3; font-size: 20px; box-shadow: 0 12px 25px #05060b20; }
.gm-game-mini-board span.lit { background: #b9a8ed; color: #202031; border: 2px solid #e7dcff; }
.gm-game-mini-board span.lit:nth-child(5) { background: var(--gm-mint); border-color: #e7fff5; }
.gm-game-practice { border-top: 1px solid #ffffff25; padding-top: 26px; max-width: 354px; margin: 0 auto; }
.gm-game-practice h2 { font-size: 19px; font-weight: 450; }
.gm-game-practice p { margin: 10px 0 14px; color: var(--gm-muted); font-size: 13px; line-height: 1.6; }
.gm-game-key-hint { border-top: 1px solid #ffffff17; margin-top: 57px; padding-top: 23px; font-size: 12px; color: var(--gm-muted); line-height: 2; }
.gm-game-key-hint kbd { font: inherit; border: 1px solid #ffffff35; padding: 2px 5px; border-radius: 3px; color: var(--gm-text); }
.gm-game-footer { padding: 24px max(5vw, 24px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff12; color: var(--gm-muted); font-size: 11px; }
.gm-game-playing { max-width: 440px; margin: 0 auto; }
.gm-game-play-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--gm-muted); font-size: 12px; }
.gm-game-round-progress { height: 2px; background: #ffffff18; margin-top: 15px; }
.gm-game-round-progress span { display: block; height: 100%; background: var(--gm-lavender); }
.gm-game-stage-heading { text-align: center; margin: 33px 0 26px; min-height: 77px; }
.gm-game-stage-heading h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 450; letter-spacing: -.025em; }
.gm-game-stage-subtitle { font-size: 13px; line-height: 1.6; color: var(--gm-muted); margin-top: 11px !important; }
.gm-game-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; width: min(100%, 364px); margin: 0 auto; }
.gm-game-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid #ffffff28; background: #222635; color: #d8d7e3 !important; border-radius: 14px; font-size: 24px !important; font-variant-numeric: tabular-nums; }
.gm-game-tile:not(:disabled):hover { background: #30354b; border-color: #c1b4ec; }
.gm-game-tile:not(:disabled):active { transform: scale(.97); }
.gm-game-tile:disabled { opacity: 1; }
.gm-game-tile.gm-game-tile-active, .gm-game-tile.gm-game-tile-active:hover { background: var(--gm-mint); color: #15261f !important; border: 3px solid #f1fff9; }
.gm-game-tile.gm-game-tile-active::after { content: ''; position: absolute; inset: 6px; border: 1px solid #234638; border-radius: 7px; }
.gm-game-response { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 56px; }
.gm-game-response-dots { display: flex; gap: 7px; }
.gm-game-response-dots i { display: block; width: 7px; height: 7px; border: 1px solid #c6c1da; border-radius: 50%; }
.gm-game-response-dots i.filled { background: var(--gm-mint); border-color: var(--gm-mint); }
.gm-game-entry-count { font-size: 11px; color: var(--gm-muted); font-variant-numeric: tabular-nums; }
.gm-game-time { width: min(100%, 364px); margin: 0 auto; text-align: center; }
.gm-game-time[hidden] { display: none; }
.gm-game-time-track { height: 3px; overflow: hidden; background: #ffffff1b; border-radius: 3px; }
.gm-game-time-track span { display: block; width: 100%; height: 100%; background: var(--gm-lavender); }
.gm-game-time-label { display: block; margin-top: 9px; color: var(--gm-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.gm-game-playing-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #ffffff1b; margin-top: 29px; padding-top: 15px; }
.gm-game-playing-bottom > span { color: var(--gm-muted); font-size: 11px; }
.gm-game-playing-bottom .gm-game-text-button { text-decoration: none; }
.gm-game-playing-bottom svg { width: 15px; height: 15px; }
.gm-game-feedback, .gm-game-pause { display: flex; align-items: center; text-align: center; flex-direction: column; max-width: 590px; margin: 60px auto 90px; }
.gm-game-feedback h1, .gm-game-pause h1 { font-size: clamp(30px, 5vw, 43px); line-height: 1.2; letter-spacing: -.03em; font-weight: 450; }
.gm-game-feedback > p, .gm-game-pause > p { color: var(--gm-muted); font-size: 15px; line-height: 1.8; margin-top: 20px; max-width: 48ch; }
.gm-game-feedback-symbol { display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid #ffffff35; border-radius: 50%; margin-bottom: 33px; color: var(--gm-lavender); }
.gm-game-feedback-symbol.correct { color: var(--gm-mint); }
.gm-game-feedback-symbol svg { width: 45px; height: 45px; fill: none; stroke: currentColor; stroke-width: 1.5px; }
.gm-game-pause-lines { display: flex; gap: 15px; height: 48px; margin-bottom: 38px; }
.gm-game-pause-lines i { width: 9px; height: 100%; border-radius: 3px; background: var(--gm-lavender); }
.gm-game-results { max-width: 690px; margin: 0 auto; }
.gm-game-result-status { color: var(--gm-lavender); font-size: 13px; margin-bottom: 17px !important; }
.gm-game-results h1 { font-size: clamp(35px, 5.4vw, 56px); font-weight: 450; letter-spacing: -.035em; line-height: 1.13; max-width: 18ch; text-wrap: balance; }
.gm-game-result-intro { color: var(--gm-muted); font-size: 14px; margin-top: 20px !important; }
.gm-game-result-numbers { display: grid; grid-template-columns: 1fr 1fr 1.2fr; margin: 36px 0; gap: 20px; border-block: 1px solid #ffffff25; padding: 26px 0; }
.gm-game-result-numbers dt { font-size: 12px; color: var(--gm-muted); margin-bottom: 10px; }
.gm-game-result-numbers dd { margin: 0; font-size: 42px; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--gm-mint); }
.gm-game-result-numbers dd span { font-size: 15px; letter-spacing: 0; color: var(--gm-muted); }
.gm-game-result-numbers .gm-game-result-lengths { font-size: 38px; }
.gm-game-trial-results { display: grid; gap: 0; }
.gm-game-trial-results > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ffffff10; font-size: 12px; color: var(--gm-muted); }
.gm-game-trial-results strong { font-weight: 450; color: var(--gm-text); }
.gm-game-result-note { font-size: 12px; color: var(--gm-muted); line-height: 1.8; margin-top: 22px !important; max-width: 70ch; }
.gm-game-result-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 30px; }
.gm-game-feedback .gm-game-result-actions, .gm-game-pause .gm-game-result-actions { justify-content: center; }
.gm-game-save { margin-top: 26px; }
.gm-game-save .gm-game-small { margin-top: 3px !important; }
.gm-game-save-message { color: var(--gm-mint); font-size: 12px; line-height: 1.8; margin-top: 12px !important; }
.gm-game-protocol { border-top: 1px solid #ffffff25; margin-top: 30px; padding-top: 20px; font-size: 12px; line-height: 1.8; color: var(--gm-muted); }
.gm-game-protocol summary { cursor: pointer; color: var(--gm-text); padding: 2px 0; }
.gm-game-protocol dl { margin: 20px 0; }
.gm-game-protocol dl div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 5px 0; }
.gm-game-protocol dd { margin: 0; color: var(--gm-text); overflow-wrap: anywhere; }
.gm-game-protocol > p { margin-top: 8px; font-size: 11px; }
.gm-game-sr { position: absolute; height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .gm-game-header { padding: 18px 22px; }
  .gm-game-brand { font-size: 21px; }
  .gm-game-content { padding: 35px 23px 32px; }
  .gm-game-intro { grid-template-columns: 1fr; gap: 37px; }
  .gm-game-intro h1 { font-size: 65px; }
  .gm-game-intro h1 br { display: none; }
  .gm-game-description { font-size: 15px; }
  .gm-game-intro-board { padding: 0; display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 28px; }
  .gm-game-mini-board { margin: 0; gap: 5px; }
  .gm-game-mini-board span { border-radius: 7px; font-size: 12px; }
  .gm-game-practice { padding: 0; border: 0; margin: 0; }
  .gm-game-practice h2 { font-size: 17px; }
  .gm-game-practice p { font-size: 12px; margin: 9px 0; }
  .gm-game-key-hint { margin-top: 32px; }
  .gm-game-footer { padding: 20px 23px; flex-direction: column; gap: 9px; }
  .gm-game-playing { max-width: 370px; }
  .gm-game-stage-heading { margin: 27px 0 18px; min-height: 75px; }
  .gm-game-board { gap: 10px; max-width: 330px; }
  .gm-game-tile { border-radius: 11px; font-size: 22px !important; }
  .gm-game-feedback, .gm-game-pause { margin-top: 58px; }
  .gm-game-result-numbers { gap: 13px; }
  .gm-game-result-numbers dt { font-size: 10px; }
  .gm-game-result-numbers dd, .gm-game-result-numbers .gm-game-result-lengths { font-size: 31px; }
  .gm-game-result-numbers dd span { font-size: 11px; }
  .gm-game-result-actions { gap: 12px; }
  .gm-game-result-actions .gm-game-button { flex-grow: 1; }
  .gm-game-protocol dl div { grid-template-columns: 95px 1fr; }
}
@media (max-width: 380px) {
  .gm-game-intro h1 { font-size: 54px; }
  .gm-game-intro-board { grid-template-columns: 105px 1fr; gap: 20px; }
  .gm-game-playing-bottom > span { max-width: 24ch; line-height: 1.6; }
}
@media (max-height: 780px) and (min-width: 701px) {
  .gm-game-content { padding-top: 34px; }
  .gm-game-board { max-width: 300px; }
  .gm-game-stage-heading { margin-top: 22px; margin-bottom: 15px; }
  .gm-game-intro h1 { font-size: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-game *, .gm-game *::before, .gm-game *::after { transition: none !important; scroll-behavior: auto !important; }
  .gm-game-button-primary:hover, .gm-game-tile:not(:disabled):active { transform: none; }
}
