:root {
  --ink: #17201c;
  --muted: #718078;
  --felt-deep: #0d3b27;
  --felt: #17633c;
  --felt-bright: #2f8a4f;
  --paper: #f7f7f0;
  --paper-soft: #e9ede4;
  --gold: #f1bf54;
  --wt-common-header-height: 72px;
  --gold-light: #ffe4a0;
  --orange: #ec7d36;
  --blue: #2f85dc;
  --red: #c74348;
  --purple: #783d96;
  --shadow: 0 22px 60px rgba(1, 15, 9, .38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--felt-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -15%, rgba(67, 145, 77, .54), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(4, 24, 16, .46), transparent 43%),
    linear-gradient(145deg, #0d3c27 0%, #155c39 53%, #0a3021 100%);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  min-height: calc(100vh - var(--wt-common-header-height));
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  filter: blur(2px);
}

.app-shell::before {
  top: 12rem;
  left: -18rem;
  background: rgba(79, 169, 89, .12);
}

.app-shell::after {
  right: -18rem;
  bottom: 4rem;
  background: rgba(239, 180, 66, .08);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1216px);
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(229, 241, 219, .16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(255, 228, 160, .52);
  border-radius: 12px;
  background: rgba(0, 0, 0, .17);
  font-size: 20px;
  transform: rotate(-7deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: #fff8dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .05em;
}

.brand-copy strong em,
.screen h1 span,
.game-heading-row h1 span {
  color: var(--gold);
  font-style: normal;
}

.brand-copy small {
  color: rgba(232, 244, 225, .66);
  font-size: 10px;
  letter-spacing: .12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.streak-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 13px;
  color: rgba(255, 243, 207, .88);
  border: 1px solid rgba(241, 191, 84, .3);
  border-radius: 999px;
  background: rgba(5, 32, 20, .35);
  font-size: 11px;
  letter-spacing: .07em;
}

.streak-chip strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.home-button,
.text-button {
  color: rgba(244, 250, 233, .87);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.home-button {
  padding: 9px 11px;
  border: 1px solid rgba(226, 244, 216, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .14);
}

.home-button span {
  margin-right: 3px;
  color: var(--gold-light);
  font-size: 16px;
}

.home-button:hover,
.text-button:hover {
  color: #fff;
}

.app-main {
  width: min(100% - 48px, 1216px);
  margin: 0 auto;
}

.screens {
  min-height: min(720px, calc(100vh - 188px - var(--wt-common-header-height)));
}

.screen {
  display: none;
  padding: 42px 0 66px;
}

.screen.is-active {
  display: block;
  animation: screen-in .38s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 12px 20px;
  color: #fffaf0;
  border: 1px solid transparent;
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(4, 20, 12, .18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(4, 20, 12, .26);
}

.button:active {
  transform: translateY(1px) scale(.985);
}

.button-primary {
  border-color: rgba(255, 223, 141, .36);
  background: linear-gradient(135deg, #f09d3d, #d85b32);
}

.button-secondary {
  border-color: rgba(255, 228, 160, .44);
  background: linear-gradient(135deg, rgba(116, 62, 148, .96), rgba(73, 47, 119, .98));
}

.button-large {
  width: min(100%, 272px);
  min-height: 59px;
  font-size: 15px;
}

.button-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  font-size: 10px;
}

/* Title screen */
.screen-title {
  min-height: min(720px, calc(100vh - 188px - var(--wt-common-header-height)));
}

.title-stage {
  position: relative;
  display: grid;
  min-height: min(650px, calc(100vh - 230px - var(--wt-common-header-height)));
  padding: 68px 24px 50px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(239, 247, 218, .18);
  border-radius: 30px;
  background:
    linear-gradient(130deg, rgba(255,255,255,.05), transparent 45%),
    radial-gradient(circle at 50% 28%, rgba(248, 208, 103, .21), transparent 33%),
    rgba(4, 29, 18, .33);
  box-shadow: var(--shadow);
  text-align: center;
}

.title-stage::before,
.title-stage::after {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(226, 244, 186, .08);
  border-radius: 50%;
  content: "";
}

.title-stage::before { transform: translate(-62%, -18%); }
.title-stage::after { transform: translate(62%, -18%); }

.title-cards {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 300px;
  height: 190px;
  transform: translateX(-50%);
}

.title-playing-card {
  position: absolute;
  display: grid;
  width: 112px;
  height: 154px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 19px 30px rgba(0, 0, 0, .3);
}

.title-playing-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-playing-card-left,
.title-card-left { left: 30px; transform: rotate(-17deg); }
.title-card-right { right: 30px; transform: rotate(17deg); }

.title-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  width: 148px;
  height: 148px;
  margin-top: 35px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(255, 228, 160, .6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 194, 81, .2), rgba(9, 58, 34, .75) 67%);
  box-shadow: 0 0 0 12px rgba(242, 190, 78, .04), 0 0 55px rgba(242, 190, 78, .17);
}

.emblem-ring {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 228, 160, .55);
  border-radius: 50%;
}

.emblem-suits {
  margin-top: -20px;
  color: rgba(255, 239, 183, .85);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 4px;
}

.emblem-arrow {
  margin-top: -32px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: .8;
}

.title-kicker {
  position: relative;
  z-index: 1;
  margin: 20px 0 5px;
  color: rgba(255, 228, 160, .75);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3em;
}

.title-stage h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff6cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: .96;
  text-shadow: 0 4px 0 rgba(71, 41, 12, .22), 0 14px 31px rgba(0, 0, 0, .25);
}

