:root {
  color-scheme: dark;
  --page: #120f0c;
  --paper: #201a15;
  --soft: #17130f;
  --ink: #f5e3c3;
  --text: #f3e8d8;
  --muted: #c2b49f;
  --gold: #e6c796;
  --border: #514134;
  --serif: "Baskervville","Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif;
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  color: var(--text);
}
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; min-height:100vh }
button,input,a { font:inherit }
.notice-link { color:inherit; text-decoration:underline; text-underline-offset:.2em }
button.notice-link { display:inline; padding:0; border:0; background:transparent; font:inherit; cursor:pointer }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation }
img { max-width:100% }
p,h1,h2,h3,dl,dd { margin:0 }
h1,h2,p,dd { overflow-wrap:anywhere }
.mobile-shell { width:min(100%,38rem); margin:auto; padding:env(safe-area-inset-top,0px) clamp(1.1rem,5vw,2rem) max(2.5rem,env(safe-area-inset-bottom,0px)) }
.mobile-header { display:flex; align-items:center; gap:.8rem; min-height:4.5rem; border-bottom:1px solid var(--border); color:var(--ink) }
.brand-signature { display:block; width:6.6rem; height:auto }
.mode-label { border:1px solid var(--border); color:var(--muted); padding:.2rem .42rem; font-size:.68rem; border-radius:2px; white-space:nowrap }
.profile { display:flex; align-items:center; gap:.4rem; min-width:0; font-size:.8rem; color:var(--muted) }
.profile span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.profile img { flex:none; border-radius:50%; object-fit:cover }
.surface { background:var(--paper); border:1px solid var(--border); padding:1.25rem; margin-top:1rem }
.surface h2,.sheet-header h2 { font:600 1.35rem/1.4 var(--serif); color:var(--ink) }
.helper-copy { color:var(--muted); font-size:.84rem; line-height:1.7; margin-top:.66rem }
.share-actions { display:grid; gap:.6rem; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:1rem }
.button { display:inline-flex; min-height:2.85rem; padding:.68rem .9rem; border:1px solid transparent; border-radius:3px; align-items:center; justify-content:center; font-size:.9rem; line-height:1.3; font-weight:600; text-align:center; cursor:pointer; text-decoration:none; transition:background .18s, transform .18s }
.button:active { transform:translateY(1px) }
.button:disabled { cursor:wait; opacity:.6 }
.button-blue,.button-draw { background:linear-gradient(112deg,#f4dfb6,#ddbc86); border-color:#ecce9d; color:#2a2015 }
.button-blue:hover,.button-draw:hover { background:#f6e1bb }
.button-outline,.button-on-ink { color:var(--ink); background:transparent; border-color:#76614a }
.button-outline:hover,.button-on-ink:hover { background:#30271e }
.button-small { min-height:2.6rem; padding:.45rem .72rem; font-size:.82rem }
:focus-visible { outline:2px solid #ffe1a8; outline-offset:3px }
.copy-source { position:fixed; inset:0 auto auto 0; width:4px; height:4px; opacity:.01 }
.link-field,.claim-dialog input:not([type="checkbox"]) { width:100%; min-height:2.85rem; margin-top:.45rem; padding:.68rem .75rem; color:var(--text); background:var(--soft); border:1px solid #75624e; border-radius:3px; font-size:1rem }
.sheet-dialog { width:min(calc(100% - 2rem),28rem); max-height:88vh; max-height:88dvh; overflow:auto; padding:clamp(1.15rem,4vw,1.65rem); border:1px solid #7c664c; border-radius:6px; color:var(--text); background:var(--paper); box-shadow:0 22px 90px #0009 }
.sheet-dialog::backdrop { background:rgb(8 6 4 / 75%) }
.notice-reader { padding:0; border-radius:12px; margin:auto; }
.notice-reader[open] { display:flex; flex-direction:column; overflow:hidden; }
.notice-reader.legacy-reader { position:fixed; inset:0; height:fit-content; z-index:100; box-shadow:0 0 0 100vmax #100d0bc9; }
.notice-reader-head,.notice-reader footer { flex:none; padding:.85rem 1.2rem; }
.notice-reader-head { border-bottom:1px solid var(--border); }
.notice-reader h2 { color:var(--ink); font:600 1.25rem/1.5 var(--serif); }
.notice-reader-head h2:focus { outline:none; }
.notice-reader-body { padding:.5rem 1.2rem 1.1rem; overflow:auto; overscroll-behavior:contain; font-size:.92rem; line-height:1.75; color:var(--text); }
.notice-reader-body h2 { margin:1rem 0 .25rem; font-size:1.02rem; }
.notice-reader-body p { margin:.6rem 0; }
.notice-reader-body dl { margin:.55rem 0; }
.notice-reader-body dl > div { display:grid; grid-template-columns:4.7rem 1fr; gap:.55rem; padding:.4rem 0; border-bottom:1px solid var(--border); }
.notice-reader-body dt { color:var(--muted); }
.notice-reader footer { border-top:1px solid var(--border); }
.notice-reader footer button { width:100%; }
.sheet-header { display:flex; align-items:center; justify-content:space-between; gap:1rem }
.claim-entry { margin-top:.9rem }
.claim-intro { margin:1rem 0; color:var(--muted); line-height:1.65; font-size:.92rem }
.claim-intro strong { color:var(--ink) }
.claim-dialog fieldset { min-width:0; margin:0; padding:0; border:0 }
.claim-dialog label { display:block; margin-top:.82rem; font-size:.92rem }
.claim-dialog input { display:block }
.claim-message { color:#ffb09a; font-size:.85rem; margin-top:.6rem }
.claim-actions,.sheet-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-top:1.2rem }
.claim-actions button:first-child { flex-grow:1 }
.poster-preview { display:grid; place-items:center; margin-top:.8rem; padding:.65rem; background:var(--soft) }
.poster-preview img { width:min(100%,15.5rem); height:auto }
.sheet-actions { justify-content:space-between }
.checkbox-label { display:flex; align-items:center; gap:.4rem; font-size:.82rem; color:var(--muted) }
input[type=checkbox] { accent-color:var(--gold) }
.notice { position:fixed; bottom:max(1rem,env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 2rem); padding:.72rem 1rem; border:1px solid #9c805c; border-radius:4px; background:#30281f; color:#fff1d9; text-align:center; font-size:.86rem; z-index:4 }
@media (max-width:330px) { .share-actions { grid-template-columns:1fr } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important } }
