@charset "UTF-8";
:root {
  color-scheme: light;
  --page: #fff0f3;
  --card: #fff;
  --pink: #ffafc5;
  --pink-soft: #ffe0e8;
  --ink: #5a3b48;
  --accent: #b83761;
  --shadow: 0 8px 25px rgb(83 43 56 / 8%);
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --title: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: 20px; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:focus-visible { outline-offset: -4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.skip { position: fixed; top: -100px; z-index: 5; padding: 12px; background: white; color: var(--accent); }
.skip:focus { top: 8px; left: 8px; }
.home { width: 100%; max-width: 480px; min-height: 100svh; margin: 0 auto; padding-top: 12px; }
.content-width { width: 90%; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.brand img { width: 28px; height: 28px; object-fit: contain; background: white; border-radius: 6px; }
.brand h1 { font-size: 16px; font-weight: 700; }
.hero { overflow: hidden; border-radius: 20px; background: #fff0ec; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero-banner { width: 100%; height: auto; }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.promo { aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.promo-contact { display: block; padding: 0; border: 0; background: #ffe8ec; color: #a03958; text-align: left; transition: transform .18s ease; }
.promo-contact:hover { transform: translateY(-1px); }
.contact-illustration { width: 100%; height: 100%; object-fit: cover; }
.contact-title { position: absolute; top: 50%; left: 12%; transform: translateY(-50%); font: 800 clamp(20px, 5.6vw, 26px)/1.3 var(--sans); letter-spacing: .06em; }
.promo h2 { font: 700 clamp(18px, 5vw, 23px)/1.4 var(--sans); }
.promo-vip { background: var(--pink-soft); }
.promo-vip h2 { position: relative; text-align: center; z-index: 1; color: var(--accent); padding-top: 9px; }
.promo-vip > img { position: absolute; width: 35%; height: 70%; bottom: 0; object-fit: contain; }
.vip-left { left: 0; }
.vip-right { right: 0; }
.vip-crown { position: absolute; width: 30px; height: 30px; bottom: 14px; left: calc(50% - 15px); color: #be6280; }
.category { border: 3px solid white; background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.category h2 { font-size: 16px; }
.category-toggle { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 44px; border: 0; padding: 10px 38px; background: var(--pink); color: #633344; font-weight: 700; line-height: 1.35; }
.category-toggle > svg { position: absolute; width: 22px; height: 22px; left: 12px; top: calc(50% - 11px); }
.category-toggle .plus-stroke { display: none; }
.category-toggle[aria-expanded="false"] .plus-stroke { display: block; }
.category-items { list-style: none; padding: 0 8px 16px; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 16px; }
.game-item { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding-top: 15px; }
.game-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); background: white; }
.game-item span { text-align: center; font-size: 14px; font-weight: 600; line-height: 1.45; max-width: 110px; overflow-wrap: anywhere; }
.club-art { overflow: hidden; border-radius: 20px; background: #ffdde1; box-shadow: var(--shadow); margin-top: 24px; margin-bottom: 20px; border: 3px solid #ffe2e7; }
.club-art-heading { text-align: center; padding: 18px 12px 8px; }
.club-art-heading > span { display: inline-block; font-size: 14px; padding: 2px 24px; border: 1px solid #e7a2af; border-radius: 30px; background: #fff3f3; color: #ac4562; }
.club-art-heading h2 { font: 600 clamp(28px, 8vw, 36px)/1.6 var(--title); color: #a43852; }
.club-art > img { width: 100%; height: auto; }
.club-art > p { text-align: center; padding: 14px 16px; font-size: 14px; font-weight: 600; color: #884052; }
.club-art > p span { padding-inline: 14px; color: #bc7b8d; }
.site-footer { margin-top: 28px; background: #ffbed0; color: var(--ink); text-align: center; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-intro { display: grid; gap: 16px; padding: 34px 24px 26px; font-weight: 600; }
.footer-contacts { display: grid; gap: 20px; padding: 20px 7.5%; border-top: 1px solid #fff0f3; }
.footer-contact { display: grid; gap: 4px; padding: 18px 16px; border: 1px solid #fff; border-radius: 12px; background: #ffdce5; }
.footer-contact strong { font-size: 17px; font-weight: 700; user-select: text; }
.footer-end { display: grid; gap: 8px; padding: 32px 24px max(26px, env(safe-area-inset-bottom)); border-top: 1px solid #fff0f3; color: #785060; }
.footer-end [data-footer="credit"] { user-select: text; }
.icp-link { width: fit-content; margin: 4px auto 0; color: #785060; font-size: 13px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .18s ease, text-decoration-color .18s ease; }
.icp-link:hover { color: #8d2e50; text-decoration-color: currentColor; }
@media (max-width: 370px) {
  .game-item img { width: 72px; height: 72px; }
  .game-item span { font-size: 14px; }
  .category-items { column-gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#contact-dialog { width: min(400px, calc(100% - 40px)); padding: 24px; border: 1px solid #f5c5cf; border-radius: 22px; background: #fff9fb; color: var(--ink); box-shadow: 0 24px 90px rgb(83 43 56 / 18%); }
#contact-dialog::backdrop { background: rgb(61 33 44 / 32%); }
body:has(#contact-dialog[open]) { overflow: hidden; }
.contact-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.contact-head h2 { font-size: 22px; }
#contact-close { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 50%; }
#contact-close svg { width: 22px; height: 22px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid #f1dce3; }
.contact-row span { display: block; font-size: 14px; color: #805768; }
.contact-row strong { display: block; font-size: 17px; margin-top: 4px; user-select: text; }
.contact-row button { min-height: 44px; padding: 8px 14px; border: 1px solid #eab7c8; border-radius: 12px; background: #ffe8ef; color: var(--accent); flex-shrink: 0; }
#copy-status { font-size: 14px; min-height: 21px; color: var(--accent); }
.join-float { position:fixed; z-index:4; right:max(8px,calc((100vw - 480px)/2 - 16px)); top:46%; min-width:44px; min-height:112px; padding:16px 12px; border:1px solid #ffc4d5; border-radius:28px; background:#ffb2ca; color:#762a46; font-size:15px; font-weight:700; line-height:20px; letter-spacing:2px; writing-mode:vertical-rl; box-shadow:0 8px 24px rgb(123 53 78 / 16%); }
body:has(dialog[open]) .join-float { visibility:hidden; }
#join-dialog { width:min(380px,calc(100% - 32px)); max-height:90dvh; overflow:auto; padding:16px; border:1px solid #f5c5cf; border-radius:20px; background:#fff; color:var(--ink); box-shadow:0 24px 90px rgb(83 43 56 / 18%); }
#join-dialog::backdrop { background:rgb(61 33 44 / 32%); }
.join-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.join-head h2 { font-size:20px; }
#join-close { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; padding:10px; border:0; border-radius:50%; background:#fff1f5; }
#join-close svg { width:22px; height:22px; }
#join-original { display:block; }
#join-qr { width:100%; height:auto; }
#join-error { padding:28px 8px; text-align:center; font-size:14px; }
#join-retry { display:block; margin:0 auto 12px; padding:10px 20px; border:1px solid #eab7c8; border-radius:12px; background:#ffe8ef; }
@media (prefers-reduced-motion: reduce) { .promo-contact { transition: none; } }
/* CMS-driven galleries. */
a { color:inherit; text-decoration:none; }
.game-link { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; border-radius:12px; }
.game-item { gap:0; }
.promo-vip > .vip-custom { position:static; width:100%; height:100%; object-fit:cover; }
.load-status,.gallery-empty { text-align:center; color:#805768; padding:48px 16px; }
.retry { display:block; margin:0 auto 24px; border:1px solid #eab7c8; background:#fff; border-radius:12px; padding:10px 28px; }
.detail { max-width:480px; margin:auto; min-height:100svh; }
.detail-head { position:sticky; top:0; display:flex; align-items:center; gap:8px; min-height:64px; background:#fff5f8; border-bottom:1px solid #f1dce3; padding:8px 12px; z-index:2; }
.detail-head h1 { flex:1; font-size:18px; outline:none; }
.detail-head button { min-height:44px; padding:8px; border:0; background:transparent; border-radius:10px; white-space:nowrap; font-size:14px; }
.detail-head svg { width:24px; height:24px; }
.detail-images { padding:16px 12px 32px; display:grid; gap:16px; }
.detail-categories { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:14px 12px 0; padding:16px 12px; border-radius:18px; background:#fff; }
.detail-category { max-width:100%; min-height:44px; padding:8px 17px; border:1px solid #f3e6eb; border-radius:24px; background:#fff; box-shadow:0 4px 14px rgb(83 43 56 / 7%); font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.detail-category[aria-pressed="true"] { border-color:#dc628c; background:#ffe0ea; color:#8d2e50; }
.detail-image { display:block; width:100%; padding:0; border:0; background:#fff; border-radius:12px; overflow:hidden; }
.detail-image img { width:100%; height:auto; }
.image-error { display:block; padding:40px 12px; color:#805768; }
#image-viewer { width:min(1100px,calc(100% - 20px)); height:94dvh; max-height:94dvh; border:1px solid #f1dce3; border-radius:16px; padding:0; background:#fff9fb; color:var(--ink); }
#image-viewer[open] { display:flex; flex-direction:column; }
#image-viewer::backdrop { background:rgb(30 15 22 / 72%); }
body:has(dialog[open]) { overflow:hidden; }
.viewer-head,.viewer-controls { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:8px 12px; flex-shrink:0; }
.viewer-controls { border-top:1px solid #f1dce3; }
.viewer-controls button,.viewer-head button { min-height:44px; min-width:40px; padding:8px; border:0; border-radius:10px; background:#ffe8ef; font-size:14px; }
.viewer-controls button:disabled { opacity:.4; cursor:default; }
.viewer-canvas { overflow:auto; flex:1; min-height:0; background:#fff; }
#viewer-image { max-width:none; height:auto; }
#zoom-level { font-size:13px; min-width:36px; text-align:center; }
