:root{--ink:#252331;--accent:#493566;--wash:#f0eaf6;--peach:#f2dfcd;--spot-mauve:#dacfe9;--spot-coral:#fae9e3;--line:#dfdce2}*{box-sizing:border-box}body{margin:0;background:white;color:var(--ink);font:16px/1.5 "Segoe UI",Arial,sans-serif}header{border-bottom:1px solid var(--line)}nav,main{max-width:1024px;margin:auto;padding:18px clamp(14px,4vw,44px)}nav,.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wordmark{font: bold 30px Georgia,serif;text-decoration:none;letter-spacing:-1px}.wordmark small{font:11px "Segoe UI",sans-serif;letter-spacing:.12em;margin-left:10px}.hero{background:var(--wash);isolation:isolate;position:relative;overflow:hidden;padding:clamp(22px,5vw,54px);border-radius:24px;margin:10px 0 24px}.hero:after{content:"";position:absolute;background:var(--peach);width:32%;height:130%;right:-14%;bottom:-50%;border-radius:63% 37% 30% 70% / 48% 34% 66% 52%;transform:rotate(24deg);z-index:-1}.hero:before{content:"";position:absolute;width:100px;height:84px;top:-68px;left:46%;background:var(--spot-mauve);border-radius:31% 69% 58% 42%;z-index:-1}h1,h2,h3{line-height:1.16;overflow-wrap:anywhere}h1{font:normal clamp(28px,5vw,48px)/1.1 Georgia,serif;margin:.3em 0}h2{margin-top:1.6em}a{color:var(--accent)}button,.primary{display:inline-block;border:0;border-radius:10px;background:var(--accent);color:white;font:inherit;padding:10px 15px;min-height:44px;text-decoration:none;cursor:pointer}.quiet{background:var(--wash);color:var(--ink)}main{padding-bottom:6rem}article,.panel,details,aside{border:1px solid var(--line);border-radius:16px;padding:18px;margin:12px 0;min-width:0;overflow-wrap:anywhere}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}.row{justify-content:flex-start}.panel{max-width:680px}label,legend{display:block;font-weight:600}input,textarea,select{max-width:100%;min-width:0;width:100%;border:1px solid #a39cac;border-radius:8px;padding:10px;font:inherit;background:white;color:var(--ink)}input[type=checkbox]{width:auto;min-height:20px}fieldset{min-width:0;margin:15px 0;border:0;padding:0}.notice,aside{background:var(--wash);padding:12px}.errorlist{color:#9c253b}summary{cursor:pointer;font-weight:600;padding:4px}button{margin:4px 0}textarea{resize:vertical}:focus-visible{outline:3px solid #8f60b0;outline-offset:2px}
/* Invite forms and queue */
.hero { background: #fff; border: 1px solid var(--line); }
.hero::before { width: 190px; height: 130px; top: -118px; left: 69%; rotate: -16deg; }
.hero::after { width: 128px; height: 210px; right: -99px; bottom: -112px; rotate: -19deg; }
.person { margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.person legend { padding: 0 6px; }
.queue-card { margin: 0; background: var(--wash); }
.queue-card:nth-child(3n+2) { background: var(--spot-coral); }
.queue-card a { display: inline-flex; align-items: center; min-height: 44px; }
.test-code { font-size: 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: .15em; }
.schedule-preview { display: block; margin: 10px 0; white-space: pre-line; }
button:disabled { opacity: .55; cursor: default; }
input[type="date"], input[type="datetime-local"], input[type="time"] { min-height: 44px; }
@media (max-width: 420px) { .panel, article, details { padding: 14px; } }
.event-hero { --event-spot: var(--spot-mauve); --event-accent: var(--peach); }
.theme-sport { --event-spot: #cfe6df; --event-accent: #c3d0eb; }
.theme-class { --event-spot: #f2d8cf; --event-accent: #e5d1ef; }
.theme-supply { --event-spot: #e3e8c6; --event-accent: #eacac6; }
.theme-market { --event-spot: #d1e4dd; --event-accent: #f5d5a9; }
.event-hero::before { background: var(--event-spot); width: 230px; top: -100px; left: 72%; }
.event-hero::after { background: var(--event-accent); width: 176px; bottom: -142px; right: -90px; }
.event-kicker { color: var(--accent); font-weight: 600; }
.event-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.event-fields input, .event-fields select { display: block; }
.event-card h2 { margin-top: .45em; }
.event-qr { display: block; max-width: 100%; height: auto; }
.protocol-list li { padding: 8px; overflow-wrap: anywhere; }
.judging-grid [hidden] { display: none; }
.judging-grid input[name="value"] { font-size: 1.25rem; }
.judge-shortcut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border-radius: 8px; }
.listing-photo { display: block; width: 100%; max-height: 350px; aspect-ratio: 4 / 3; object-fit: contain; background: var(--wash); border-radius: 12px; }
.booking-message { overflow-wrap: anywhere; white-space: pre-wrap; }
[data-quick-phrases] { margin-block: .75rem; }
[data-booking-send] input[type="file"] { display: block; max-width: 100%; }
[hidden] { display: none !important; }
footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1rem 0; }

:root {
  --room-lilac: #d9d1ef;
  --room-coral: #f6d4ca;
  --room-olive: #e5e8cf;
  --room-focus: #291d3e;
}
.room-hero::before {
  width: clamp(130px,28vw,330px); height: clamp(90px,20vw,220px); top: -38%; left: auto; right: -5%;
  background: var(--room-lilac); border-radius: 72% 28% 57% 43% / 29% 57% 43% 71%; rotate: 19deg;
}
.room-hero::after {
  width: clamp(108px,19vw,250px); height: clamp(100px,21vw,255px); right: 7%; bottom: -72%;
  background: var(--room-coral); border-radius: 34% 66% 31% 69% / 63% 37% 76% 24%; rotate: -31deg;
}
.room-hero > p, .room-hero > h1 { max-width: 38rem; }
.room-kicker { margin: 0 0 .8rem; color: var(--accent); }
.home-hero h1 { font-size: clamp(3.3rem,11vw,7rem); letter-spacing: -.057em; }
.home-hero h1 small {
  display: block; font: 600 clamp(.78rem,2vw,1rem)/1.4 "Segoe UI",sans-serif; letter-spacing: .18em;
  margin: .3em 0 1.2em .35em;
}
.home-hero::before { right: -2%; top: -21%; width: clamp(140px,33%,340px); }
.home-hero::after { right: 17%; bottom: -47%; }
.room-nav { padding: 0 0 .8rem; gap: .4rem; justify-content: flex-start; border-bottom: 1px solid var(--line); }
.room-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: .55em .8em; border-radius: .72rem; }
.room-nav a[aria-current] { background: var(--room-focus); color: white; }
.room-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.room-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .8rem; }
.room-card { display: block; margin: 0 0 1rem; }
.room-card h3, .room-list h3 { margin: .25em 0 .55em; }
.room-card-progress { background: var(--room-olive); }
.room-score { font: normal 3rem/1.2 Georgia,serif; margin-bottom: .5rem; }
.room-score small { font-size: .54em; }
.room-status { color: var(--accent); font-weight: 600; }
.room-list article { margin-block: .5rem; }
.language-picker{display:flex;gap:.25rem;justify-content:flex-end;flex-wrap:wrap;margin-bottom:.65rem}
.language-picker [aria-pressed=true]{text-decoration:underline;font-weight:700}
.auth-panel{max-width:38rem;overflow-wrap:anywhere}
.auth-panel input,.auth-panel select{width:min(100%,28rem)}

.site-nav .wordmark { display: inline-flex; align-items: center; gap: .55em; }
.site-nav .wordmark img { display: block; flex: none; width: 38px; height: 38px; }
.site-nav .wordmark small { display: block; margin: .12em 0 0; font-size: .33em; }
.site-sections { align-items: stretch; gap: .2em .9em; }
.site-sections a { display: inline-flex; align-items: center; min-height: 44px; }
.site-signout { max-width: 100%; }
.site-signout button { overflow-wrap: anywhere; }
.mobile-tabs { display: none; }
.service-hero { display: grid; background: #fbf8fd; }
.service-hero::before { top: -74px; left: auto; right: -34px; width: 215px; height: 156px; }
.service-hero::after { width: 140px; height: 150px; right: -32px; bottom: -93px; background: #f3d9cd; }
.service-hero > div { min-width: 0; max-width: 42rem; }
.service-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem; margin-top: .35rem; }
.service-search button { margin: 0; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0 0 .4rem; }
.service-card h2, .home-actions h2 { margin: .4rem 0 .55rem; }
.service-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .7rem; }
.service-card > .primary { margin-top: auto; }
.service-category { color: var(--accent); font-size: .88rem; font-weight: 650; }
.service-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin: .7rem 0 1rem; }
.service-meta strong { color: var(--room-focus); font-size: 1.35rem; }
.service-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,125px),1fr)); gap: .55rem; }
.service-stats > div { padding: .7rem; background: var(--wash); border-radius: 10px; }
.service-stats dd { margin: 0; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.catalog-form input[type="file"] { width: 100%; }
#my-bookings { scroll-margin-top: 1rem; }
html[lang^="zh"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif; }
html[lang^="zh"] h1 { font-family: inherit; font-weight: 650; }
html[lang^="zh"] .wordmark { font-family: Georgia,serif; }
@media(max-width: 640px) {
  .site-nav { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem .6rem; padding-top: .7rem; padding-bottom: 0; }
  .site-sections { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0 .45rem; font-size: .89rem; }
  .site-nav .desktop-services { display: none; }
  .site-signout { grid-row: 1; grid-column: 2; }
  .site-signout button { max-width: 12rem; font-size: .77rem; }
  .mobile-tabs {
    position: fixed; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); bottom: 0; left: 0; right: 0;
    max-width: none; gap: .2rem; z-index: 4; background: #fff; border-top: 1px solid var(--line);
    padding: .3rem max(.45rem,env(safe-area-inset-right)) calc(.3rem + env(safe-area-inset-bottom)) max(.45rem,env(safe-area-inset-left));
  }
  .mobile-tabs a { display: grid; place-items: center; min-height: 44px; font-size: .78rem; padding: .2rem; text-align: center; text-decoration: none; overflow-wrap: anywhere; border-radius: 8px; }
  .mobile-tabs a:hover, .mobile-tabs a[aria-current] { background: var(--wash); }
  main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .language-picker { justify-content: flex-start; }
}
