@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");

:root {
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --ink: #253239;
  --ink-soft: #5d6969;
  --paper: #fffaf2;
  --paper-deep: #f7efe5;
  --cream: #fffdf8;
  --line: #e6ddd2;
  --coral: #ef6e58;
  --coral-dark: #c85145;
  --yellow: #f8d66d;
  --blue: #a9d9e3;
  --pink: #f6c7c5;
  --mint: #c6e2d6;
  --shadow: 0 18px 50px rgba(48, 54, 48, 0.1);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(92, 76, 48, 0.055) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  opacity: 0.35;
}

body::after {
  position: fixed;
  z-index: -1;
  top: -170px;
  right: -170px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(248, 214, 109, 0.35);
  filter: blur(5px);
  content: "";
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 22px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(37, 50, 57, 0.1);
  border-radius: 15px 15px 16px 7px;
  background: var(--yellow);
  font-size: 1.45rem;
  transform: rotate(-4deg);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.source-pill,
.source-link {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: none;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.source-dot,
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78b890;
  box-shadow: 0 0 0 4px rgba(120, 184, 144, 0.14);
}

.source-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(37, 50, 57, 0.33);
  font-weight: 700;
}

.source-link:hover,
.source-link:focus-visible {
  color: var(--coral-dark);
  border-color: var(--coral-dark);
}

.icon-button {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 6vw, 94px);
  min-height: 615px;
  padding: 48px 32px 84px 44px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.eyebrow-soft {
  margin-bottom: 13px;
  color: #9e887b;
  font-size: 0.71rem;
}

.hero h1,
.lottery-section h2,
.how-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.18;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(3.3rem, 6.1vw, 5.45rem);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0.02em;
  bottom: -0.06em;
  left: 0.03em;
  height: 0.15em;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-description {
  max-width: 530px;
  margin: 28px 0 30px;
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px 13px 13px 5px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffdf9;
  background: var(--coral);
  box-shadow: 0 9px 20px rgba(239, 110, 88, 0.23);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--coral-dark);
  box-shadow: 0 13px 25px rgba(239, 110, 88, 0.28);
}

