:root {
  color-scheme: light;
  --page: #f1f4ef;
  --page-gutter: 5px;
  --radius: 3px;
  --surface: #fff;
  --ink: #193b2c;
  --muted: #3c6545;
  --green: #246642;
  --button-bg: #d9efc5;
  --button-ink: #205c32;
  --button-line: #a9ce8c;
  --button-hover: #c9e6af;
  --line: #dfe6dc;
  --soft: #edf7df;
  --error: #a53c32;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #76a56a; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
p { font-size: 13px; line-height: 1.65; color: var(--muted); }
strong { font-size: 14px; font-weight: 600; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-shell { --header-height: 58px; --footer-height: calc(100px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100vh - 24px); height: calc(100dvh - 24px); width: calc(100% - 2 * var(--page-gutter)); max-width: 560px; margin: 12px auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 24px #254e3510; }
.site-header { grid-area: 1 / 1; align-self: start; position: relative; z-index: 3; height: var(--header-height); padding: 0 var(--page-gutter); display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; box-shadow: none; }
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.4px; }
.brand img { display: block; width: 32px; height: 32px; object-fit: contain; }
.brand-owl { color: var(--green); font-weight: 700; }
.brand-group { display: flex; align-items: center; gap: 3px; margin-left: -6px; }
.account-entry { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 6px; border: 0; background: transparent; color: var(--green); border-radius: var(--radius); }
.account-entry img, .account-symbol { position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; display: block; }
.account-symbol { color: #b88632; opacity: 0; }
.account-avatar { stroke: #d9b363; }
.account-entry[data-state="signed-in"] .account-symbol { color: var(--green); }
.account-entry[data-state="signed-in"] .account-symbol-bg { fill: var(--green); }
.account-entry[data-state="signed-in"] .account-avatar { stroke: #d9b363; }
.account-entry[data-state="signed-in"] .account-login-key { display: none; }
.account-entry[data-state="signed-out"] .account-logo { animation: account-logo-cycle 6s infinite; }
.account-entry[data-state="signed-out"] .account-symbol { animation: account-symbol-cycle 6s infinite; }
.account-entry[data-state="signed-in"] .account-logo { opacity: 0; }
.account-entry[data-state="signed-in"] .account-symbol { opacity: 1; }
.account-entry.paused > * { animation-play-state: paused !important; }
@keyframes account-logo-cycle { 0%,43%,100% {opacity:1} 50%,93% {opacity:0} }
@keyframes account-symbol-cycle { 0%,43%,100% {opacity:0} 50%,93% {opacity:1} }
.account-dialog { box-sizing: border-box; width: min(360px, calc(100vw - 24px)); min-height: min(480px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.account-dialog::backdrop { background: #16362666; }
.account-dialog h2 { font-size: 21px; }
.account-form, .account-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.account-form label { margin-bottom: 6px; }
.account-dialog .primary, .account-dialog .secondary { display: flex; width: 100%; align-items: center; gap: 10px; padding-inline: 14px; }
.account-dialog .account-action-label { flex: 1; min-width: 0; text-align: left; }
.account-dialog .account-action-arrow { order: 3; flex-shrink: 0; margin-left: auto; }
.account-dialog .retry-countdown { order: 2; }
.account-dialog .feedback { margin-top: 12px; }
.account-switches { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 6px; }
.account-text-button { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--green); text-decoration: underline; font-size: 13px; }
#account-summary > p { margin-top: 10px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .account-entry[data-state="signed-out"] .account-logo,
  .account-entry[data-state="signed-out"] .account-symbol { animation: none; }
  .account-entry[data-state="signed-out"] .account-logo { opacity: 0; }
  .account-entry[data-state="signed-out"] .account-symbol { opacity: 1; }
}
.header-note { flex: 1; min-width: 0; max-width: 55%; margin-left: 8px; container-type: inline-size; text-align: right; font-size: 11px; line-height: 1.5; white-space: nowrap; color: #73846f; }
.header-note > span { font-size: min(11px, 5.2cqi); }
.deck { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow-y: hidden; display: flex; align-items: stretch; gap: 12px; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 0; overflow-anchor: none; }
.deck::-webkit-scrollbar { display: none; }
.feature { height: 100%; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #cbd8c5 transparent; flex: 0 0 100%; min-width: 0; padding: calc(var(--header-height) + 12px) var(--page-gutter) calc(var(--footer-height) + 12px); scroll-padding-top: calc(var(--header-height) + 14px); scroll-padding-bottom: calc(var(--footer-height) + 14px); display: flex; flex-direction: column; gap: 10px; border: 0; border-radius: 0; background: transparent; scroll-snap-align: start; }
.feature > * { flex-shrink: 0; }
.eyebrow { display: flex; justify-content: space-between; gap: 12px; color: #426349; font-size: 12px; letter-spacing: .3px; }
.eyebrow > span:first-child { display: flex; gap: 6px; align-items: center; }
.count { color: #73836f; font-size: 11px; }
.intro h1, .intro h2 { font-size: 28px; line-height: 1.32; letter-spacing: -1px; font-weight: 600; margin-bottom: 4px; }
.intro-brand-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.intro-brand-heading > h1, .intro-brand-heading > h2 { min-width: 0; margin-bottom: 0; }
.intro-brandmark { display: block; width: 72px; height: 72px; flex: 0 0 auto; object-fit: contain; opacity: .13; pointer-events: none; user-select: none; }
.draw .intro-brandmark { width: 56px; height: 56px; }
.intro-mascot-watermark { height: 77px; }
.draw .intro-mascot-watermark { height: 60px; }
.intro-points { display: grid; gap: 6px; }
.intro-slogan { margin-bottom: 10px; }
.intro-points p { margin: 0; }
.intro-points strong { color: var(--ink); font-weight: 600; }
.ticket { min-height: 86px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; padding: 10px 15px; border-radius: var(--radius); background: var(--soft); }
.ticket::after { content: ""; position: absolute; width: 112px; height: 112px; border: 1px solid #d3dfb8; border-radius: 50%; right: -32px; top: 5px; box-shadow: 0 0 0 17px #e3edce, 0 0 0 18px #d3dfb8; pointer-events: none; }
.ticket > div { position: relative; z-index: 1; }
.ticket-label, .ticket-side { color: #53713d; font-size: 12px; }
.ticket-side { line-height: 1.8; }
.ticket-side > span { display: block; }
.ticket-value { margin-top: 2px; font-size: 42px; line-height: 1.25; font-weight: 500; letter-spacing: -2px; }
.ticket-value > span { font-size: 18px; letter-spacing: 0; }
.entry, .local-panel { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; width: 100%; margin: 0; min-width: 0; }
.action-zone { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 2px; }
label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; }
label > span { font-size: 12px; color: var(--muted); font-weight: 400; }
input, textarea { text-align: left; width: 100%; min-width: 0; border: 1px solid #dce4dc; border-radius: var(--radius); padding: 10px 12px; background: var(--surface); color: var(--ink); font-size: 16px; }
input { min-height: 44px; }
input:focus, textarea:focus { border-width: 1px; border-color: #76a56a; outline: none; box-shadow: none; }
input::placeholder, textarea::placeholder { text-align: left; font-size: 13px; color: #798a76; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; line-height: 1.7; }
.primary, .secondary { min-height: 46px; padding: 11px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; text-decoration: none; }
.primary { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--button-line); width: 100%; background: var(--button-bg); color: var(--button-ink); font-weight: 600; }
.primary:hover:not(:disabled) { background: var(--button-hover); }
.secondary { display: inline-flex; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; border: 1px solid #b7d79d; background: #e8f4da; color: #205c32; font-weight: 600; }
.secondary:hover:not(:disabled) { background: #d9edc6; }
#referral-verify { display: flex; width: 100%; justify-content: space-between; padding-inline: 14px; }
#referral-verify > span[aria-hidden="true"] { margin-left: auto; flex-shrink: 0; }
.feedback { min-height: 20px; font-size: 12px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.feedback:empty { min-height: 0; }
.feedback.error { color: var(--error); }
.feedback.success { color: var(--green); }
.feature-rules { border-top: 1px solid #edf0ea; padding-top: 6px; font-size: 12px; color: var(--muted); }
.feature-rules > summary { min-height: 44px; align-content: center; }
.feature-rules > p { margin-top: 6px; }
.share-guide { border: 0; background: transparent; }
.share-guide summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0; gap: 10px; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.share-guide .expand-label { font-size: 12px; font-weight: 400; color: var(--muted); }
.share-guide summary::-webkit-details-marker { display: none; }
.share-guide[open] .expand-label { font-size: 0; }
.share-guide[open] .expand-label::after { content: "收起 ↑"; font-size: 12px; }
.guide-content { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid #c2dba9; border-radius: var(--radius); background: var(--soft); }
.marker-guide { margin: 0; gap: 6px; }
.marker-guide > div { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; font-size: 12px; }
#share-link { min-height: 96px; }
.status-badge { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; }
.status-badge[data-state="pending"] { color: #856421; }
.status-badge[data-state="passed"] { color: var(--green); }
.draw-outcome, .claim-result { padding: 13px; border-radius: var(--radius); background: var(--soft); color: var(--green); }
.draw-outcome.neutral { background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.draw-outcome > strong { font-size: 18px; }
.draw-outcome p { margin-top: 5px; color: inherit; }
.draw-outcome output { display: block; margin-top: 8px; padding: 10px; background: white; border-radius: var(--radius); overflow-wrap: anywhere; user-select: all; }
.reward { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--soft); border-radius: var(--radius); color: #4b6849; font-size: 12px; }
.reward-value { font-size: 46px; line-height: 1.1; color: var(--ink); letter-spacing: -3px; }
.reward-value > span { font-size: 18px; margin-left: 8px; letter-spacing: 0; }
.invite-stats { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #e8ede3; font-size: 12px; color: var(--muted); }
.invite-stats strong { display: block; margin-top: 3px; font-size: 16px; color: #35513a; font-variant-numeric: tabular-nums; }
.invite-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; font-size: 12px; }
.invite-code-row output { flex: 1; overflow-wrap: anywhere; font-size: 16px; letter-spacing: 1px; }
.local-tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: var(--radius); }
.local-tabs button { min-height: 44px; flex: 1; border: 0; padding: 8px 6px; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 13px; }
.local-tabs button[aria-selected="true"] { background: white; color: #245e3c; box-shadow: 0 2px 5px #2741250c; }
.local-panel { padding-top: 4px; }
.claim-panels { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; }
.claim-method { grid-area: 1 / 1; display: flex; flex-direction: column; width: 100%; min-width: 0; }
.claim-method[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.claim-offer { min-height: 96px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 12px; text-align: left; border-radius: var(--radius); background: var(--soft); }
.claim-offer .icon { width: 25px; height: 25px; color: #5e824d; }
.query-result { position: relative; isolation: isolate; overflow: hidden; min-height: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.query-result::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 64px; height: 69px; top: 10px; right: 12px; background: url("assets/owl-mascot.svg") center / contain no-repeat; opacity: .13; }
.query-result::after { content: ""; position: absolute; top: 18px; left: 0; width: 3px; height: 24px; background: #7d9c73; border-radius: 0 2px 2px 0; pointer-events: none; }
.query-result > span { display: block; padding: 0; background: transparent; font-size: 12px; letter-spacing: .3px; color: var(--muted); }
.query-result > #query-status { margin-top: 4px; }
.query-result[data-state="active"] > span { color: var(--green); }
.query-result > strong { display: block; font-size: 28px; line-height: 1.4; letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--green); margin-top: 6px; }
dl { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
dl > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.7; }
dt { color: var(--muted); }
dd { margin: 0; color: #3e593d; overflow-wrap: anywhere; }
.query-result ul { padding-left: 18px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.query-result li { margin-top: 6px; overflow-wrap: anywhere; }
.query-result ul { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.query-result:not([data-state="active"]) > strong { color: var(--muted); }
.query-updated { margin-top: 10px; font-size: 11px; }
.claim-result { display: flex; flex-direction: column; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.claim-result output { display: block; user-select: all; background: white; padding: 10px; border-radius: var(--radius); color: var(--ink); }
.service-icon { display: flex; padding: 8px; background: var(--soft); border-radius: var(--radius); }
.watermark-comparison { min-width: 0; margin: 14px 0 18px; }
.watermark-comparison > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 44px; padding: 8px 0; list-style: none; border: 0; border-radius: 0; background: transparent; }
.watermark-comparison > summary::-webkit-details-marker { display: none; }
.watermark-comparison[open] > summary { min-height: 32px; padding-block: 4px; }
.watermark-heading { display: contents; }
.watermark-heading strong { display: block; min-width: 0; grid-column: 1; grid-row: 1; color: var(--ink); }
.watermark-heading small { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.watermark-toggle { grid-column: 2; grid-row: 1; white-space: nowrap; color: var(--muted); font-size: 12px; }
.watermark-collapse, .watermark-comparison[open] .watermark-expand { display: none; }
.watermark-comparison[open] .watermark-collapse { display: inline; }
.watermark-content { min-width: 0; padding: 4px 0 0; }
.watermark-content > p { font-size: 12px; }
.watermark-content strong { font-size: inherit; }
.watermark-table-wrap { max-width: 100%; margin-top: 12px; overflow-x: auto; }
.watermark-table { width: 100%; min-width: 360px; table-layout: fixed; border-collapse: collapse; font-size: 12px; line-height: 1.75; color: var(--muted); }
.watermark-table caption { padding: 8px; text-align: left; font-size: 11px; }
.watermark-label-col { width: 20%; }
.watermark-table th, .watermark-table td { padding: 11px 8px; vertical-align: top; text-align: left; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.watermark-table th { color: var(--ink); font-weight: 600; }
.watermark-table thead { background: var(--soft); }
.watermark-table thead span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.watermark-table tbody th { background: #f7faf3; }
.watermark-table tbody tr:last-child > * { border-bottom: 0; }
.watermark-content > .watermark-note { margin-top: 10px; font-size: 11px; line-height: 1.6; }
.usage-comparison { margin: 0; }
.usage-comparison[open] > summary .watermark-heading small { display: none; }
.usage-comparison .watermark-table-wrap { margin-top: 4px; }
.services .service-region-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.services .service-region-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.services .service-region-heading > span { color: var(--muted); font-size: 11px; }
.services .service-option { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0e9; color: var(--ink); text-decoration: none; }
.services .service-icon { align-self: start; }
.services .service-option-copy { min-width: 0; flex: 1; }
.services .service-option strong { display: block; font-size: 14px; }
.services .service-option small { display: block; margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.services .service-route-caption, .services .service-inline-link { font-size: 12px; color: var(--green); text-decoration: none; }
.services [data-link-state] { margin-left: 4px; white-space: nowrap; font-size: 11px; }
.services .service-route[aria-disabled="true"] { cursor: default; }
.services .service-route[aria-disabled="true"] [data-link-state] { color: var(--muted); }
.services .service-purchase-note { margin-top: 7px; padding-left: 41px; font-size: 11px; line-height: 1.5; }
.bottom-nav { display: flex; justify-content: space-between; gap: 3px; margin: 0 var(--page-gutter); padding: 10px 0 6px; overflow-anchor: none; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 7px 2px; border-radius: var(--radius); text-decoration: none; color: #193b2c; font-size: 12px; font-weight: 600; }
.bottom-nav a.active { background: #e2ebda; color: #194e30; }
.bottom-nav .icon { stroke-width: 2; }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); display: flex; justify-content: space-between; margin: 4px var(--page-gutter) 14px; font-size: 11px; color: #426349; }
.site-footer { align-items: flex-end; gap: 12px; }
.site-footer > span:first-child { flex: 1; min-width: 0; container-type: inline-size; line-height: 1.5; white-space: nowrap; }
.site-footer > span:first-child > span { font-size: min(11px, 3.6cqi); }
.site-footer > #page-count { flex-shrink: 0; white-space: nowrap; }
dialog { width: min(430px, calc(100% - 24px)); max-height: 85dvh; margin: auto; padding: 0; border: 1px solid #d9e3d4; border-radius: var(--radius); background: white; color: var(--ink); box-shadow: 0 22px 65px #16382340; overscroll-behavior: contain; }
dialog::backdrop { background: #10291c70; }
.service-detail { padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.dialog-close { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: 24px; line-height: 1; font-weight: 400; }
.dialog-close:hover:not(:disabled) { background: transparent; }
.connection-guide .connection-action { width: 100%; justify-content: space-between; }
.connection-guide .connection-action > span[aria-hidden="true"] { margin-left: auto; flex-shrink: 0; }
.service-detail > h2 { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
.service-detail dl { margin: 20px 0; gap: 12px; }
.service-detail .feedback { min-height: 0; margin-top: 12px; }
.consult-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.contact-link { text-align: center; }
.next-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#experience-dialog .service-detail > p { margin-bottom: 14px; }
.noscript { margin: 10px var(--page-gutter); }
@media (min-width: 768px) {
  .site-shell { margin-block: 24px; height: min(880px, calc(100vh - 48px)); height: min(880px, calc(100dvh - 48px)); }
  .site-shell { --header-height: 68px; }
  .feature { flex-basis: 100%; padding: calc(var(--header-height) + 16px) var(--page-gutter) calc(var(--footer-height) + 16px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.template-types { display: flex; gap: 4px; padding: 3px; background: var(--soft); border-radius: var(--radius); }
.template-types button { flex: 1; min-width: 0; min-height: 44px; padding: 6px 3px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 12px; }
.template-types button[aria-pressed="true"] { background: #d9efc5; color: #205c32; font-weight: 600; }
#share-copy { height: 164px; min-height: 164px; resize: none; font-size: 13px; }
#template-note { font-size: 11px; }
.template-actions { display: flex; gap: 8px; }
.template-actions > button { flex: 1; }
#copy-feedback { min-height: 20px; }

.step-title { margin: 0; font-size: 13px; font-weight: 600; line-height: normal; }

#share-form > .action-zone { margin-top: 0; padding-top: 0; }
.claim-result-area { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.claim-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.claim-result-heading h3 { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 600; }
.claim-result-heading > button { flex-shrink: 0; min-height: 36px; padding: 6px 0 6px 8px; font-size: 12px; }
.claim-result-area > .feedback { margin: 4px 0 0; font-size: 12px; }
.claim-result-area > .feedback:empty { display: none; }
.claim-result-area > .draw-outcome { margin-top: 8px; }

.draw-outcome output { display: block; margin-top: 10px; overflow-wrap: anywhere; user-select: all; }
.draw-outcome .credential-copy { margin-top: 10px; width: 100%; }
.credential-copy-feedback:empty { display: none; }

.invitation-history { height: auto; flex: 0 0 auto; border-top: 1px solid var(--line); padding-top: 6px; }
.invitation-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invitation-history h3 { margin: 0; font-size: 13px; font-weight: 600; }
.history-refresh { border: 0; background: transparent; color: var(--green); min-height: 44px; padding: 6px 10px; font-size: 12px; }
#invite-history { list-style: none; margin: 0; padding: 0; height: auto; max-height: 168px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#invite-history:empty { display: none; }
#invite-history-empty { padding: 10px 0; font-size: 12px; }
#invite-history li { padding: 10px 0; border-bottom: 1px solid #edf0e9; }
#invite-history li > div { display: flex; justify-content: space-between; gap: 8px; }
#invite-history strong { font-size: 12px; }
#invite-history li span, #invite-history p { font-size: 12px; color: var(--green); }
#invite-history time { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }

.query-result ul:not(:empty) { padding-top: 10px; border-top: 1px solid #edf0e9; }

.credential-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.credential-actions p { width: 100%; }
.mcp-endpoint { overflow-wrap: anywhere; padding: 10px; background: var(--soft); border-radius: var(--radius); user-select: all; }
.history-note { font-size: 11px; }
/* Desktop garden sits behind the application and never intercepts its controls. */
.owl-garden, .owl-flight { display: none; }
@media (min-width: 1100px) {
  .site-shell { position: relative; z-index: 2; }
  .owl-garden { display: block; position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
  .garden-orbit { position: absolute; width: 176px; height: 214px; border: 1px dashed #dce5d4; border-radius: 50%; transform: rotate(-24deg); }
  .garden-orbit-left { left: calc((100vw - 560px) / 4 - 88px); top: 27%; }
  .garden-orbit-right { right: calc((100vw - 560px) / 4 - 88px); top: 43%; transform: rotate(24deg); }
  .garden-orbit span { position: absolute; right: 2px; top: 24px; color: #a3b58e; font-size: 23px; }
  .garden-orbit i { position: absolute; width: 5px; height: 5px; background: #c6d4b7; border-radius: 50%; bottom: 30px; left: 8px; }
  .garden-sprig { position: absolute; width: 52px; height: 68px; border-left: 1px solid #cbd9bf; transform: rotate(25deg); }
  .sprig-left { left: calc((100vw - 560px) / 4 + 16px); top: 72%; }
  .sprig-right { right: calc((100vw - 560px) / 4 - 18px); top: 24%; transform: rotate(-25deg); }
  .garden-sprig::before, .garden-sprig::after { content: ""; position: absolute; width: 22px; height: 10px; background: #e0e8d6; border-radius: 0 90% 0 90%; left: 1px; top: 14px; transform: rotate(-18deg); }
  .garden-sprig::after { top: 37px; left: -23px; transform: rotate(12deg); }
  .owl-flight { display: block; position: fixed; z-index: 1; left: calc((100vw - 560px) / 4 - 60px); top: 35%; width: 120px; transition: top 2s ease-in-out; }
  .owl-flight.is-right { transform: translateX(calc(50vw + 280px)); }
  .owl-mascot { position: relative; display: block; width: 120px; height: 132px; padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; animation: owl-hover 5s ease-in-out infinite; }
  .owl-mascot svg { display: block; width: 100%; height: 128px; overflow: visible; }
  .owl-shadow { position: absolute; bottom: 0; left: 38px; width: 44px; height: 5px; border-radius: 50%; background: #dce5d2; opacity: .65; }
  .owl-whisper { display: block; width: 180px; margin: 12px 0 0 -30px; color: #819276; font-size: 11px; text-align: center; letter-spacing: 1px; pointer-events: none; }
  .owl-wing { transform-box: view-box; }
  .owl-wing-left { transform-origin: 30px 65px; }
  .owl-wing-right { transform-origin: 90px 65px; }
  .owl-eyes { transform-box: view-box; transform-origin: 60px 60px; animation: owl-blink 7s infinite; }
  .owl-mascot.look-left .owl-eyes { translate: -2px 0; }
  .owl-mascot.look-right .owl-eyes { translate: 2px 0; }
  .owl-flight.flying-right { animation: owl-cross 3.6s ease-in-out; }
  .owl-flight.flying-left { animation: owl-cross 3.6s ease-in-out reverse; }
  .owl-flight:is(.flying-right,.flying-left) .owl-wing-left { animation: owl-flap-left .35s ease-in-out infinite alternate; }
  .owl-flight:is(.flying-right,.flying-left) .owl-wing-right { animation: owl-flap-right .35s ease-in-out infinite alternate; }
  .owl-flight:is(.flying-right,.flying-left) .owl-whisper { visibility: hidden; }
  .owl-mascot.greeting { animation: owl-greeting .7s ease-in-out; }
}
@keyframes owl-hover { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes owl-blink { 0%,43%,47%,100% { scale: 1 1; } 45% { scale: 1 .08; } }
@keyframes owl-flap-left { from { transform: rotate(-18deg); } to { transform: rotate(32deg); } }
@keyframes owl-flap-right { from { transform: rotate(18deg); } to { transform: rotate(-32deg); } }
@keyframes owl-cross { 0% { transform: translate(0,0) rotate(-5deg); } 45% { transform: translate(calc(22.5vw + 126px),-72px) rotate(3deg); } 100% { transform: translate(calc(50vw + 280px),0) rotate(0); } }
@keyframes owl-greeting { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-18px) rotate(-7deg); } 65% { transform: translateY(-7px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) {
  .owl-flight, .owl-mascot, .owl-eyes, .owl-wing { animation: none !important; transition: none !important; }
}

@media (min-width: 1100px) {
  .owl-mascot { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
  .owl-flight.is-positioned { transform: none; transition: none; }
  .owl-flight.is-dragging { z-index: 3; }
  .owl-flight.is-dragging .owl-mascot { cursor: grabbing; animation: none; }
  .owl-flight.is-dragging .owl-whisper { visibility: hidden; }
}

.owl-whisper { min-height: 18px; transition: opacity .22s ease; }
.owl-whisper.changing { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .owl-whisper { transition: none; } }

.draw > .intro { display: flow-root; }
.connection-link { display: inline-flex; align-items: center; justify-content: flex-start; align-self: flex-start; margin: 0; border: 0; background: transparent; padding: 0; min-height: 44px; line-height: 20px; color: var(--green); font-size: 13px; text-decoration: none; }
.connection-note { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 12px; }
.connection-guide { display: flex; flex-direction: column; gap: 14px; }
.connection-guide .dialog-heading, .connection-guide > h2, .connection-guide .feedback { margin: 0; }
.connection-guide .dialog-heading h2 { margin: 0; font-size: 22px; line-height: 1.4; color: var(--ink); }
#experience-dialog .connection-guide > p { margin: 0; }
.connection-guide h3 { margin: 0 0 8px; font-size: 14px; }
.connection-guide ol { padding-left: 20px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.connection-guide li + li { margin-top: 6px; }
.connection-guide .feedback:empty { display: none; }
.connection-guide .mcp-endpoint { margin: 0; font-size: 13px; }
.endpoint-copy-row { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--button-line); border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.connection-guide .endpoint-copy-row .mcp-endpoint { flex: 1; min-width: 0; width: 0; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; resize: none; field-sizing: content; line-height: 1.6; }
.endpoint-copy-row > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-width: 76px; min-height: 46px; padding: 10px; border: 0; border-left: 1px solid var(--button-line); border-radius: 0; background: var(--button-bg); color: var(--button-ink); font-size: 13px; font-weight: 600; }
.endpoint-copy-row > button:hover { background: var(--button-hover); }
.connection-alternative { font-size: 13px; color: var(--muted); }
.connection-guide .connection-tip { font-size: 11px; color: #73846f; }
.connection-alternative summary { min-height: 44px; align-content: center; }

.site-footer a { color: var(--green); text-underline-offset: 3px; }

/* Help is the fifth card and scrolls inside the same deck as the other features. */
.support .help-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.support .help-toc button { min-height: 44px; flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); color: var(--green); font-size: 12px; }
.support .help-section { padding-top: 4px; }
.support .help-section > h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.support .help-options { display: grid; gap: 8px; }
.support .help-options article { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.support .help-claim-watermark > h4 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.support .help-claim-watermark > h4::after { content: ""; width: 38px; height: 40px; flex-shrink: 0; background: url("assets/owl-mascot.svg") center / contain no-repeat; opacity: .13; pointer-events: none; }
.support .help-category { display: block; margin-bottom: 4px; color: #61805e; font-size: 11px; line-height: 1.5; }
.support h4 { margin: 4px 0 6px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.support blockquote { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid #a3b58e; font-size: 12px; line-height: 1.6; }
.support .help-note { margin-top: 6px; font-size: 12px; }
.support .help-steps { margin: 0; padding-left: 32px; }
.support .help-steps li { padding: 0 0 8px 4px; }
.support .help-steps li::marker { content: "（" counter(list-item) "）"; color: #61805e; font-size: 12px; font-variant-numeric: tabular-nums; }
.support .help-steps strong { display: block; margin-bottom: 4px; }
.support .help-endpoint { margin-top: 8px; padding: 10px; border-radius: var(--radius); background: var(--soft); overflow-wrap: anywhere; user-select: all; }
.support .help-callout { margin-bottom: 6px; padding: 12px; border-radius: var(--radius); background: var(--soft); }
.support .help-callout strong { display: block; margin-bottom: 4px; }
.support .help-overview > strong { margin-bottom: 10px; }
.support .help-overview p > strong { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
.support .help-section details { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.support .help-section summary { min-height: 44px; align-content: center; line-height: 1.6; }
.support .help-section details > p { padding: 4px 0; }
.support a { color: var(--green); text-underline-offset: 3px; }
.support .help-action { margin-top: 8px; color: var(--button-ink); }
.bottom-nav a { min-width: 0; white-space: nowrap; }
@media (max-width: 380px) { .bottom-nav { margin-inline: var(--page-gutter); } .bottom-nav a { font-size: 11px; } }

.support .help-start-actions { display: grid; gap: 8px; }
.support .help-start-actions > .secondary { display: flex; width: 100%; justify-content: space-between; padding-inline: 14px; }
.support .help-start-actions > .secondary > span[aria-hidden="true"] { margin-left: auto; flex-shrink: 0; }
.support .help-start-actions .primary { color: var(--button-ink); }

/* The transparent header overlays the deck without a divider, blur or shadow. */

/* The navigation and footer float together above the scrolling cards. */
.site-bottom { grid-area: 1 / 1; align-self: end; position: relative; z-index: 3; display: flow-root; min-width: 0; background: linear-gradient(to bottom, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 90%) 18%, #fff 66%); border: 0; box-shadow: none; }

.support .help-callout p + p { margin-top: 6px; }

/* Tighter reading rhythm across all five cards; controls retain their tap sizes. */
.feature p { line-height: 1.55; }

.support .help-steps p + p { margin-top: 4px; }
.support .help-section details > .help-steps { margin-top: 4px; }

.invitation-leaderboard { width: 100%; min-width: 0; flex: 0 0 auto; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.invitation-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.invitation-board-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
#invite-board-status { margin: 0; padding: 16px 0; font-size: 12px; text-align: left; }
.invitation-board-table { width: 100%; min-width: 0; }
.invitation-board-table.is-expanded { max-height: 360px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.invitation-board-table table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; font-variant-numeric: tabular-nums; }
.invitation-board-table th, .invitation-board-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.invitation-board-table th { position: sticky; top: 0; z-index: 1; padding: 8px 6px; border-bottom: 0; background: var(--surface); color: #657962; font-size: 11px; line-height: 1.5; font-weight: 400; white-space: nowrap; }
.invitation-board-table th:first-child { width: 40px; }
.invitation-board-table th:nth-child(3), .invitation-board-table th:nth-child(4) { width: 68px; text-align: right; }
.invitation-board-table td:nth-child(3), .invitation-board-table td:nth-child(4) { text-align: right; }
#invite-board-message td { padding: 0; border-bottom: 0; }
#invite-board-list tr.is-mine { color: var(--green); font-weight: 600; }
.invitation-board-rank { color: var(--green); }
.invitation-board-name { overflow-wrap: anywhere; }
.invitation-board-score { white-space: nowrap; }
.invitation-board-mine { padding: 8px 0 0; font-size: 12px; color: var(--ink); font-weight: 600; }
.invitation-leaderboard .history-note { margin-bottom: 0; }

.invite .reward { position: relative; isolation: isolate; overflow: hidden; flex-direction: row; justify-content: flex-start; gap: 18px; padding: 16px; }
.invite .reward::after { content: ""; position: absolute; z-index: -1; top: 8px; right: 10px; width: 64px; height: 69px; background: url("assets/owl-mascot.svg") center / contain no-repeat; opacity: .13; pointer-events: none; }
.invite .intro h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.5px; }
.invite .reward-value { flex-shrink: 0; font-size: 40px; white-space: nowrap; }
.reward-copy { display: grid; gap: 4px; min-width: 0; line-height: 1.55; }
.reward-copy strong { color: var(--ink); font-size: 13px; font-weight: 600; }
#invite-form { gap: 16px; }
.invite .invitation-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.invite .invitation-group h3 { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; font-weight: 600; }
.invitation-section-number { display: inline-block; min-width: 2ch; margin-right: 6px; color: #61805e; font-variant-numeric: tabular-nums; }
.retry-countdown { margin-left: 4px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.invitation-panel { min-width: 0; padding: 0; }
.invitation-group > .invitation-panel, .invitation-group > .reward, .invitation-group > .invite-stats { flex-shrink: 0; }
.invite-owner-note { font-size: 12px; }
.invitation-share .action-zone { margin-top: 10px; }
.invitation-share .feedback { margin-bottom: 0; }
.invitation-share .feedback:empty { display: none; }
.invitation-share .invite-code-row { display: grid; gap: 4px; margin-top: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.invitation-share .invite-code-row output { color: var(--ink); font-size: 20px; font-weight: 600; user-select: all; }
.invite .invite-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); text-align: center; }
.invite .invite-stats > span { padding: 0 6px; }
.invite .invite-stats > span + span { border-left: 1px solid var(--line); }
.invite .invite-stats strong { margin-top: 5px; font-size: 20px; }
.invite .invite-stats[data-state="idle"] strong { font-size: 13px; font-weight: 400; color: var(--muted); }
.invite .invitation-history-heading, .invite .invitation-board-heading { position: relative; min-height: 21px; padding-right: 84px; }
.invite .invitation-leaderboard { border-top: 1px solid var(--line); padding-top: 14px; }
.invite .history-refresh { position: absolute; right: 0; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 4px 0 4px 10px; }
.invite #invite-history-empty { padding: 10px 0; }
.invite .history-note { color: #73846f; }
.invite .history-note:empty { display: none; }
.invitation-board-rules { margin-top: 8px; }
.invitation-board-rules p { margin: 0; line-height: 1.65; }
.invitation-board-rules p + p { margin-top: 4px; }
.invitation-board-rules strong { color: var(--muted); font-size: inherit; line-height: inherit; font-weight: 600; }

.security-dialog { width: min(372px, calc(100vw - 24px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: 0 16px 48px #16382326; }
.security-dialog::backdrop { background: #193b2c52; }
.security-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.security-heading img { width: 32px; height: 32px; border-radius: var(--radius); }
.security-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.security-heading .dialog-close { margin-left: auto; }
#security-feedback { margin: 0; color: #65766a; font-size: 12px; line-height: 1.7; }
.security-widget { display: flex; align-items: center; justify-content: center; min-height: 74px; margin: 20px 0; }
@media (max-width: 350px) {
  .security-dialog { padding: 20px; }
}