.title-stage h1 span {
  font-size: .78em;
}

.title-lead {
  position: relative;
  z-index: 1;
  margin: 14px 0 23px;
  color: rgba(247, 249, 224, .8);
  font-size: 14px;
  letter-spacing: .08em;
}

.title-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100%, 570px);
}

.title-note {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  color: rgba(234, 246, 215, .53);
  font-size: 11px;
  letter-spacing: .08em;
}

/* How-to screen */
.howto-layout {
  width: min(100%, 980px);
  margin: 0 auto;
}

.section-topline,
.game-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-topline h1,
.game-heading-row h1 {
  margin: 0;
  color: #fff8dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: .01em;
}

.howto-card {
  padding: clamp(24px, 4vw, 50px);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.53);
  border-radius: 28px;
  background: rgba(247, 248, 239, .95);
  box-shadow: var(--shadow);
}

.howto-intro {
  max-width: 680px;
  margin: 0 auto 30px;
  color: #38423d;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

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

.howto-step {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 13px;
  padding: 21px;
  border: 1px solid #dfe5d9;
  border-radius: 17px;
  background: #fffef9;
}

.step-number {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.howto-step h2 {
  margin: 0 0 7px;
  color: #1c3027;
  font-size: 15px;
}

.howto-step p,
.strength-copy {
  margin: 0;
  color: #5c665f;
  font-size: 12px;
  line-height: 1.75;
}

.strength-panel {
  display: grid;
  grid-template-columns: minmax(180px, .78fr) 1.7fr;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 20px 22px;
  border-radius: 17px;
  background: #edf1e7;
}

.panel-label {
  margin: 0 0 6px;
  color: #2c6341;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
}

.strength-order {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #29352e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.strength-order span,
.strength-order strong {
  display: grid;
  min-width: 25px;
  height: 29px;
  padding: 0 3px;
  place-items: center;
  border-radius: 7px;
  background: #fffef7;
}

.strength-order strong {
  color: #fff;
  background: var(--orange);
}

.strength-order i {
  color: #9ba79e;
  font-style: normal;
}

.howto-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #76511e;
  font-size: 12px;
  font-weight: 700;
}

.howto-note span {
  color: var(--orange);
  font-size: 19px;
}

/* Game screen */
.screen-game {
  padding-top: 32px;
}

.game-layout {
  position: relative;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.game-heading-row {
  align-items: center;
  margin-bottom: 17px;
}

.game-heading-row h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.game-score-card {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: baseline;
  min-width: 126px;
  padding: 8px 15px 9px;
  border: 1px solid rgba(255, 228, 160, .31);
  border-radius: 15px;
  background: rgba(5, 33, 20, .43);
  text-align: right;
}

.game-score-card span {
  color: rgba(255, 236, 184, .73);
  font-size: 11px;
}

.game-score-card strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.game-score-card small {
  grid-column: 1 / -1;
  color: rgba(222, 240, 214, .42);
  font-size: 8px;
  letter-spacing: .14em;
}

.tracker-panel {
  padding: 16px 18px 12px;
  border: 1px solid rgba(226, 244, 214, .28);
  border-radius: 17px;
  background: rgba(244, 249, 232, .95);
  box-shadow: 0 16px 34px rgba(1, 18, 10, .2);
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.tracker-header .panel-label {
  margin-bottom: 3px;
}

.tracker-caption {
  margin: 0;
  color: #738078;
  font-size: 10px;
}

.tracker-header > strong {
  color: #365b42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.tracker-grid {
  display: grid;
  gap: 3px;
}

.tracker-row {
  display: grid;
  grid-template-columns: 25px repeat(13, minmax(0, 1fr)) 25px;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid #d7ded3;
  border-radius: 5px;
  background: #fffef8;
}

.tracker-row > * {
  display: grid;
  min-width: 0;
  place-items: center;
  border-right: 1px solid #e4e9df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.tracker-row > *:last-child {
  border-right: 0;
}

.tracker-suit {
  font-size: 16px !important;
}

.tracker-suit.is-red,
.tracker-value.is-red {
  color: var(--red);
}

.tracker-suit.is-black,
.tracker-value.is-black {
  color: #25302a;
}

.tracker-value {
  position: relative;
  color: #4f5c54;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.tracker-value.is-used {
  color: #b0b7ad !important;
  background: #dfe4db;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.tracker-value.is-active {
  color: #4d3a19 !important;
  background: #ffeba9;
  box-shadow: inset 0 0 0 2px rgba(242, 184, 54, .55);
}

.tracker-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 9px;
  color: #65716a;
  font-size: 9px;
}

.tracker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #fffef8;
  box-shadow: inset 0 0 0 1px #bcc8bc;
}

.legend-active { background: #ffeba9; box-shadow: inset 0 0 0 1px #dda63f; }
.legend-used { background: #dfe4db; box-shadow: inset 0 0 0 1px #c2ccc0; }

.game-table {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 365px;
  margin-top: 14px;
  padding: 29px clamp(20px, 7vw, 100px) 25px;
  overflow: hidden;
  border: 1px solid rgba(204, 241, 172, .2);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(53, 190, 232, .82) 0 50%, rgba(81, 237, 14, .84) 50% 100%),
    #2b9c49;
  box-shadow: inset 0 0 0 6px rgba(5, 58, 25, .13), 0 17px 35px rgba(1, 22, 10, .22);
}

.game-table::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 15px;
  pointer-events: none;
  content: "";
}

.table-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  opacity: .15;
  pointer-events: none;
  filter: blur(22px);
}

.table-glow-left { left: -90px; bottom: -150px; background: #fff; }
.table-glow-right { right: -90px; top: -160px; background: #ffdc3d; }

.table-card-slot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
}

.slot-label {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .11em;
  text-shadow: 0 2px 4px rgba(0,0,0,.28);
}

.slot-note {
  color: rgba(255,255,255,.82);
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.24);
}

.opponent-slot .playing-card {
  box-shadow: 0 0 0 7px rgba(255, 232, 123, .27), 0 20px 28px rgba(0, 0, 0, .3);
}

.vs-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 20px;
  place-items: center;
  color: #fff8d8;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(35, 64, 39, .36);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.vs-mark::before,
.vs-mark::after {
  position: absolute;
  top: 50%;
  width: 43px;
  height: 1px;
  background: rgba(255,255,255,.44);
  content: "";
}

.vs-mark::before { right: 100%; }
.vs-mark::after { left: 100%; }

.playing-card {
  position: relative;
  width: clamp(118px, 15vw, 166px);
  aspect-ratio: .69;
  transform: translateZ(0);
  transition: transform .35s ease;
}

.playing-card.is-revealed {
  animation: reveal-card .45s ease both;
}

@keyframes reveal-card {
  0% { transform: rotateY(0) scale(.94); }
  65% { transform: rotateY(14deg) scale(1.04); }
  100% { transform: rotateY(0) scale(1); }
}

.card-face,
.card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
}

