@font-face {
  font-family: "Zen Antique";
  src: url("./20261112_zen-antique.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("./20261112_cinzel.woff2") format("woff2");
  font-display: swap;
  font-weight: 600 800;
}

:root {
  color-scheme: dark;
  --paper: #fff0d7;
  --muted: #e3ceb0;
  --gold: #e7bc7c;
  --rule: #ac8350;
  --display: "Zen Antique", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --latin: "Cinzel", Georgia, serif;
  --festival-brocade: url("./20261112_edofes3-stage-seigaiha.webp");
  --reward-stage: url("./20261110_festival-stage.webp");
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--paper);
  background: #0c1020;
  font: 1rem/1.6 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
main { display: flex; flex: 1; flex-direction: column; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffe5a4; outline-offset: 4px; }
a { color: inherit; }
.wrap { width: min(100% - 3.5rem, 71rem); margin-inline: auto; }
.masthead {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  background: linear-gradient(#0a0b13c9, #08091012);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 70px;
  border-bottom: 1px solid #e7bc7c90;
}
.brand {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font: 1.35rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.seal {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  color: #fff1c1;
  background: linear-gradient(146deg, #a4392c, #5d1c23 64%);
  border: 1px solid #efc874;
  box-shadow: inset 0 0 0 2px #541b21, inset 0 0 0 3px #b17a45;
}
.schedule-link {
  font-size: .89rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration-color: #d6a86ca6;
  text-underline-offset: .24em;
}
.schedule-link span { color: var(--gold); }

.hero { position: relative; overflow: hidden; isolation: isolate; background: #101523; }
.town-art, .canopy, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}
.town-art { height: 100%; object-fit: cover; object-position: 50% 59%; }
.canopy {
  z-index: 1;
  height: clamp(205px, 24vw, 375px);
  object-fit: fill;
  mask-image: linear-gradient(#000 0%, #000 31%, transparent 94%);
}
.hero::after {
  content: "";
  background: radial-gradient(ellipse at 49% 41%, #080c1c75 6%, transparent 71%),
    linear-gradient(180deg, #080b19bc 6%, #10152217 62%, #1d1020a1 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(20rem,42%);
  gap: clamp(1.5rem, 7vw, 7rem);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-block: clamp(7.75rem, 12vw, 10rem) clamp(2.4rem, 6vw, 5.2rem);
  min-height: 505px;
}
.hero-copy { text-shadow: 0 2px 2px #17101b, 0 2px 16px #070b17; }
.event-name, h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.event-name {
  margin: 0 0 .6rem;
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-size: clamp(2.1rem,4.35vw,4.35rem);
  letter-spacing: -.07em;
  line-height: 1;
  color: #ffe1a2;
  background: linear-gradient(#fff2ce 13%, #f5d995 46%, #be803b 98%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 #69361f) drop-shadow(0 5px 12px #070912);
}
.event-name span { font: 800 1.03em/.98 var(--latin); letter-spacing: -.052em; }
h1 {
  margin: 0;
  color: #fff0cc;
  font-size: clamp(2.05rem, 4.05vw, 3.7rem);
  letter-spacing: -.075em;
  line-height: 1.19;
}
.intro { max-width: 32rem; line-height: 1.78; margin: .95rem 0 0; text-wrap: pretty; }

.reception {
  position: relative;
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(150deg, #2f1421a6, #190e21db 68%, #2a101ec4),
    var(--festival-brocade) center / 100% 100% no-repeat,
    #241421;
  border: 1px solid #e1ae65;
  box-shadow: inset 0 0 0 3px #17101b, inset 0 0 0 4px #9b7448a0, 0 12px 35px #0909119e;
}
.reception::before {
  content: "";
  position: absolute;
  width: min(34%,8rem);
  height: 3px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,#ffda91,transparent);
}
.reception h2 {
  margin: 0 0 .95rem;
  color: #ffe6ab;
  font-size: clamp(1.32rem,2.8vw,1.85rem);
  line-height: 1.2;
}
fieldset { padding: 0; border: 0; min-inline-size: 0; margin: 0 0 .97rem; }
legend, .phrase-label { padding: 0; margin: 0 0 .36rem; font-size: .86rem; font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .36rem; }
.days label { position: relative; }
.days input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.date-tab {
  display: grid;
  justify-items: center;
  gap: .15rem;
  align-content: center;
  min-height: 3.75rem;
  border: 1px solid #ba925b91;
  background: linear-gradient(#272637,#191b2a);
  color: #f0dbc0;
  cursor: pointer;
  font-size: .8rem;
  line-height: 1.1;
}
.date-tab time { font: 700 clamp(1rem,2.3vw,1.43rem)/1.14 var(--latin); white-space: nowrap; }
.date-tab time small { margin-inline-start: .28em; font: .62em/1 var(--display); }
.days :checked + .date-tab {
  background: linear-gradient(152deg,#873733,#5b1d26 70%);
  border-color: #ffe2a6;
  color: #fff1cc;
  box-shadow: inset 0 0 0 2px #561d24, inset 0 0 0 3px #e6ba70aa;
}
.days :focus-visible + .date-tab { outline: 2px solid #ffe5a4; outline-offset: 2px; }
.phrase-label { display: block; }
.entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; }
button, #phrase {
  font: inherit;
  min-height: 2.85rem;
  border-radius: 0;
}
#phrase {
  width: 100%;
  min-width: 0;
  padding: .36rem .65rem;
  border: 1px solid #bc9561c7;
  color: var(--paper);
  background: #090e1be6;
}
#phrase[aria-invalid="true"] { border-color: #ffa5a1; }
button {
  cursor: pointer;
  border: 1px solid #dbad63;
  color: #ffefcd;
  background: linear-gradient(150deg,#733034,#4e1b25);
  font-size: .9rem;
  font-weight: 700;
  padding: .35rem .75rem;
}
button.primary {
  color: #281609;
  background: linear-gradient(146deg,#ffe8bb,#e3b66d 76%);
  border-color: #f0c884;
  box-shadow: inset 0 0 0 2px #d8a25b, inset 0 0 0 3px #fff1bc8f;
  white-space: nowrap;
}
button.primary span { margin-inline-start: .28em; }
button:enabled:hover { filter: brightness(1.12); }
button:disabled {
  cursor: default;
  color: #d2c4af;
  background: #211d29;
  border-color: #82715d;
  box-shadow: none;
}
.status { margin: .63rem 0 0; font-size: .88rem; line-height: 1.5; color: #ffe6af; }
.status:empty { margin: 0; }

.rewards {
  position: relative;
  flex: 1;
  padding: clamp(1.8rem,5vw,4.6rem) 0 clamp(3.3rem,6.7vw,5.7rem);
  border-top: 5px double #ebb873;
  background:
    linear-gradient(180deg, #140a1400 52%, #160b183b),
    var(--reward-stage) center / 100% 100% no-repeat,
    #0e1220;
}
.collection-heading {
  width: min(100%, 43rem);
  margin: 0 auto 1.35rem;
  text-align: center;
  text-shadow: 0 1px 3px #1b0710, 0 1px 8px #1b0710;
}
.collection-heading h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.45rem,3vw,1.2rem);
  color: #ffe3ad;
  margin: 0;
  padding: .38em .55rem .49em;
  font-size: clamp(1.62rem,4.3vw,2.55rem);
  line-height: 1.28;
  white-space: nowrap;
  background:
    linear-gradient(180deg, #3a0b110b, #260b1a50),
    var(--festival-brocade) center / 100% 100% no-repeat,
    #39111c;
  box-shadow: 0 6px 16px #0a07137a;
}
.collection-heading h2::before, .collection-heading h2::after {
  content: "";
  flex: 0 1 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c29357);
}
.collection-heading h2::after { transform: scaleX(-1); }
#progress { margin: .66rem .25rem 0; color: var(--muted); font-size: .87rem; }
.reward-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.55rem, 1.48vw, 1.1rem); }
.reward {
  padding: 3px;
  border: 1px solid #9e794c;
  background: #100f1a;
  box-shadow: 0 8px 24px #07091491;
}
.reward.complete { border-color: #d6a358; background: #241918; }
.reward:has(button:enabled) { border-color: #f3ca8d; }
.reward-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.8;
  min-height: 88px;
  background: #231825;
}
.reward-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  z-index: -1;
}
.reward-count {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 4rem;
  min-width: 5rem;
  padding: .28rem .45rem .4rem;
  color: #ffe8b0;
  background: linear-gradient(160deg,#251822f5,#0c1121f5);
  border: 1px solid #d4a662;
  outline: 1px solid #56402e;
  outline-offset: 2px;
  box-shadow: 0 6px 15px #08060db3;
}
.reward-count small { line-height: 1.25; font-size: .7rem; }
.reward-count strong { font: 800 clamp(1.45rem,3.8vw,2rem)/1.05 var(--latin); font-variant-numeric: tabular-nums; }
.reward-controls {
  min-width: 0;
  display: grid;
  justify-items: stretch;
  gap: .42rem;
  text-align: center;
  padding: .63rem .65rem .65rem;
  background:
    linear-gradient(#2b1121b5, #200d1cc7),
    var(--festival-brocade) center / 100% 100% no-repeat,
    #271522;
  border-top: 1px solid #a77e54;
}
.reward-controls h3 {
  font-size: clamp(1.03rem,2vw,1.43rem);
  line-height: 1.31;
  text-wrap: balance;
  margin: 0;
}
.complete h3 { color: #ffdf9c; }
.reward-controls button { min-height: 2.65rem; }
#download-status { text-align: center; }

@media (max-width: 1020px) {
  .large-break { display: none; }
}
@media (max-width: 860px) {
  :root { --reward-stage: url("./20261112_edofes3-stage-frame.webp"); }
  .wrap { width: min(100% - 2.35rem, 39rem); }
  .masthead-inner { min-height: 57px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 1.3rem; min-height: auto; padding-block: 5.75rem 1.65rem; }
  .hero-copy { text-align: center; }
  .event-name { margin-bottom: .42rem; }
  h1 { font-size: clamp(2.05rem,7.2vw,3.2rem); }
  .intro { margin: .62rem auto 0; font-size: .9rem; text-wrap: pretty; }
  .canopy { height: 15rem; }
  .town-art { object-position: 56% 63%; }
  .reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 1.5rem); }
  .schedule-link { font-size: .82rem; }
  .reception { padding: .94rem; }
  .reward-controls { padding-inline: .3rem; }
  .reward-controls h3 { font-size: .94rem; }
}
