:root {
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", sans-serif;
  color: #282540; background: #f8f6ff; color-scheme: light;
  --ink: #282540; --muted: #615b7b; --blue: #4741bd; --line: #ded9ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
main { margin: auto; max-width: 1050px; padding: clamp(16px, 4vw, 40px); }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: clamp(22px, 5vw, 46px); border-radius: 26px; background: linear-gradient(113deg,#ece8ff,#fff0e3); border: 1px solid #e5ddf4; }
.eyebrow { font-weight: 700; color: var(--blue); }
h1 { margin: .1em 0 .15em; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; }
.hero p { margin: .55em 0; }
.dates { font-weight: 700; color: #9c441c; }
.hero-mark { color: #ef924e; font-size: clamp(2rem, 9vw, 6rem); line-height: 1; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
button { min-height: 44px; border: 0; border-radius: 10px; padding: 8px 16px; font: inherit; font-weight: 650; background: var(--blue); color: white; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #766de5; outline-offset: 3px; }
.secondary, nav button { background: #efeafd; color: #3d3286; }
nav button[aria-current="page"] { background: var(--blue); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 230px),1fr)); gap: 14px; }
.panel, .entry, .notice { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: clamp(15px, 3vw, 24px); margin: 14px 0; }
.grid .panel { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.grid button { margin-top: auto; }
.grid p { margin: .4em 0 1em; }
.notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 15px; background: #fffaee; }
.notice.error { color: #91272b; background: #fff0f0; }
.notice label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
h2,h3 { margin: 0 0 .4em; line-height: 1.3; }
.muted { color: var(--muted); }
.prize { color: #964017; font-weight: 650; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
label { display: block; font-weight: 650; margin: 12px 0; }
input, select, textarea { display: block; width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid #c9c1de; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.actions select, .notice select { width: auto; }
textarea { min-height: 88px; resize: vertical; }
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 9px; color: #413587; background: #f0eafd; font-weight: 650; }
.ref { overflow-wrap: anywhere; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; }
.previews img { width: min(100%, 520px); height: auto; object-fit: contain; align-self: flex-start; border: 1px solid var(--line); border-radius: 8px; }
details { margin: .65em 0 1em; }
summary { cursor: pointer; font-weight: 650; color: var(--blue); }
a { color: var(--blue); }
@media (max-width: 450px) { .hero-mark { display: none; } }
dialog { max-width: min(90vw, 460px); border: 1px solid var(--line); border-radius: 17px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: #28254066; }
