:root {
  color-scheme: light;
  --ink: #092d32;
  --green: #09694f;
  --line: #bdcec8;
  --paper: #f6f8f4;
  --muted: #46615d;
  --bright: #c9f86d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
.text-action {
  font-weight: 750;
}
button {
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: white;
  min-height: 46px;
  padding: 0.58rem 1.15rem;
  cursor: pointer;
}
button:hover:not(:disabled) {
  background: #064c3e;
}
button:disabled {
  background: #e3e8e4;
  border-color: #d2dbd5;
  color: #5a6864;
  cursor: default;
}
button.secondary {
  color: var(--green);
  background: white;
}
button.secondary:hover:not(:disabled) {
  background: #e2f4e9;
}
:focus-visible {
  outline: 3px solid #db8509;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1040px;
  margin: auto;
  padding: 0 clamp(17px, 5vw, 56px);
}
main.wrap {
  padding-top: clamp(26px, 5vw, 56px);
  padding-bottom: 80px;
}
.mast {
  background: #082c2d;
  border-bottom: 4px solid #31b781;
  color: white;
}
.mast-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.mast-inner > span {
  border-left: 1px solid #729a87;
  padding-left: 18px;
  font-weight: 650;
  font-size: 0.96rem;
}
.brand {
  display: flex;
}
.brand img {
  width: 112px;
  height: 40px;
  object-fit: contain;
}
.back {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 18px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  line-height: 1.28;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1rem;
  line-height: 1.35;
}
/* Unspaced catalogue names can exceed even a full row on a small phone. */
h1, h2, h3, .station small, .station-heading, .viewer-location {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hero > div, .station > div:not(.machine-art) {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h1 {
  margin: 0;
}
.section-head > span,
.footnote,
.sub,
.card-body p,
.prize span,
.station small {
  color: var(--muted);
}
.footnote {
  margin-top: 30px;
  font-size: 0.87rem;
}
.sub {
  margin: -10px 0 22px;
}
.stations,
.shelf,
.prizes {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.station,
.product,
.panel,
.entry,
.hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.station {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 17px;
  box-shadow: 0 3px 0 #d8e2d9;
}
.virtual {
  background: #e6f5e7;
  border-color: #92bba8;
}
.station:hover,
.product:is(a):hover {
  border-color: var(--green);
  box-shadow: 0 3px 0 #92bba8;
}
.chevron {
  margin-left: auto;
  font-size: 2rem;
  color: var(--green);
}
.machine-art {
  width: 54px;
  height: 60px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--green);
}
.network {
  font-size: 49px;
  line-height: 1;
}
.kiosk {
  position: relative;
}
.kiosk i {
  width: 29px;
  height: 44px;
  border: 3px solid currentColor;
  border-radius: 5px;
  position: relative;
}
.kiosk i:before,
.kiosk i:after {
  content: "";
  position: absolute;
  background: currentColor;
}
.kiosk i:before {
  inset: 4px 3px 13px;
  border-radius: 1px;
}
.kiosk i:after {
  width: 8px;
  height: 2px;
  bottom: 5px;
  left: 7px;
}
.station small {
  display: block;
  margin-bottom: 4px;
}
.product {
  display: block;
  overflow: hidden;
}
.art {
  width: 100%;
  height: auto;
  aspect-ratio: 2.15;
  object-fit: contain;
  background: #e8eeea;
  display: block;
}
.card-body {
  padding: 18px;
}
.card-body h2 {
  margin-bottom: 8px;
}
.price {
  font-weight: 700;
}
.card-body p,
.card-body small {
  font-size: 0.94rem;
}
.card-body .state,
.controls .state {
  font-weight: 750;
  color: #7a441c;
}
.state:not(:empty) {
  margin: 0.75rem 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.text-action {
  display: block;
  margin-top: 14px;
  color: var(--green);
}
.empty,
.entry,
.panel {
  padding: 24px;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  grid-column: 1/-1;
}
.hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px;
  flex-wrap: wrap;
}
.hero img {
  width: min(100%, 280px);
  aspect-ratio: 2;
  object-fit: contain;
  background: var(--paper);
  border-radius: 7px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  margin-bottom: 8px;
}
.hero strong {
  font-size: 0.95rem;
  color: var(--green);
}
.controls {
  margin: 14px 0;
}
.panel,
.entry,
#select,
#detail {
  margin-top: 22px;
}
.entry {
  max-width: 420px;
  display: grid;
  gap: 14px;
}
.entry label,
.panel label {
  font-weight: 700;
}
input {
  border: 1px solid #94a79d;
  border-radius: 6px;
  min-height: 46px;
  padding: 0.4rem 0.6rem;
  min-width: 0;
}
#purchase input {
  width: 6rem;
  margin: 0 8px;
}
#errors {
  color: #a63527;
  font-weight: 650;
}
#errors:not(:empty) {
  margin-bottom: 12px;
}
.prizes {
  margin: 14px 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr));
  gap: 12px;
}
.prize {
  border: 1px solid #bbcbc3;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.prize img {
  width: 100%;
  height: 132px;
  display: block;
  object-fit: contain;
  background: #edf2ee;
}
.prize > div {
  padding: 10px 13px 14px;
}
.stamp {
  display: inline-block;
  background: #123d37;
  border-radius: 5px;
  color: white;
  padding: 1px 7px;
  margin-bottom: 5px;
}
.stamp small {
  font-size: 0.68em;
}
.prize span {
  font-size: 0.85rem;
}
.prize h3 {
  margin-bottom: 6px;
}
#tickets,
#pages {
  display: grid;
  gap: 6px;
  margin: 0.8rem 0;
}
#tickets {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
#pages {
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
}
#tickets button,
#pages button {
  padding: 0.4em 0.1em;
  background: white;
  color: var(--green);
  border-radius: 4px;
}
#tickets button:disabled {
  background: #e2e7e3;
  color: #65726c;
  border-color: #c5d1c7;
}
#tickets button[aria-pressed="true"],
#pages button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
#rewards {
  padding-left: 1.5rem;
  font-weight: 700;
}
.panel h2 {
  margin-bottom: 10px;
}
@media (max-width: 540px) {
  .stations,
  .shelf {
    gap: 12px;
  }
  .prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prize img {
    height: 112px;
  }
  .hero {
    gap: 10px;
  }
  .hero img {
    width: 100%;
  }
  .section-head {
    align-items: end;
  }
  #tickets {
    gap: 3px;
  }
  #purchase {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  #purchase button {
    grid-column: 1/-1;
  }
}
#tickets .paper {
  position: relative;
  aspect-ratio: 1.5;
  min-height: 34px;
  background: #0b2931 url(kuji-paper.webp) center/cover no-repeat;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #8ca8a1;
}
#tickets .paper span:not(.visually-hidden) {
  position: absolute;
  right: 1px;
  top: 1px;
  background: #062b30;
  color: white;
  font: 700 clamp(0.65rem, 2.5vw, 0.95rem) / 1.2 monospace;
  border: 1px solid #a5e6bd;
  border-radius: 3px;
  padding: 0 2px;
}
#tickets .paper[aria-pressed="true"] {
  outline: 3px solid var(--green);
  z-index: 1;
}
#tickets .paper:disabled {
  opacity: 0.45;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#rewards {
  list-style: none;
  padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
  #rewards .prize {
    animation: award-in 0.35s ease-out both;
  }
  @keyframes award-in {
    from {
      transform: translateY(10px) scale(0.98);
      opacity: 0;
    }
    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }
}

.payment-clock {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  margin: 0.5rem 0 0.85rem;
  border: 1px solid #d4ae66;
  border-radius: 0.45rem;
  padding: 0.45rem 0.8rem;
  color: #4b3108;
  background: #fff0c6;
  font-weight: 700;
}
.payment-clock strong {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}
#end-note:not(:empty) {
  padding: 0.5rem 0;
  font-weight: 650;
}
.product .stock-hold {
  margin: 0.35rem 15px;
  color: #ecdeb8;
  font-size: 0.9rem;
}