.playing-card.is-hidden .card-face {
  display: none;
}

.playing-card:not(.is-hidden) .card-back {
  display: none;
}

.card-face {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.card-image,
.card-back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 25px rgba(0, 0, 0, .28);
}

.card-back {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.card-back::before {
  display: none;
}

.game-prompt {
  min-height: 28px;
  margin: 17px 0 11px;
  color: #fff5c9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.guess-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 670px);
  margin: 0 auto;
}

.guess-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 18px;
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 11px 24px rgba(1, 20, 10, .3);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.guess-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.guess-button:active { transform: translateY(1px); }
.guess-button:disabled { cursor: not-allowed; filter: grayscale(.45); opacity: .68; }

.guess-low { background: linear-gradient(135deg, #2375e1, #1551ae); }
.guess-high { background: linear-gradient(135deg, #f6942e, #e55b21); }

.guess-arrow {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.guess-button > span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.guess-button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: .07em;
}

.guess-button small {
  font-size: 10px;
  font-weight: 700;
  opacity: .83;
}

.guess-center-mark {
  display: grid;
  width: 49px;
  height: 49px;
  margin: auto;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(255, 228, 160, .48);
  border-radius: 50%;
  background: rgba(4, 28, 18, .32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.screen-round-result {
  min-height: min(720px, calc(100vh - 188px - var(--wt-common-header-height)));
  padding-top: 45px;
}

.round-result-stage {
  position: relative;
  display: grid;
  min-height: min(600px, calc(100vh - 270px - var(--wt-common-header-height)));
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 226, 153, .44), transparent 24%),
    linear-gradient(145deg, #6b2b73, #312b62 58%, #173c3a);
  box-shadow: var(--shadow);
}

.round-result-stage::before,
.round-result-stage::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
}

.round-result-stage::before { left: -180px; bottom: -210px; }
.round-result-stage::after { right: -180px; top: -210px; }

.round-result-decoration {
  position: absolute;
  z-index: 1;
  color: rgba(255, 241, 184, .22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(120px, 23vw, 270px);
  line-height: 1;
  transform: rotate(-15deg);
}

.decoration-left { left: 4%; bottom: 5%; }
.decoration-right { right: 4%; top: 2%; color: rgba(255, 170, 186, .18); transform: rotate(15deg); }

.round-result-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 40px), 540px);
  justify-items: center;
  padding: 40px 28px 36px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: rgba(247, 248, 240, .97);
  box-shadow: 0 22px 55px rgba(0, 12, 7, .36);
  text-align: center;
  animation: result-in .28s ease both;
}

@keyframes result-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

.result-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 14px;
  color: #fff;
  border-radius: 999px;
  background: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.result-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 15px;
  width: min(100%, 330px);
  margin: 20px 0 4px;
}

.result-card-slot {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #69756c;
  font-size: 10px;
  font-weight: 800;
}

.result-card-slot .playing-card {
  width: 92px;
}

.result-vs {
  padding-bottom: 42px;
  color: #876b9d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

.round-result-card.is-draw .result-ribbon { background: var(--purple); }
.round-result-card.is-lose .result-ribbon { background: var(--red); }

.result-selected {
  margin: 14px 0 3px;
  color: #69756c;
  font-size: 12px;
}

.round-result-card h1 {
  margin: 0;
  color: #256b3e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.round-result-card.is-draw h1 { color: var(--purple); }
.round-result-card.is-lose h1 { color: var(--red); }

.result-detail {
  margin: 13px 0 18px;
  color: #566259;
  font-size: 13px;
}

.result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* Final screen */
.screen-final {
  min-height: min(720px, calc(100vh - 188px - var(--wt-common-header-height)));
  padding-top: 45px;
}

.final-stage {
  position: relative;
  display: grid;
  min-height: min(600px, calc(100vh - 270px - var(--wt-common-header-height)));
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 219, 159, .4), transparent 27%),
    linear-gradient(180deg, #5a171d, #2f161c 72%, #211418);
  box-shadow: var(--shadow);
}

.final-stage.is-clear {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 234, 157, .45), transparent 29%),
    linear-gradient(180deg, #3c6e38, #173e2c 72%, #112d23);
}

.curtain {
  position: absolute;
  top: -8%;
  z-index: 1;
  width: 30%;
  height: 116%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 16px, rgba(255,255,255,.05) 17px 25px, transparent 26px 37px),
    linear-gradient(90deg, #5f141d, #a12630 38%, #4b1219);
  box-shadow: 0 0 30px rgba(0,0,0,.28);
}

.curtain-left {
  left: -15%;
  border-radius: 0 50% 48% 0 / 0 40% 57% 0;
  transform: rotate(7deg);
}

.curtain-right {
  right: -15%;
  border-radius: 50% 0 0 48% / 40% 0 0 57%;
  transform: rotate(-7deg);
}

.is-clear .curtain {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 16px, rgba(255,255,255,.05) 17px 25px, transparent 26px 37px),
    linear-gradient(90deg, #174a2d, #277548 38%, #123c27);
}

.final-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 40px), 540px);
  justify-items: center;
  padding: 38px 28px 34px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: rgba(250, 250, 245, .94);
  box-shadow: 0 20px 42px rgba(0,0,0,.34);
  text-align: center;
}