.button-quiet {
  padding-right: 8px;
  padding-left: 8px;
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  color: var(--coral-dark);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
  color: #8a918e;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-proof b {
  color: var(--coral);
  font-size: 0.65rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.sun-disc {
  position: absolute;
  top: 25px;
  right: 22px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #f9df83;
  opacity: 0.9;
}

.sun-disc::after {
  position: absolute;
  top: 30px;
  left: -22px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  content: "";
}

.ticket-card {
  position: relative;
  z-index: 2;
  width: min(100%, 325px);
  min-height: 417px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(37, 50, 57, 0.1);
  border-radius: 26px 26px 11px 26px;
  background: #fffefb;
  box-shadow: 12px 16px 0 rgba(239, 110, 88, 0.12), var(--shadow);
  transform: rotate(4deg);
}

.ticket-head,
.ticket-meta,
.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-head {
  color: #8b9893;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ticket-stamp {
  padding: 4px 8px;
  border-radius: 99px;
  color: #427e5e;
  background: #e7f3e9;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.ticket-illustration {
  position: relative;
  display: grid;
  height: 170px;
  margin: 10px 0 11px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(140deg, #faeeb6, #f8c8ab);
  overflow: hidden;
}

.ticket-illustration::before,
.ticket-illustration::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  content: "";
}

.ticket-illustration::before {
  top: -36px;
  left: -33px;
  width: 110px;
  height: 110px;
}

.ticket-illustration::after {
  right: -27px;
  bottom: -44px;
  width: 130px;
  height: 130px;
}

.bowl {
  position: relative;
  z-index: 2;
  font-size: 6rem;
  filter: drop-shadow(0 10px 5px rgba(67, 57, 44, 0.15));
  transform: rotate(-5deg);
}

.steam {
  position: absolute;
  z-index: 2;
  top: 32px;
  width: 3px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(15deg);
}

.steam-one {
  left: 126px;
}

.steam-two {
  left: 150px;
  top: 28px;
  height: 24px;
  transform: rotate(-14deg);
}

.chopstick {
  position: absolute;
  z-index: 1;
  top: 24px;
  width: 5px;
  height: 145px;
  border-radius: 99px;
  background: #bd7456;
}

.chopstick-one {
  right: 94px;
  transform: rotate(26deg);
}

.chopstick-two {
  right: 76px;
  background: #e4a36e;
  transform: rotate(31deg);
}

.ticket-label {
  margin: 0 0 3px;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ticket-card h2 {
  min-height: 2.35em;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
}

.ticket-meta {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: #7c8885;
  font-size: 0.69rem;
}

.ticket-meta span:nth-child(2) {
  color: var(--yellow);
}

.ticket-dash {
  height: 1px;
  margin: 20px 0 13px;
  background: repeating-linear-gradient(to right, #d7d7d0 0 5px, transparent 5px 10px);
}

.ticket-footer {
  margin: 0;
  color: #9a9d94;
  font-size: 0.68rem;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 134px;
  padding: 12px 17px;
  border: 1px solid rgba(37, 50, 57, 0.08);
  border-radius: 14px 14px 14px 4px;
  background: #fffefb;
  box-shadow: 0 12px 24px rgba(65, 59, 46, 0.1);
  font-size: 0.7rem;
  transform: rotate(-6deg);
}

.floating-note span {
  color: #89928d;
  font-size: 0.62rem;
}

.floating-note strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.note-top {
  top: 71px;
  left: 5px;
  background: #e7f2ec;
}

.note-bottom {
  right: 0;
  bottom: 52px;
  background: #f8d7d1;
  transform: rotate(5deg);
}

.note-bottom i {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--coral);
  font-style: normal;
}

.visual-sparkle {
  position: absolute;
  color: #d49a60;
  font-size: 1.3rem;
}

.sparkle-one {
  top: 44px;
  left: 95px;
}

.sparkle-two {
  right: 6px;
  top: 185px;
  font-size: 1.65rem;
}

.sparkle-three {
  bottom: 100px;
  left: 46px;
  font-size: 1.9rem;
}

.lottery-section,
.how-section {
  padding: 78px 44px 86px;
  border-top: 1px solid var(--line);
}

.section-intro,
.availability-head,
.reference-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.lottery-section h2,
.how-section h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.lottery-section h2 span,
.how-section h2 span {
  color: var(--coral);
}

.current-context {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 248px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  background: rgba(255, 253, 248, 0.7);
}

.current-context > div {
  display: grid;
  gap: 0;
}

.current-context small {
  color: #9a9b91;
  font-size: 0.64rem;
}

.current-context strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}

.current-context strong.is-muted {
  color: var(--coral-dark);
}

.context-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.control-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid #ece3d9;
  border-radius: 22px 22px 7px 22px;
  background: rgba(255, 253, 248, 0.78);
}

.control-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #777f7a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.label-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px 8px 8px 3px;
  color: #fff;
  background: var(--coral);
  font-size: 0.78rem;
}

.campus-tabs,
.meal-tabs {
  display: flex;
  gap: 10px;
}

.campus-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 75px;
  padding: 12px 13px;
  border: 1px solid #e8dfd6;
  border-radius: 14px 14px 5px 14px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.campus-tab:hover,
.campus-tab:focus-visible {
  border-color: #d6b19a;
  transform: translateY(-1px);
}

.campus-tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: saturate(0.55);
}

.campus-tab:disabled:hover {
  border-color: #e8dfd6;
  transform: none;
}

.campus-tab.is-selected {
  border-color: var(--coral);
  background: #fff2ec;
  box-shadow: inset 0 0 0 1px rgba(239, 110, 88, 0.16);
}

.campus-tab-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: var(--mint);
  font-size: 1rem;
}

