:root {
  color-scheme: light;
  --bg: #ffa000;
  --panel: linear-gradient(118deg, #fff6d4 0%, #f7e4a6 55%, #f0d58a 100%);
  --gold: #774708;
  --muted: #664c26;
  --line: #ab8036;
  --serif:
    "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  --sans:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  --ink: #382509;
  --foil: linear-gradient(
    112deg,
    #e9b744 0%,
    #fff0a8 33%,
    #f6cc59 66%,
    #dfa136 100%
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  min-height: 100dvh;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80520f;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #ffeb9e;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
small {
  font-size: 0.81rem;
}
.masthead {
  border-bottom: 2px solid #c9973c;
  background: linear-gradient(104deg, #392405 0%, #63400c 48%, #3d2708 100%);
  --gold: #ffda77;
  box-shadow:
    inset 0 -1px #ffe3a16b,
    0 2px 8px #82551833;
}
.mastInner,
.shell {
  width: min(1220px, calc(100% - clamp(40px, 9vw, 152px)));
  margin: auto;
}
.mastInner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
}
.brand > span:last-child {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #ffe7a4;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-family: Georgia, serif;
  font-size: 0.63rem;
  letter-spacing: 0.19em;
  margin-top: 5px;
  color: var(--gold);
}
.crest {
  display: block;
  width: 43px;
  height: 43px;
  border-radius: 8px;
}
.headRight,
.date {
  display: flex;
  align-items: center;
}
.headRight {
  gap: 22px;
}
.date {
  gap: 9px;
  font-size: 0.87rem;
  color: #f7e3b3;
  letter-spacing: 0.055em;
}
.date svg {
  color: var(--gold);
}
.avatar,
.iconButton {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #5b390b;
  border: 1px solid #b58b43;
  color: #ffe1a1;
}
.avatar:hover,
.iconButton:hover {
  border-color: var(--gold);
}
.shell {
  padding-top: 28px;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  height: clamp(350px, 29vw, 417px);
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid #b18626;
  box-shadow:
    0 0 0 1px #ffefb9,
    0 9px 26px #6c450c3b;
  overflow: hidden;
}
.heroArt,
.heroShade {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
}
.heroArt {
  object-fit: cover;
  object-position: 60% 49%;
  filter: sepia(0.32) saturate(1.12);
}
.heroShade {
  z-index: -1;
  background: linear-gradient(
    90deg,
    #321f07f5 0%,
    #493008ce 24%,
    #60401041 48%,
    transparent 66%
  );
}
.heroContent {
  padding: 26px clamp(32px, 4.5vw, 68px);
  text-shadow: 0 2px 12px #281805c4;
}
.pill,
.overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffdaa0;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.84rem;
}
.pill {
  padding: 6px 13px;
  border-radius: 30px;
  background: #3f2909d9;
  border: 1px solid #c79f54;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.15rem, 5.25vw, 5rem);
  letter-spacing: 0.055em;
  line-height: 1.28;
  margin: 12px 0 10px;
  font-weight: 700;
  color: #fff1b2;
}
.hero p {
  font-size: clamp(0.98rem, 1.12vw, 1.15rem);
  letter-spacing: 0.065em;
  line-height: 1.9;
  color: #fff1d2;
}
.goldButton,
.outlineButton,
.textButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}
.goldButton {
  border-radius: 8px;
  background: var(--foil);
  border: 1px solid #c3902c;
  color: #372104;
  font-weight: 700;
  letter-spacing: 0.045em;
  min-height: 46px;
  padding: 10px 24px;
  box-shadow:
    inset 0 1px #fff7c8,
    0 3px 9px #4928033b;
}
.goldButton:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.heroButton {
  margin-top: 23px;
  min-height: 51px;
  min-width: 187px;
  font-size: 1.05rem;
}
.corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 0 solid #e9c37aa6;
  pointer-events: none;
}
.tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}
.tr {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
}
.bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
}
.br {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}
.sectionTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 clamp(1.24rem, 1.7vw, 1.6rem) / 1.45 var(--serif);
  letter-spacing: 0.085em;
  margin: 0 0 17px;
  color: #50310b;
}
.sectionTitle > svg {
  color: var(--gold);
}
.sectionTitle i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #9d722abb, #b38d4433);
  margin-left: 5px;
}
.sectionTitle small {
  font: 400 0.85rem var(--sans);
  color: var(--muted);
}
.favorites {
  margin-top: 29px;
}
.emptyFavorite,
.emptyHistory,
.profileCard,
.historyRow,
.mascot {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  box-shadow:
    inset 0 1px #fff7d7,
    0 3px 10px #94621a1c;
}
.emptyFavorite {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: var(--muted);
}
.emptyFavorite > svg {
  color: var(--gold);
}
.emptyFavorite .textButton {
  margin-left: auto;
}
.favoriteCard {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  background: var(--panel);
  color: var(--gold);
}
.favoriteCard .ticket,
.favoriteCard .wordTicket {
  max-width: 420px;
  margin: 0 auto 14px;
}
.textButton {
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bottomNav {
  z-index: 10;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(105deg, #382306fa, #50330cfb 50%, #382306fa);
  backdrop-filter: blur(14px);
  border-top: 1px solid #cc9b42;
  box-shadow: 0 -3px 15px #6140152e;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomNav > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(650px, 100%);
  margin: auto;
  height: 67px;
}
.bottomNav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f2dfac;
  font-weight: 500;
  letter-spacing: 0.07em;
  font-size: 0.9rem;
}
.bottomNav button.selected {
  color: #fff0a6;
  background: linear-gradient(#ba83244d, #97671a13);
}
.bottomNav button.selected:before {
  content: "";
  position: absolute;
  top: -1px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  width: 57%;
  background: var(--foil);
}
.bottomNav button:hover {
  color: #ffe0ac;
}
.pageInner {
  max-width: 900px;
  margin: auto;
}
.pageIntro {
  text-align: center;
  margin: 13px 0 28px;
}
.pageIntro h1 {
  font: 700 clamp(2.05rem, 4vw, 3.7rem) / 1.4 var(--serif);
  letter-spacing: 0.09em;
  color: #533208;
  margin: 7px 0;
}
.pageIntro p,
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.overline {
  justify-content: center;
  color: var(--gold);
}
.overline b {
  height: 1px;
  background: #947552;
  width: 30px;
}
.outlineButton {
  border: 1px solid #9c722b;
  padding: 9px 17px;
  border-radius: 7px;
  min-height: 42px;
  background: linear-gradient(115deg, #fff4c6, #efcf78);
  color: #543407;
  font-weight: 500;
}
.outlineButton:hover {
  background: #f5d67f;
}
.mascot {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 17px;
  color: var(--ink);
}
.mascot img {
  object-fit: contain;
}
.mascot small,
.profileCard small {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.09em;
}
.mascot p,
.profileCard p {
  margin-top: 6px;
  line-height: 1.65;
}
.profileCard {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 23px;
  margin: 0 0 28px;
}
.profileCard img {
  object-fit: contain;
}
.profileCard h2 {
  font: 600 1.55rem var(--serif);
  margin-top: 6px;
  color: #543207;
}
.profileCard .outlineButton {
  margin-top: 10px;
}
.profileDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.emptyHistory {
  text-align: center;
  padding: 28px;
  color: var(--muted);
}
.emptyHistory > svg {
  color: var(--gold);
}
.emptyHistory p {
  margin: 9px;
}
.historyList {
  display: grid;
  gap: 10px;
}
.historyRow {
  display: grid;
  grid-template-columns: 80px 1fr 20px;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 14px;
}
.historyRow > div {
  min-width: 0;
}
.historyRow p {
  margin: 5px 0;
  line-height: 1.6;
  font-family: var(--serif);
}
.historyRow small {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.historyMeta {
  color: var(--gold);
  font-size: 0.85rem;
}
.historyMeta i {
  padding: 0 4px;
}
.historyThumb img {
  width: 100%;
  display: block;
}
.historyThumb.word {
  background: #725018;
  color: #ffebad;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}
.adminLink {
  margin: 22px 0 0;
}
.dialog {
  --inset: 24px;
  width: min(100% - 28px, 500px);
  max-height: min(88dvh, 920px);
  border: 2px solid #bd903a;
  border-radius: 15px;
  background: linear-gradient(140deg, #fff3c9, #f4dc96);
  color: var(--ink);
  box-shadow: 0 28px 90px #2d1a05a8;
  padding: 0;
  overscroll-behavior: contain;
}
.dialog.wide {
  width: min(100% - 28px, 580px);
}
.dialog::backdrop {
  background: #291b0bcc;
  backdrop-filter: blur(5px);
}
.dialogHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--inset);
  background: linear-gradient(100deg, #50320a, #704711);
  border-bottom: 1px solid #c89a43;
  --gold: #ffe296;
}
.dialogHeader span,
.field > span,
.resultDate {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialogHeader span,
.resultDate {
  color: var(--gold);
  font-size: 0.88rem;
}
.iconButton {
  height: 32px;
  width: 32px;
}
.iconButton svg {
  width: 17px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dialog > .stack {
  padding: var(--inset);
}
.stack h2 {
  font: 600 1.5rem/1.5 var(--serif);
  color: #523109;
}
.stack small {
  color: var(--muted);
  line-height: 1.65;
}
.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  font-size: 1rem;
  background: #fff9e8;
  border: 1px solid #a68448;
  color: var(--ink);
  border-radius: 7px;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #745e3d;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.choices label {
  cursor: pointer;
}
.choices span {
  display: block;
  border: 1px solid #a78343;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 0.91rem;
  color: #593d13;
  background: #fff5d5;
}
.choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choices input:checked + span {
  color: #fff3c7;
  border-color: #5f3c0b;
  background: #785013;
}
.choices input:focus-visible + span {
  outline: 2px solid var(--gold);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  margin-bottom: 8px;
}
.error,
.siteError {
  color: #fff1df;
  background: #742f18;
  border-radius: 7px;
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.siteError {
  margin-bottom: 15px;
}
.siteError button,
.error button {
  color: #ffe299;
  text-decoration: underline;
}
.toast {
  position: fixed;
  z-index: 25;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  background: #f1d6a1;
  color: #38281f;
  border-radius: 9px;
  min-width: max-content;
}
.dialog[open] ~ .toast {
  z-index: 30;
}
.vaultArt {
  position: relative;
  aspect-ratio: 1.65;
  border-radius: 9px;
  overflow: hidden;
  isolation: isolate;
  background: #372507;
  border: 3px solid #bd9346;
}
.vaultArt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 6px ridge #a98754;
  background:
    repeating-linear-gradient(145deg, #0000 0 5px, #2d160009 6px 7px),
    linear-gradient(115deg, #9c762f, #584017 40%, #876323 72%, #d8ac56);
  transition: transform 0.65s cubic-bezier(0.65, 0.05, 0.33, 1);
}
.door::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 2px solid #a58a63;
  outline: 1px solid #38280d;
  outline-offset: 4px;
}
.leftDoor {
  left: 0;
  transform: translateX(-102%);
}
.rightDoor {
  right: 0;
  transform: translateX(102%);
}
.closing .door,
.closed .door,
.glow .door {
  transform: translateX(0);
}
.seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff2b9;
  box-shadow:
    0 0 15px 6px gold,
    0 0 45px 14px #fbaf39;
  opacity: 0;
}
.glow .seam {
  opacity: 1;
  transition: opacity 0.3s;
}
.vaultArea > p {
  text-align: center;
}
.resultDate {
  justify-content: center;
}
.ticket {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.ticket > img {
  display: block;
  width: 100%;
  border-radius: 5px;
}
.ticketText {
  position: absolute;
  left: 16.3%;
  top: 31.9%;
  width: 67.4%;
  height: 36.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(10px, 3.5cqw, 21px);
  line-height: 1.5;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  padding: 0 1%;
}
.ticketText.gold {
  color: #4a2e0e;
}
.ticketText.black {
  color: #e6e2df;
}
.resultActions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.wordTicket {
  position: relative;
  background: linear-gradient(115deg, #f5e7ba, #ffefd1, #f0da9d);
  color: #62462c;
  text-align: center;
  border: 4px double #aa854b;
  border-radius: 4px;
  padding: 18px 24px;
}
.wordTicket small,
.wordTicket span {
  display: block;
  color: #765633;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.wordTicket p {
  font: 600 clamp(1.15rem, 2vw, 1.6rem) / 1.7 var(--serif);
  margin: 10px 0;
}
.wordTicket > svg {
  color: #b38a42;
  margin-bottom: 4px;
}
.machine {
  position: relative;
  max-width: 720px;
  margin: auto;
  padding: 15px 22px 12px;
  border: 5px double #8b6323;
  border-radius: 29px 29px 16px 16px;
  box-shadow:
    0 10px 0 #5e3b0f,
    0 13px 0 #b1863c,
    0 19px 26px #6f470e33,
    inset 0 0 0 2px #ffeab1,
    inset 0 0 16px #93651a77;
  background: linear-gradient(
    115deg,
    #a97725 0%,
    #efd281 22%,
    #d5a449 45%,
    #fae296 70%,
    #b37a28 100%
  );
}
.machineTop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #412803;
  margin: 0 auto 14px;
}
.machineTop i {
  flex: 1;
  height: 5px;
  border-block: 1px solid #79541c;
}
.machineTop span {
  font: 600 1.28rem var(--serif);
  white-space: nowrap;
}
.machineTop svg {
  width: 15px;
}
.machineBody {
  position: relative;
  padding-right: 29px;
}
.reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  border-radius: 8px;
  border: 4px ridge #d4a54c;
  background: #4c310f;
  padding: 7px;
}
.reelCol {
  min-width: 0;
  text-align: center;
}
.reel {
  height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-radius: 4px;
  color: #432e0c;
  box-shadow: inset 0 3px 8px #4c34296b;
  background: linear-gradient(
    #bb9c6e,
    #f4e4bd 14%,
    #fff4d8 41%,
    #f8eccb 70%,
    #b79a70
  );
}
.reel small {
  color: #775c44;
  font: 500 0.83rem var(--serif);
  padding-top: 5px;
}
.reel strong {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: 650 clamp(0.88rem, 1.7vw, 1.32rem) / 1.3 var(--serif);
  letter-spacing: 0.08em;
  max-height: 140px;
  overflow-wrap: anywhere;
  align-content: center;
  flex: 1;
}
.rolling strong {
  animation: rattle 0.13s linear infinite;
}
.stop {
  width: 100%;
  border-radius: 5px;
  margin-top: 7px;
  background: linear-gradient(#fae399, #dfb450);
  color: #3e2707;
  border: 1px solid #d0a050;
  font-size: 0.83rem;
  padding: 7px 0;
  box-shadow: 0 2px #5e411b;
}
.stop.stopped {
  opacity: 1;
  background: #64481c;
  color: #fff1bd;
}
.lever {
  position: absolute;
  right: 0;
  top: 25%;
  height: 85px;
  width: 29px;
  padding: 0;
  opacity: 1 !important;
}
.lever i {
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 8px;
  height: 69px;
  transform: rotate(9deg);
  transform-origin: bottom;
  background: linear-gradient(90deg, #614b32, #f7d897, #886a42);
  border-radius: 9px;
}
.lever b {
  position: absolute;
  top: 1px;
  right: -5px;
  width: 27px;
  height: 27px;
  background: radial-gradient(circle at 32% 25%, #f8b8a8, #a34c59 46%, #5c263d);
  border: 1px solid #c59c7a;
  border-radius: 50%;
  box-shadow: 0 3px 4px #211725;
}
.pulled {
  transform: rotateX(25deg) translateY(9px);
}
.machineFoot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin-top: 14px;
}
.tray {
  width: 31%;
  height: 18px;
  background: #281b0a;
  border: 4px ridge #a4814e;
  border-radius: 3px;
  transform: skew(-6deg);
}
.tray.lit {
  background: #f6cf7c;
  box-shadow: 0 0 17px #f8c66d99;
}
.slotStatus {
  text-align: center;
  color: var(--muted);
  margin: 26px 0 19px;
  line-height: 1.65;
}
.slotPage > .mascot,
.trayResult {
  max-width: 720px;
  margin: 18px auto;
}
.trayResult {
  display: grid;
  gap: 12px;
  animation: arrive 0.55s ease-out;
}
.trayResult button {
  justify-self: center;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rattle {
  from {
    transform: translateY(-3px);
    opacity: 0.7;
  }
  to {
    transform: translateY(3px);
  }
}
@media (min-width: 1520px) {
  .shell {
    padding-top: 32px;
  }
  .favorites {
    margin-top: 33px;
  }
}
@media (max-width: 740px) {
  .mastInner,
  .shell {
    width: calc(100% - 32px);
  }
  .mastInner {
    height: 62px;
  }
  .brand {
    gap: 8px;
  }
  .crest {
    width: 37px;
    height: 37px;
  }
  .brand > span:last-child {
    font-size: 1.17rem;
  }
  .brand small {
    font-size: 0.56rem;
  }
  .headRight {
    gap: 10px;
  }
  .date {
    font-size: 0.75rem;
    gap: 5px;
    letter-spacing: 0;
  }
  .avatar {
    width: 33px;
    height: 33px;
  }
  .shell {
    padding-top: 16px;
  }
  .hero {
    min-height: 0;
    height: clamp(340px, 58vw, 405px);
  }
  .heroContent {
    padding: 25px;
  }
  .heroArt {
    object-position: 64% center;
  }
  .heroShade {
    background:
      linear-gradient(90deg, #352209ed, #452b0bc2 31%, transparent 82%),
      linear-gradient(0deg, #2f1d0a6b, transparent 48%);
  }
  .hero h1 {
    font-size: clamp(2.8rem, 7.7vw, 3.45rem);
  }
  .hero p {
    font-size: 0.96rem;
  }
  .heroButton {
    min-width: 160px;
    min-height: 46px;
  }
  .favorites {
    margin-top: 22px;
  }
  .sectionTitle {
    margin-bottom: 13px;
  }
  .bottomNav > div {
    height: 60px;
  }
  .bottomNav button {
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
  }
  .bottomNav button.selected:before {
    width: 48%;
  }
  .bottomNav button svg {
    width: 21px;
  }
  .emptyFavorite {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
  }
  .emptyFavorite p {
    font-size: 0.9rem;
  }
  .emptyFavorite .textButton {
    margin-left: 28px;
  }
  .pageIntro {
    margin: 6px 0 20px;
  }
  .pageIntro p {
    font-size: 0.95rem;
  }
  .historyRow {
    grid-template-columns: 55px 1fr 16px;
    gap: 10px;
  }
  .profileCard {
    padding: 16px;
    gap: 15px;
  }
  .profileCard img {
    width: 76px;
    height: 76px;
  }
  .machine {
    padding: 12px 10px 10px;
  }
  .machineBody {
    padding-right: 23px;
  }
  .lever {
    right: -3px;
  }
  .reels {
    gap: 4px;
    padding: 5px;
  }
  .reel {
    height: 175px;
  }
  .machineFoot {
    gap: 12px;
  }
  .machineTop span {
    font-size: 1rem;
  }
  .stop {
    font-size: 0.75rem;
  }
  .dialog {
    --inset: 17px;
  }
  .toast {
    bottom: 73px;
  }
}
@media (max-width: 520px) {
  .mastInner,
  .shell {
    width: calc(100% - 26px);
  }
  .date {
    font-size: 0.72rem;
  }
  .date svg {
    width: 14px;
  }
  .hero {
    height: 380px;
    align-items: flex-end;
  }
  .heroArt {
    object-position: 71% top;
  }
  .heroShade {
    background:
      linear-gradient(
        0deg,
        #2e1b04fa 0%,
        #362107da 22%,
        #492d0c77 52%,
        transparent 79%
      ),
      linear-gradient(90deg, #462d0a57, transparent 65%);
  }
  .heroContent {
    padding: 21px 23px 25px;
  }
  .hero h1 {
    margin: 7px 0 6px;
    font-size: 2.87rem;
  }
  .hero p {
    line-height: 1.67;
  }
  .pill {
    font-size: 0.76rem;
    padding: 4px 9px;
  }
  .heroButton {
    margin-top: 13px;
    min-height: 44px;
  }
  .sectionTitle {
    font-size: 1.2rem;
  }
  .reel strong {
    font-size: 0.94rem;
  }
  .reel {
    height: 178px;
  }
  .reels {
    padding: 4px;
    gap: 3px;
    border-width: 3px;
  }
  .machineTop {
    gap: 7px;
  }
  .machineFoot .goldButton {
    font-size: 0.88rem;
    padding: 8px 13px;
    min-height: 40px;
  }
  .machine .stop {
    font-size: 0.67rem;
    letter-spacing: -0.07em;
  }
  .profileCard {
    align-items: flex-start;
    gap: 10px;
  }
  .profileCard img {
    width: 61px;
    height: 61px;
  }
  .profileCard h2 {
    font-size: 1.3rem;
  }
  .profileCard p,
  .mascot p {
    font-size: 0.93rem;
  }
  .resultActions button {
    padding: 9px 13px;
    font-size: 0.88rem;
  }
  .dialog .mascot {
    padding: 7px;
  }
  .dialog .mascot img {
    width: 61px;
  }
  .historyRow p {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rolling strong {
    animation: none;
  }
}
.heroFox {
  position: absolute;
  right: 19px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  filter: drop-shadow(0 3px 4px #322007bc);
}
.heroFox img {
  object-fit: contain;
  width: 78px;
  height: 78px;
}
.heroFox span {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #ffedc5;
  background: #3f290ce8;
  border: 1px solid #d2a744;
  border-radius: 12px;
  padding: 1px 10px;
  margin-top: -4px;
}
.savedNotice {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--gold);
  margin-top: 10px;
}
@media (max-width: 520px) {
  .heroFox {
    right: 12px;
    bottom: 13px;
  }
  .heroFox img {
    width: 61px;
    height: 61px;
  }
  .heroFox span {
    font-size: 0.69rem;
  }
}
.ticketShare {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff4cd;
  min-width: 0;
  text-align: left;
}
.ticketShare summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #543407;
  font-weight: 650;
  padding: 12px 14px;
  list-style: none;
}
.ticketShare summary::-webkit-details-marker {
  display: none;
}
.ticketShare summary:focus-visible {
  outline: 3px solid #80520f;
  outline-offset: 2px;
}
.ticketShare[open] summary {
  border-bottom: 1px solid #b48a4a;
}
.shareBody {
  padding: 15px;
  display: grid;
  gap: 13px;
}
.shareBody p {
  font-size: 0.91rem;
  line-height: 1.65;
}
.shareDest,
.shareFormats,
.shareTools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shareDest button,
.shareFormats button {
  border: 1px solid #ae843d;
  background: #fff8df;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.9rem;
  color: #533508;
}
.shareDest button[aria-pressed="true"],
.shareFormats button[aria-pressed="true"] {
  background: #62400b;
  border-color: #62400b;
  color: #fff2c3;
}
.shareBody legend {
  font-weight: 650;
  font-size: 0.9rem;
}
.shareMedia {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.shareMedia > img {
  max-width: 108px;
  max-height: 174px;
  justify-self: center;
  height: auto;
  border-radius: 4px;
}
.shareSteps {
  display: grid;
  gap: 9px;
}
.shareSteps .goldButton,
.shareTools .outlineButton {
  padding: 8px 12px;
  font-size: 0.9rem;
  min-height: 40px;
}
.shareBody .field {
  font-size: 0.86rem;
}
.shareBody .field input {
  font: inherit;
  background: #fffaf0;
}
.shareStatus:empty {
  display: none;
}
.shareStatus {
  color: var(--gold);
}
.trayResult .ticketShare button {
  justify-self: auto;
}
@media (max-width: 420px) {
  .shareMedia {
    grid-template-columns: 77px minmax(0, 1fr);
    gap: 9px;
  }
  .shareMedia > img {
    max-width: 77px;
    max-height: 137px;
  }
  .shareDest {
    gap: 4px;
  }
  .shareDest button {
    padding: 7px 8px;
  }
  .shareBody {
    padding: 12px;
  }
}
