:root {
  color-scheme: light;
  --background: #f6f5f1;
  --surface: #ffffff;
  --text: #242529;
  --muted: #6b6c73;
  --subtle: #818188;
  --sage: #515c91;
  --line: #e5e4df;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 650px; background: radial-gradient(ellipse at 75% 8%, #515c9105, transparent 60%); pointer-events: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
::selection { background: #515c9124; color: var(--text); }
.page-shell { width: min(1120px, 100%); margin: 0 auto; padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left)); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 12px 20px; border-radius: 6px; color: var(--background); background: var(--sage); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 108px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); animation: none; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 35px; height: 35px; fill: var(--sage); }
.brand-mark rect:nth-child(2), .brand-mark rect:nth-child(3) { fill: #969db9; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-title { font-size: 17px; font-weight: 600; letter-spacing: .1em; }
.brand-subtitle { font-size: 8px; letter-spacing: .2em; color: var(--muted); }
.identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.identity-copy { display: flex; flex-direction: column; text-align: right; gap: 5px; min-width: 0; }
.identity-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.4; font-weight: 500; }
.identity-status { font-size: 10px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.avatar { position: relative; display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border: 1px solid #d8dce9; border-radius: 50%; background: #eef0f8; color: var(--sage); font-size: 13px; }
.avatar img { position: absolute; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.identity-dot { position: absolute; right: -1px; bottom: 0; width: 9px; height: 9px; border: 2px solid var(--background); background: #a5a5aa; border-radius: 50%; }
.identity[data-state="verified"] .identity-dot { background: #515c91; }
.identity[data-state="verifying"] .identity-dot { background: #8188a7; animation: breathe 1.6s ease infinite; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 68px 0 63px; }
.intro-copy { animation: none; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--sage); font-size: 11px; letter-spacing: .15em; }
.eyebrow > span { width: 18px; height: 1px; background: var(--sage); }
h1 { margin: 0; font-size: clamp(38px, 4.6vw, 56px); font-weight: 500; line-height: 1.4; letter-spacing: -.035em; }
h1 > span { color: var(--sage); }
.intro-description { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.95; letter-spacing: .035em; }
.intro-note { display: flex; align-items: center; gap: 8px; margin: 25px 0 0; font-size: 10px; color: var(--subtle); letter-spacing: .055em; }
.little-star { font-size: 16px; color: #68739d; }
.intro-art { position: relative; max-width: 420px; width: 100%; justify-self: end; padding: 2px 0 20px; animation: none; }
.intro-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art-orbit { stroke: #d8dae2; stroke-width: 1; }
.art-orbit-inner { stroke: #e5e4df; stroke-dasharray: 2 6; }
.art-hairline { stroke: #d1d5e2; stroke-width: 1; }
.hero-card-back { fill: #e4e7f1; stroke: #c0c6dc; stroke-width: 1.2; }
.hero-card-inset { stroke: #c0c6dc; stroke-width: 1; }
.hero-card-pattern { stroke: #a0a9c9; stroke-width: 1; }
.hero-card-front { fill: #ffffff; stroke: #d9dce5; stroke-width: 1; }
.hero-card-rule { stroke: #8791b3; stroke-width: 1; }
.hero-card-suit { fill: #515c91; }
.hero-card-small-suit { fill: #8791b3; }
.art-sage-dot { fill: #a0a9c9; }
.art-small-dot { fill: #8791b3; }
.art-star { fill: #a0a9c9; }
.art-caption { display: block; margin: -6px 0 0 67px; text-align: center; font-size: 8px; letter-spacing: .23em; color: var(--subtle); }
.games-section { scroll-margin-top: 24px; outline: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; animation: none; }
.section-heading-main { display: flex; align-items: center; gap: 14px; }
.section-index { font-size: 10px; color: var(--subtle); letter-spacing: .08em; }
h2 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: .07em; }
.section-heading > p { margin: 0; font-size: 11px; color: var(--subtle); letter-spacing: .04em; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.game-card { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; position: relative; display: block; width: 100%; padding: 0; text-align: left; color: var(--text); background: var(--surface); border: 1px solid #e5e4df; border-radius: 18px; box-shadow: 0 3px 16px #25252904; overflow: hidden; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; animation: none; }
.game-card[href] { text-decoration: none; }
.status-available { color: #515c91; background: #eef0f8; border-color: #d8dce9; }
.game-card:nth-child(2) { animation-delay: 220ms; }
.game-card:nth-child(3) { animation-delay: 270ms; }
.game-card:nth-child(4) { animation-delay: 320ms; }
.game-card:nth-child(5) { animation-delay: 370ms; }
.game-card:nth-child(6) { animation-delay: 420ms; }
.game-mahjong { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; }
.game-sheep { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; }
.game-goose { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; }
.game-match { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; }
.game-poker { --ink: #68739d; --paper: #ffffff; --art-bg: #f1f0ec; }
.card-visual { position: relative; height: 150px; margin: 8px 8px 0; overflow: hidden; border-radius: 7px; background: var(--art-bg); }
.card-number { position: absolute; top: 14px; left: 16px; font-size: 9px; color: var(--ink); opacity: .64; letter-spacing: .06em; }
.card-visual svg { display: block; width: 100%; height: 100%; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 400ms cubic-bezier(.2,.65,.3,1); }
.drawing-fill { fill: var(--art-bg); stroke: var(--ink); }
.drawing-paper { fill: var(--paper); stroke: var(--ink); }
.drawing-line { stroke: var(--ink); }
.drawing-paper ~ .drawing-line { stroke: #515c91; }
.drawing-strong { stroke-width: 2; }
.drawing-accent-fill { fill: var(--ink); }
.drawing-paper ~ .drawing-accent-fill { fill: #515c91; }
.illustration-baseline { stroke: var(--ink); opacity: .18; }
.illustration-spark { stroke: var(--ink); stroke-width: 1; opacity: .65; }
.card-copy { padding: 21px 22px 14px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 500; letter-spacing: .035em; }
.status-badge { flex-shrink: 0; padding: 4px 7px; border: 1px solid #d8dce9; border-radius: 4px; color: #68739d; font-size: 9px; line-height: 1.2; letter-spacing: .04em; background: #eef0f8; }
.card-copy > p { margin: 10px 0 21px; color: var(--muted); font-size: 11px; line-height: 1.6; letter-spacing: .015em; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; color: #818188; }
.card-bottom > span:first-child { font-size: 8px; letter-spacing: .14em; }
.card-plus { font-size: 17px; font-weight: 300; line-height: 1; transition: transform 220ms ease; }
.game-card:active { transform: scale(.985); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 51px; padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--subtle); }
.site-footer p { margin: 0; font-size: 11px; letter-spacing: .04em; }
.site-footer p > span { display: inline-block; vertical-align: middle; margin-right: 8px; color: #68739d; font-size: 17px; }
.site-footer > span { font-size: 8px; letter-spacing: .17em; }
.toast { position: fixed; z-index: 20; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); width: max-content; padding: 14px 21px; border: 1px solid #d8dce9; border-radius: 10px; color: #3f496d; background: #eef0f8; box-shadow: 0 8px 35px #2525290d; font-size: 12px; line-height: 1.6; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.toast.is-visible { opacity: 1; animation: toast-enter 200ms ease both; }
.toast-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.noscript-note { padding: 0 24px 24px; color: var(--muted); text-align: center; font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { border-color: #b9c0d8; background: #fafaff; }
  .game-card:hover .card-visual svg { transform: translateY(-1px); }
  .game-card:hover .card-plus { color: var(--sage); }
  .game-card:active { transform: translateY(-1px) scale(.99); }
}
@media (min-width: 1200px) { .page-shell { padding-right: 16px; padding-left: 16px; } }
@media (max-width: 800px) {
  .page-shell { padding-right: max(24px, env(safe-area-inset-right)); padding-left: max(24px, env(safe-area-inset-left)); }
  .intro { padding: 52px 0 50px; gap: 12px; }
  h1 { font-size: 43px; }
  .game-grid { gap: 16px; }
  .card-copy { padding: 18px 16px 13px; }
  h3 { font-size: 16px; }
  .card-heading { flex-wrap: wrap; }
  .card-visual { height: 133px; }
}
@media (max-width: 650px) {
  .site-header { min-height: 87px; gap: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { gap: 10px; }
  .brand-title { font-size: 15px; }
  .brand-subtitle { font-size: 7px; }
  .identity { gap: 10px; }
  .identity-name { max-width: 125px; font-size: 12px; }
  .identity-status { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
  .avatar { width: 33px; height: 33px; font-size: 11px; }
  .intro { position: relative; display: block; padding: 44px 0 40px; }
  .intro-copy { position: relative; z-index: 1; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; }
  h1 { font-size: 39px; line-height: 1.45; }
  .intro-description { margin-top: 18px; font-size: 12px; }
  .intro-note { margin-top: 20px; font-size: 9px; }
  .intro-art { position: absolute; right: -17px; top: 56px; width: 230px; opacity: .65; }
  .art-caption { display: none; }
  .section-heading { margin-bottom: 18px; gap: 10px; }
  .section-heading-main { gap: 10px; }
  h2 { font-size: 15px; }
  .section-heading > p { font-size: 10px; }
  .section-index { font-size: 9px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .game-card { border-radius: 10px; }
  .card-visual { height: 123px; margin: 6px 6px 0; border-radius: 5px; }
  .card-number { top: 11px; left: 11px; font-size: 8px; }
  .card-heading { row-gap: 8px; }
  .card-copy { padding: 16px 14px 12px; }
  h3 { width: 100%; font-size: 16px; }
  .status-badge { font-size: 8px; padding: 3px 6px; }
  .card-copy > p { min-height: 32px; margin: 10px 0 13px; font-size: 10px; line-height: 1.7; }
  .card-bottom { padding-top: 9px; }
  .card-bottom > span:first-child { font-size: 7px; letter-spacing: .12em; }
  .card-plus { font-size: 16px; }
  .site-footer { margin-top: 33px; padding-top: 23px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); gap: 16px; }
  .site-footer p { font-size: 10px; }
  .site-footer > span { font-size: 7px; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .page-shell { padding-right: max(20px, env(safe-area-inset-right)); padding-left: max(20px, env(safe-area-inset-left)); }
  .intro-art { width: 200px; right: -17px; top: 75px; opacity: .48; }
  .intro-description, .intro-note { position: relative; z-index: 1; }
  .intro { padding-top: 36px; }
  h1 { font-size: 36px; }
  .intro-art svg { clip-path: inset(0 10px 0 0); }
  .game-grid { gap: 12px; }
  .card-visual { height: 105px; }
  .card-copy { padding-right: 12px; padding-left: 12px; }
  .identity-status { max-width: 111px; }
  .identity-name { max-width: 100px; }
}
@media (max-width: 340px) {
  .page-shell { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .brand-subtitle { letter-spacing: .12em; }
  .identity { gap: 7px; }
  .identity-status { max-width: 95px; font-size: 8px; }
  .brand-title { font-size: 14px; }
  h1 { font-size: 33px; }
  .intro-art { right: -9px; width: 175px; top: 80px; opacity: .36; }
  .section-heading > p { font-size: 9px; letter-spacing: 0; }
  h2 { font-size: 14px; }
  .card-visual { height: 95px; }
  h3 { font-size: 14px; }
  .card-copy { padding: 14px 10px 10px; }
  .card-copy > p { font-size: 9px; }
  .site-footer > span { display: none; }
}
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-enter { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes breathe { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