.campus-tab:nth-child(2) .campus-tab-icon {
  background: var(--yellow);
}

.campus-tab strong,
.campus-tab small {
  display: block;
}

.campus-tab strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
}

.campus-tab small {
  color: #909590;
  font-size: 0.64rem;
}

.tab-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #d7d9d0;
  border-radius: 50%;
  color: transparent;
  font-size: 0.65rem;
}

.campus-tab.is-selected .tab-check {
  border-color: var(--coral);
  color: white;
  background: var(--coral);
}

.meal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid #e8dfd6;
  border-radius: 12px 12px 12px 4px;
  color: #77817c;
  background: #fffdf8;
  font-size: 0.77rem;
  font-weight: 800;
  transition: all 160ms ease;
}

.meal-tab:hover,
.meal-tab:focus-visible {
  color: var(--coral-dark);
  border-color: #d6b19a;
}

.meal-tab.is-selected {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.meal-hint {
  max-width: 420px;
  margin: 13px 0 0;
  color: #96988f;
  font-size: 0.69rem;
}

.availability-head {
  margin-top: 53px;
}

.availability-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.availability-head h3,
.reference-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.availability-head p,
.reference-head p {
  margin: 6px 0 0;
  color: #92958d;
  font-size: 0.76rem;
}

.count-badge {
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  place-items: center;
  border-radius: 8px 8px 8px 2px;
  color: #fff;
  background: var(--coral);
  font-size: 0.68rem;
  font-weight: 900;
}

.draw-button {
  min-width: 142px;
}

.draw-icon {
  color: var(--yellow);
  font-size: 1.05rem;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 22px;
}

.restaurant-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #e9e0d7;
  border-radius: 18px 18px 5px 18px;
  background: #fffefb;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.restaurant-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 4px;
  border-radius: 0 0 5px 0;
  background: var(--accent, var(--coral));
  content: "";
}

.restaurant-card:hover {
  border-color: #d9c8b8;
  box-shadow: 0 10px 22px rgba(65, 59, 46, 0.08);
  transform: translateY(-3px);
}

.restaurant-card.is-closed {
  opacity: 0.72;
  background: rgba(255, 253, 248, 0.66);
}

.restaurant-card-top,
.restaurant-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.restaurant-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  background: var(--accent-soft, #f9eac6);
  font-size: 1.65rem;
}

.restaurant-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 0.63rem;
  font-weight: 800;
}

.restaurant-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-open {
  color: #39805b;
  background: #e8f4eb;
}

.status-closed {
  color: #9b9189;
  background: #efebe6;
}

.restaurant-card-body {
  flex: 1;
  padding-top: 18px;
}

.restaurant-place {
  margin: 0 0 3px;
  color: #9b978c;
  font-size: 0.65rem;
  font-weight: 700;
}

.restaurant-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.35;
}

.restaurant-category {
  margin: 5px 0 11px;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.restaurant-note {
  margin: 0;
  color: #858d88;
  font-size: 0.72rem;
  line-height: 1.65;
}

.restaurant-schedule {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.65;
}

.restaurant-schedule summary {
  cursor: pointer;
  font-weight: 700;
}

.restaurant-schedule p {
  margin: 6px 0;
}

.restaurant-schedule a,
.result-source a {
  color: var(--coral-dark);
}

.schedule-notice {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff3d4;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

.holiday-notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffe2c8;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.7;
}

.restaurant-card-bottom {
  align-items: flex-end;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed #e5dcd2;
}

.hours-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #747e79;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
}

.hours-line > span:first-child {
  color: var(--coral);
  font-size: 0.85rem;
}

.meal-chip {
  flex-shrink: 0;
  padding: 5px 7px;
  border-radius: 8px 8px 8px 2px;
  font-size: 0.61rem;
  font-weight: 800;
}

.meal-chip-yes {
  color: #497558;
  background: #edf6ee;
}