.final-card .eyebrow {
  margin-bottom: 7px;
  color: #6a766f;
}

.final-status {
  margin-bottom: 9px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 0 2px 0 rgba(138, 37, 44, .1);
}

.is-clear .final-status { color: #2c7e45; }

.final-card h1 {
  margin: 0;
  color: #202c26;
  font-size: 22px;
}

.final-record {
  margin: 20px 0 7px;
  color: #3b4840;
  font-size: 14px;
  font-weight: 700;
}

.final-record strong {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.final-message {
  margin: 0 0 22px;
  color: #718078;
  font-size: 12px;
}

.final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* Site content and footer */
.usage-guide {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 42px;
  align-items: start;
  width: min(100%, 920px);
  margin: 0 auto 52px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(228, 244, 216, .15);
}

.usage-guide h2 {
  margin: 0;
  color: #fff8dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.usage-guide > p {
  margin: 0;
  color: rgba(229, 242, 219, .68);
  font-size: 12px;
  line-height: 1.9;
}

.site-footer {
  color: #bdccc0;
  background: rgba(7, 24, 17, .58);
  font-size: 11px;
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 48px, 920px);
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 0;
}

.footer-copy,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #dce9dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: #fff;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(330px, calc(100% - 40px));
  padding: 12px 16px;
  color: #fff8dd;
  border: 1px solid rgba(255, 228, 160, .44);
  border-radius: 12px;
  background: rgba(26, 39, 29, .94);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  :root { --wt-common-header-height: 60px; }

  .site-header,
  .app-main {
    width: min(100% - 28px, 600px);
  }

  .site-header {
    min-height: 66px;
  }

  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 8px; }
  .brand-mark { width: 31px; height: 31px; font-size: 17px; }
  .header-actions { gap: 7px; }
  .streak-chip { padding: 5px 9px; font-size: 9px; }
  .streak-chip strong { font-size: 16px; }
  .home-button { padding: 7px 8px; font-size: 10px; }

  .screen { padding-top: 27px; padding-bottom: 42px; }
  .screens, .screen-title, .screen-final { min-height: 0; }

  .title-stage {
    min-height: 610px;
    padding: 56px 16px 40px;
    border-radius: 22px;
  }

  .title-cards { top: 26px; transform: translateX(-50%) scale(.79); }
  .title-emblem { width: 112px; height: 112px; margin-top: 32px; }
  .emblem-suits { font-size: 15px; letter-spacing: 2px; }
  .emblem-arrow { font-size: 41px; }
  .title-kicker { margin-top: 16px; font-size: 8px; }
  .title-lead { font-size: 12px; }
  .title-actions { gap: 9px; }
  .button-large { width: 100%; min-height: 52px; }

  .section-topline,
  .game-heading-row { align-items: start; }
  .section-topline h1 { font-size: 35px; }
  .text-button { padding: 5px 0; font-size: 10px; white-space: nowrap; }

  .howto-card { padding: 22px 16px; border-radius: 21px; }
  .howto-intro { margin-bottom: 22px; font-size: 13px; text-align: left; }
  .howto-grid { grid-template-columns: 1fr; gap: 9px; }
  .howto-step { padding: 15px; }
  .strength-panel { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .strength-order { justify-content: flex-start; gap: 3px; font-size: 13px; }
  .strength-order span, .strength-order strong { min-width: 21px; height: 25px; }

  .screen-game { padding-top: 24px; }
  .game-heading-row { margin-bottom: 14px; }
  .game-heading-row h1 { font-size: 35px; }
  .game-score-card { min-width: 94px; padding: 6px 10px; }
  .game-score-card strong { font-size: 24px; }
  .game-score-card small { font-size: 7px; }

  .tracker-panel { padding: 12px 9px 9px; border-radius: 13px; }
  .tracker-caption { font-size: 9px; }
  .tracker-header > strong { font-size: 16px; }
  .tracker-row { grid-template-columns: 20px repeat(13, minmax(0, 1fr)) 20px; min-height: 24px; }
  .tracker-row > * { font-size: 11px; }
  .tracker-suit { font-size: 13px !important; }
  .tracker-legend { justify-content: flex-start; gap: 8px; font-size: 8px; }

  .game-table {
    min-height: 290px;
    padding: 22px 7px 17px;
    border-radius: 17px;
  }

  .game-table::after { inset: 8px; border-radius: 11px; }
  .slot-label { font-size: 10px; }
  .slot-note { font-size: 8px; }
  .playing-card { width: clamp(101px, 29vw, 130px); }
  .card-face { padding: 0; border: 0; border-radius: 8px; }
  .card-image, .card-back img { border-radius: 8px; }
  .card-back { padding: 0; border: 0; border-radius: 8px; }
  .vs-mark { width: 38px; height: 38px; margin: 0 4px; font-size: 11px; }
  .vs-mark::before, .vs-mark::after { width: 12px; }
  .game-prompt { min-height: 24px; margin: 13px 0 9px; font-size: 11px; }
  .guess-actions { grid-template-columns: 1fr 34px 1fr; gap: 7px; }
  .guess-button { min-height: 61px; gap: 6px; padding: 9px 7px; border-radius: 13px; }
  .guess-arrow { font-size: 21px; }
  .guess-button strong { font-size: 18px; }
  .guess-button small { font-size: 8px; }
  .guess-center-mark { width: 33px; height: 33px; font-size: 17px; }
  .screen-round-result { min-height: 0; }
  .round-result-stage { min-height: 570px; border-radius: 21px; }
  .round-result-card { width: calc(100% - 28px); padding: 30px 18px 26px; border-radius: 18px; }
  .result-cards { gap: 8px; margin-top: 16px; }
  .result-card-slot .playing-card { width: 78px; }
  .result-selected { font-size: 10px; }
  .result-detail { font-size: 11px; }
  .result-actions .button { min-height: 42px; padding: 9px 13px; font-size: 11px; }

  .final-stage { min-height: 570px; border-radius: 21px; }
  .final-card { width: calc(100% - 28px); padding: 30px 18px 26px; border-radius: 18px; }
  .final-card h1 { font-size: 20px; }
  .final-record { font-size: 12px; }
  .final-record strong { font-size: 34px; }
  .final-actions .button { min-height: 43px; padding: 10px 14px; font-size: 11px; }

  .usage-guide { grid-template-columns: 1fr; gap: 12px; margin-bottom: 34px; padding-top: 18px; }
  .usage-guide h2 { font-size: 16px; }
  .usage-guide > p { font-size: 11px; }

  .site-footer .footer-inner { width: min(100% - 28px, 600px); align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-copy, .footer-links { flex-wrap: wrap; gap: 6px 14px; }
}

@media (max-width: 410px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14px; }
  .home-button { font-size: 0; }
  .home-button span { margin: 0; font-size: 17px; }
  .title-stage h1 { font-size: 44px; }
  .tracker-row { grid-template-columns: 18px repeat(13, minmax(0, 1fr)) 18px; }
  .tracker-row > * { font-size: 10px; }
  .tracker-suit { font-size: 12px !important; }
  .playing-card { width: 96px; }
  .slot-label { font-size: 9px; }
  .slot-note { font-size: 7px; }
  .vs-mark { margin: 0 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