.meal-chip-no {
  color: #9a9288;
  background: #f2eeea;
}

.accent-mint { --accent: #73ae92; --accent-soft: #d9eee3; }
.accent-yellow { --accent: #dfb72f; --accent-soft: #fff0af; }
.accent-orange { --accent: #df8b51; --accent-soft: #ffe2c8; }
.accent-pink { --accent: #dc8e90; --accent-soft: #f9dbda; }
.accent-red { --accent: #d55f54; --accent-soft: #f8d6d0; }
.accent-peach { --accent: #e29a65; --accent-soft: #ffe0c2; }
.accent-green { --accent: #6f9c6b; --accent-soft: #e0efcf; }
.accent-lavender { --accent: #9b8fc1; --accent-soft: #eae3fc; }
.accent-blue { --accent: #68a9b8; --accent-soft: #dcf3f8; }
.accent-brown { --accent: #ad8768; --accent-soft: #f1e4d9; }

.empty-state {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed #d9cfc3;
  border-radius: 18px 18px 5px 18px;
  background: rgba(255, 253, 248, 0.62);
}

.empty-illustration {
  display: grid;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.65rem;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.empty-state p {
  max-width: 620px;
  margin: 4px 0 0;
  color: #858d88;
  font-size: 0.73rem;
}

.reference-section {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px dashed #ded4ca;
}

.reference-head h3 span {
  color: #9c968c;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.reference-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.reference-note span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #afa79c;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 800;
}

.closed-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.closed-grid .restaurant-card {
  min-height: 245px;
}

.how-section {
  padding-bottom: 72px;
}

.how-heading {
  margin-bottom: 33px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  min-height: 230px;
  padding: 25px 24px;
  border-radius: 22px 22px 6px 22px;
  overflow: hidden;
}

.step-card::after {
  position: absolute;
  right: -30px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.2;
}

.step-card-yellow { color: #7f711f; background: #f9eab0; }
.step-card-pink { color: #955d61; background: #f7d7d4; }
.step-card-blue { color: #477c87; background: #cde8ec; }

.step-number {
  display: block;
  color: currentColor;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.step-icon {
  margin-top: 19px;
  color: rgba(37, 50, 57, 0.62);
  font-size: 1.9rem;
  line-height: 1;
}

.step-card h3 {
  margin: 12px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 900;
}

.step-card p {
  max-width: 260px;
  margin: 0;
  color: rgba(37, 50, 57, 0.68);
  font-size: 0.73rem;
  line-height: 1.7;
}

.source-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin: 0 44px 76px;
  padding: 20px 22px;
  border: 1px solid #e7ddd2;
  border-radius: 17px 17px 4px 17px;
  background: rgba(255, 253, 248, 0.72);
}

.source-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--yellow);
  font-size: 1.1rem;
}

.source-section strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
}

.source-section p {
  max-width: 760px;
  margin: 4px 0 0;
  color: #8c918b;
  font-size: 0.67rem;
}

.source-section .data-updated {
  color: var(--coral-dark);
  font-size: 0.64rem;
  font-weight: 800;
}

.source-section a {
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-index {
  margin: 0 44px 40px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.site-index h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}

.site-index-lead {
  max-width: 720px;
  margin: 6px 0 0;
  color: #8c918b;
  font-size: 0.7rem;
  line-height: 1.7;
}

.site-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-index-list a {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 13px 15px;
  border: 1px solid #e7ddd2;
  border-radius: 13px 13px 4px 13px;
  background: rgba(255, 253, 248, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-index-list a:hover,
.site-index-list a:focus-visible {
  border-color: var(--blue);
  background: var(--cream);
  transform: translateY(-2px);
}

.site-index-list strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 900;
}

.site-index-list small {
  color: #8c918b;
  font-size: 0.66rem;
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 24px;
  padding: 24px 44px 34px;
  border-top: 1px solid var(--line);
  color: #99978f;
  font-size: 0.69rem;
}

.site-footer p {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 7px 0 0;
  color: #aaa79f;
  font-size: 0.63rem;
  line-height: 1.7;
}

.site-footer span:first-child {
  color: var(--coral-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: min(370px, calc(100% - 44px));
  padding: 13px 17px;
  border: 1px solid rgba(37, 50, 57, 0.1);
  border-radius: 13px 13px 4px 13px;
  color: var(--ink);
  background: #fffefb;
  box-shadow: 0 15px 34px rgba(48, 54, 48, 0.15);
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(35, 42, 39, 0.52);
  backdrop-filter: blur(5px);
}

.result-modal {
  position: relative;
  width: min(100%, 450px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 38px 34px 31px;
  border: 1px solid rgba(37, 50, 57, 0.12);
  border-radius: 27px 27px 7px 27px;
  background: var(--cream);
  box-shadow: 0 24px 70px rgba(25, 29, 27, 0.25);
  text-align: center;
  animation: modal-in 280ms ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.result-modal.is-revealing {
  animation: modal-reveal 900ms cubic-bezier(0.22, 0.68, 0.24, 1) both;
}

@keyframes modal-reveal {
  0% { opacity: 0; transform: scale(0.88) rotate(-1.8deg); box-shadow: 0 44px 100px rgba(25, 29, 27, 0.34); }
  55% { opacity: 1; transform: scale(1.016) rotate(0.5deg); }
  100% { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  color: #8c9189;
  background: #f2ece4;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--coral-dark);
  background: #f9ded8;
}

.result-confetti span {
  position: absolute;
  color: var(--coral);
  font-size: 1rem;
}

.result-confetti span:nth-child(1) { top: 64px; left: 52px; color: #e3b834; }
.result-confetti span:nth-child(2) { top: 97px; right: 57px; color: #7ab2a0; }
.result-confetti span:nth-child(3) { top: 154px; left: 43px; color: #d78788; }
.result-confetti span:nth-child(4) { right: 56px; bottom: 126px; color: #e3b834; }
.result-confetti span:nth-child(5) { bottom: 84px; left: 79px; color: #74a9bb; }

.result-modal .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}

.result-icon {
  display: grid;
  width: 83px;
  height: 83px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 27px 27px 27px 7px;
  background: #f9e6aa;
  font-size: 3.15rem;
  transform: rotate(-5deg);
}

.result-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
}

.result-subtitle {
  margin: 5px 0 20px;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.result-place,
.result-schedule-note,
.result-source {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.6;
}

.result-place {
  font-weight: 700;
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 23px;
}

.result-details div {
  padding: 12px 11px;
  border-radius: 13px 13px 4px 13px;
  background: #f5efe7;
}

.result-details span,
.result-details strong {
  display: block;
}

.result-details span {
  color: #9a9990;
  font-size: 0.64rem;
}

.result-details strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.45;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.result-actions .button {
  min-height: 44px;
  font-size: 0.76rem;
}

.modal-open {
  overflow: hidden;
}

.ritual-open {
  overflow: hidden;
}

/* ── 抽籤儀式 ─────────────────────────────────────────── */

.availability-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 49px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 13px 5px;
  color: var(--ink-soft);
  background: #fffefb;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.sound-toggle[aria-pressed="false"] {
  color: #a4a89f;
  background: var(--paper-deep);
}

.sound-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.button:disabled,
.button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.82;
}

.draw-button[aria-busy="true"] .draw-icon {
  animation: draw-icon-spin 1100ms linear infinite;
}

@keyframes draw-icon-spin {
  to { transform: rotate(360deg); }
}

.ritual-stage {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 420ms ease;
}

.ritual-stage[hidden] {
  display: none;
}

.ritual-stage.is-leaving {
  opacity: 0;
}

.ritual-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 246, 224, 0.2), transparent 58%),
    linear-gradient(158deg, #33322c 0%, #1f2523 54%, #141917 100%);
}

.ritual-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 248, 219, 0.95), rgba(255, 226, 156, 0.32) 34%, transparent 64%);
  opacity: 0;
}

.ritual-stage.is-revealed .ritual-veil::after {
  animation: ritual-flash 640ms ease-out both;
}

@keyframes ritual-flash {
  0% { opacity: 0; transform: scale(0.45); }
  22% { opacity: 0.92; }
  100% { opacity: 0; transform: scale(1.7); }
}

.ritual-halo,
.ritual-rays,
.ritual-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ritual-halo span {
  grid-area: 1 / 1;
  width: min(76vmin, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(248, 214, 109, 0.42);
  border-radius: 50%;
  opacity: 0;
}

.ritual-stage.is-counting .ritual-halo span,
.ritual-stage.is-rolling .ritual-halo span {
  animation: ritual-ring 1900ms ease-out infinite;
}

.ritual-halo span:nth-child(2) {
  animation-delay: 640ms;
}

.ritual-halo span:nth-child(3) {
  animation-delay: 1280ms;
}

@keyframes ritual-ring {
  0% { opacity: 0; transform: scale(0.52); }
  32% { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.28); }
}

.ritual-rays::before {
  content: "";
  grid-area: 1 / 1;
  width: min(128vmin, 940px);
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(248, 214, 109, 0.17) 0deg 4deg, transparent 4deg 17deg);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 6%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 6%, transparent 60%);
  opacity: 0;
  transition: opacity 520ms ease;
}

.ritual-stage.is-rolling .ritual-rays::before,
.ritual-stage.is-revealed .ritual-rays::before {
  opacity: 1;
  animation: ritual-spin 40s linear infinite;
}

@keyframes ritual-spin {
  to { transform: rotate(360deg); }
}

.ritual-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 14px;
  border-radius: 3px 3px 1px 3px;
  background: var(--coral);
  opacity: 0;
}

.ritual-stage.is-revealed .ritual-burst span {
  animation: ritual-burst 1250ms cubic-bezier(0.2, 0.72, 0.26, 1) both;
}

@keyframes ritual-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  14% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1) rotate(var(--burst-r));
  }
}

.ritual-burst span:nth-child(1) { --burst-x: -98px; --burst-y: -198px; --burst-r: 214deg; background: var(--yellow); animation-delay: 20ms; }
.ritual-burst span:nth-child(2) { --burst-x: 86px; --burst-y: -208px; --burst-r: -168deg; animation-delay: 70ms; }
.ritual-burst span:nth-child(3) { --burst-x: -182px; --burst-y: -134px; --burst-r: 262deg; background: var(--mint); animation-delay: 120ms; }
.ritual-burst span:nth-child(4) { --burst-x: 178px; --burst-y: -120px; --burst-r: -224deg; background: var(--blue); animation-delay: 40ms; }
.ritual-burst span:nth-child(5) { --burst-x: -216px; --burst-y: -46px; --burst-r: 336deg; background: var(--pink); animation-delay: 150ms; }
.ritual-burst span:nth-child(6) { --burst-x: 224px; --burst-y: -32px; --burst-r: -304deg; background: var(--yellow); animation-delay: 90ms; }
.ritual-burst span:nth-child(7) { --burst-x: -208px; --burst-y: 64px; --burst-r: 404deg; background: var(--blue); animation-delay: 190ms; }
.ritual-burst span:nth-child(8) { --burst-x: 216px; --burst-y: 76px; --burst-r: -392deg; animation-delay: 130ms; }
.ritual-burst span:nth-child(9) { --burst-x: -172px; --burst-y: 160px; --burst-r: 468deg; background: var(--yellow); animation-delay: 210ms; }
.ritual-burst span:nth-child(10) { --burst-x: 160px; --burst-y: 170px; --burst-r: -452deg; background: var(--pink); animation-delay: 60ms; }
.ritual-burst span:nth-child(11) { --burst-x: -80px; --burst-y: 216px; --burst-r: 526deg; background: var(--mint); animation-delay: 170ms; }
.ritual-burst span:nth-child(12) { --burst-x: 68px; --burst-y: 226px; --burst-r: -522deg; background: var(--blue); animation-delay: 110ms; }
.ritual-burst span:nth-child(13) { --burst-x: -32px; --burst-y: -240px; --burst-r: 188deg; background: var(--pink); animation-delay: 30ms; }
.ritual-burst span:nth-child(14) { --burst-x: 10px; --burst-y: 248px; --burst-r: -606deg; animation-delay: 200ms; }

.ritual-core {
  position: relative;
  width: min(100%, 420px);
  animation: ritual-core-in 460ms cubic-bezier(0.22, 0.68, 0.24, 1) both;
}

@keyframes ritual-core-in {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.ritual-eyebrow {
  margin: 0 0 13px;
  color: rgba(248, 214, 109, 0.92);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.ritual-card {
  position: relative;
  overflow: hidden;
  padding: 19px 22px 22px;
  border: 1px solid rgba(248, 214, 109, 0.34);
  border-radius: 24px 24px 8px 24px;
  background: linear-gradient(168deg, rgba(255, 253, 248, 0.99), rgba(255, 245, 226, 0.95));
  box-shadow: 0 32px 74px rgba(0, 0, 0, 0.44);
}

.ritual-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: #b3a68f;
  font-family: var(--font-display);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ritual-card-stamp {
  padding: 3px 8px;
  border: 1px solid rgba(200, 81, 69, 0.4);
  border-radius: 7px 7px 7px 2px;
  color: var(--coral-dark);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: rotate(-14deg);
}

.ritual-stage.is-revealed .ritual-card-stamp {
  animation: ritual-stamp 620ms cubic-bezier(0.24, 1.5, 0.4, 1) 220ms both;
}

@keyframes ritual-stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.1); }
  60% { opacity: 1; transform: rotate(-8deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}

.ritual-card-body {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 0 6px;
}

.ritual-card-icon {
  font-size: 2.9rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(37, 50, 57, 0.16));
}

.ritual-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.2vmin, 2rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.ritual-card-place {
  color: #8f9188;
  font-size: 0.75rem;
  font-weight: 600;
}

.ritual-stage.is-rolling .ritual-card-body {
  animation: ritual-flicker 230ms steps(2, end) infinite;
}

@keyframes ritual-flicker {
  from { opacity: 0.7; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(-3px); }
}

.ritual-stage.is-revealed .ritual-card-body {
  animation: ritual-land 720ms cubic-bezier(0.22, 0.72, 0.26, 1) both;
}

@keyframes ritual-land {
  0% { opacity: 0.6; transform: scale(1.16); }
  45% { transform: scale(0.985); }
  100% { opacity: 1; transform: none; }
}

.ritual-card-message {
  min-height: 2.6em;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
}

.ritual-countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--coral-dark);
  background: rgba(255, 250, 240, 0.94);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 14vmin, 5.4rem);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.ritual-stage.is-counting .ritual-countdown {
  opacity: 1;
}

.ritual-countdown span {
  grid-area: 1 / 1;
  opacity: 0;
}

.ritual-stage.is-counting .ritual-countdown span {
  animation: ritual-count 300ms ease-out both;
}

.ritual-stage.is-counting .ritual-countdown span:nth-child(1) { animation-delay: 0ms; }
.ritual-stage.is-counting .ritual-countdown span:nth-child(2) { animation-delay: 300ms; }
.ritual-stage.is-counting .ritual-countdown span:nth-child(3) { animation-delay: 600ms; }

@keyframes ritual-count {
  0% { opacity: 0; transform: scale(1.7); }
  34% { opacity: 1; transform: scale(1); }
  72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.78); }
}

.ritual-progress {
  width: min(100%, 240px);
  height: 3px;
  margin: 17px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.ritual-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
}

.ritual-stage.is-counting .ritual-progress span {
  animation: ritual-progress 900ms linear both;
}

.ritual-stage.is-rolling .ritual-progress span {
  animation: ritual-progress 1400ms cubic-bezier(0.3, 0.1, 0.7, 0.9) both;
}

.ritual-stage.is-revealed .ritual-progress span {
  background: linear-gradient(90deg, #ffeab0, var(--yellow));
  transform: scaleX(1);
}

@keyframes ritual-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.ritual-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 19px;
}

.ritual-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #f5f1e6;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ritual-button:hover,
.ritual-button:focus-visible {
  border-color: rgba(248, 214, 109, 0.6);
  background: rgba(255, 255, 255, 0.17);
}

.ritual-sound[aria-pressed="false"] {
  color: rgba(245, 241, 230, 0.6);
}

.ritual-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr minmax(350px, 0.85fr);
    gap: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
  }

  .lottery-section,
  .how-section {
    padding-right: 15px;
    padding-left: 15px;
  }

  .source-section,
  .site-index,
  .site-footer {
    margin-right: 15px;
    margin-left: 15px;
    padding-right: 0;
    padding-left: 0;
  }

  .restaurant-grid,
  .closed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 30px, 620px);
  }

  .site-header {
    min-height: 76px;
    padding-top: 16px;
  }

  .header-actions {
    gap: 11px;
  }

  .source-pill {
    display: none;
  }

  .source-link {
    font-size: 0.69rem;
  }

  .mobile-menu {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 10px;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 11px 11px 4px 11px;
    place-content: center;
  }

  .mobile-menu span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-open .mobile-menu span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .mobile-menu span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    min-height: 0;
    padding: 45px 0 64px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  .hero-description {
    margin: 22px 0 26px;
    font-size: 0.83rem;
    line-height: 1.8;
  }

  .desktop-break {
    display: none;
  }

  .hero-proof {
    gap: 9px 14px;
    margin-top: 31px;
    font-size: 0.64rem;
  }

  .hero-visual {
    min-height: 445px;
    margin-top: 3px;
  }

  .sun-disc {
    top: 18px;
    right: 10%;
    width: 265px;
    height: 265px;
  }

  .ticket-card {
    width: min(100%, 315px);
    transform: rotate(3deg);
  }

  .note-top {
    top: 54px;
    left: 0;
  }

  .note-bottom {
    right: 0;
    bottom: 37px;
  }

  .lottery-section,
  .how-section {
    padding: 57px 0 63px;
  }

  .section-intro,
  .availability-head,
  .reference-head {
    display: block;
  }

  .current-context {
    width: fit-content;
    min-width: 0;
    margin-top: 24px;
  }

  .control-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
    padding: 17px;
  }

  .campus-tabs {
    flex-direction: column;
  }

  .campus-tab {
    min-height: 64px;
  }

  .meal-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .meal-tab {
    min-width: 0;
    padding: 0 7px;
  }

  .availability-head {
    margin-top: 40px;
  }

  .availability-actions {
    width: 100%;
    margin-top: 19px;
  }

  .availability-actions .draw-button {
    flex: 1;
    min-width: 0;
  }

  .sound-toggle {
    padding: 0 12px;
  }

  .restaurant-grid,
  .closed-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-card,
  .closed-grid .restaurant-card {
    min-height: 0;
  }

  .reference-section {
    margin-top: 57px;
  }

  .reference-note {
    margin-top: 11px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 205px;
  }

  .source-section {
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin: 0 0 52px;
    padding: 17px;
  }

  .source-section a {
    grid-column: 2;
  }

  .source-section p {
    font-size: 0.64rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 0;
    padding: 21px 0 28px;
  }

  .site-footer p {
    grid-column: auto;
    margin-top: 5px;
    font-size: 0.61rem;
  }

  .result-modal {
    padding: 34px 21px 24px;
  }

  .result-modal h2 {
    font-size: 1.65rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
