:root {
  --ink: #302c2b;
  --muted: #706966;
  --soft: #8d8580;
  --teal: #317e7c;
  --teal-dark: #246d6a;
  --blush: #f8f1f0;
  --mint: #edf5f2;
  --paper: #fffefc;
  --line: #e9e4e0;
  --shadow: 0 18px 35px rgba(63, 48, 44, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--blush);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .015em;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-column {
  width: min(100%, 600px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(72, 52, 51, .08);
  position: relative;
  z-index: 1;
}
.shell { width: min(100% - 70px, 510px); margin-inline: auto; }

/* Quiet desktop frame */
.desktop-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  pointer-events: none;
}
.rail-left { left: max(24px, calc(50% - 535px)); padding: 105px 0 50px; }
.rail-right { right: max(24px, calc(50% - 535px)); padding: 143px 0 94px; justify-content: space-between; }
.rail-brand { font-size: 26px; font-weight: 750; letter-spacing: .15em; white-space: nowrap; }
.rail-doodle { width: 130px; height: 110px; margin: 17px auto 22px; color: #49423f; transform: rotate(-7deg); }
.rail-vertical { margin: 0; writing-mode: vertical-rl; font-size: 17px; font-weight: 700; line-height: 2.2; letter-spacing: .22em; }
.rail-caption, .rail-small { color: #8f8682; font-family: Georgia, serif; font-size: 10px; letter-spacing: .12em; }
.rail-caption { margin-top: auto; }
.rail-small { margin-top: 26px; }
.rail-seal { width: 126px; height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 47% 53% 54% 46%; background: #fff; color: #cc9a91; font-size: 39px; transform: rotate(9deg); }
.rail-seal small { color: #7d7772; font-family: Georgia, serif; font-size: 10px; letter-spacing: .15em; }

/* Shared header */
.site-header { height: 90px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; }
.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e5f0ec; color: var(--teal); font-size: 21px; font-weight: 400; line-height: 1; }
.header-nav { display: flex; align-items: center; gap: 16px; }
.header-nav > a, .header-note { color: #5e5854; font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-nav > a:hover, .header-note:hover { color: var(--teal); }
.header-nav .nav-cta { padding: 10px 14px; border-radius: 999px; background: var(--teal); color: #fff; }
.header-nav .nav-cta:hover { color: #fff; background: var(--teal-dark); }
.header-note { color: var(--teal); }

/* Intro */
.hero { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 46px 0 67px; text-align: center; }
.hero-copy { width: 100%; }
.eyebrow, .section-kicker { color: var(--teal); font-family: Georgia, "Yu Gothic", serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hero h1 { margin: 23px 0 20px; font-size: clamp(44px, 6vw, 63px); font-weight: 750; line-height: 1.36; letter-spacing: .04em; }
.hero h1 em, .redeem-heading h1 em { color: var(--teal); font-style: normal; }
.hero-copy > p { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 2.25; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-width: 185px; margin-top: 27px; padding: 14px 22px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 750; transition: transform .18s, background .18s; }
.hero-link:hover { background: var(--teal-dark); transform: translateY(-2px); }
.hero-link span { font-size: 17px; font-weight: 400; }
.hero-art { width: 100%; min-height: 330px; display: grid; place-items: center; position: relative; isolation: isolate; margin-top: 30px; }
.hero-art::before { content: ""; position: absolute; z-index: -2; width: 345px; height: 305px; border-radius: 44% 56% 58% 42%; background: #f7e9e6; transform: rotate(13deg); }
.spark { position: absolute; border-radius: 50%; z-index: -1; }
.spark-one { width: 11px; height: 11px; top: 31px; right: 72px; background: #76aaa5; }
.spark-two { width: 7px; height: 7px; bottom: 34px; left: 59px; background: #d3aaa1; }
.spark-three { width: 10px; height: 10px; top: 70px; left: 45px; background: #ddc7a0; }
.sample-ticket { width: min(410px, 92%); height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px 26px 23px; border: 1px solid #e8ded8; border-radius: 19px; background: #fffefa; box-shadow: 0 24px 38px rgba(77, 55, 48, .13); position: relative; transform: rotate(-5deg); }
.sample-ticket::before, .sample-ticket::after { content: ""; position: absolute; bottom: 47px; width: 24px; height: 24px; border-radius: 50%; background: #f7e9e6; border: 1px solid #e8ded8; }
.sample-ticket::before { left: -13px; }
.sample-ticket::after { right: -13px; }
.sample-ticket-top, .sample-ticket-bottom { display: flex; justify-content: space-between; align-items: center; color: #817874; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.sample-ticket-top span:first-child { color: var(--ink); font-size: 14px; letter-spacing: .08em; }
.sample-ticket-center { display: flex; align-items: center; flex-direction: column; gap: 8px; text-align: center; }
.sample-star { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8f2ee; color: var(--teal); font-size: 21px; }
.sample-ticket-center strong { font-size: 36px; font-weight: 750; letter-spacing: .04em; }
.sample-ticket-center small { color: #766e69; font-size: 10px; }
.sample-ticket-bottom { padding-top: 14px; border-top: 1px dashed #ddd2ca; }

/* Simple guide */
.steps-band { position: relative; background: var(--mint); border-radius: 48% 48% 0 0 / 27px 27px 0 0; }
.steps { min-height: 118px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.steps div { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; white-space: nowrap; }
.steps b { color: var(--teal); font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.steps i { color: #9bb8af; font-size: 16px; font-style: normal; font-weight: 400; }

/* Create */
.maker.shell { width: 100%; padding: 64px 44px 76px; background: var(--mint); scroll-margin-top: 20px; }
.section-heading { margin-bottom: 31px; text-align: center; }
.section-heading h2 { margin: 12px 0 10px; font-size: 33px; line-height: 1.4; font-weight: 750; letter-spacing: .04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.maker-grid { display: flex; flex-direction: column; gap: 39px; }
.form-panel { padding: 31px; border: 1px solid #e6e9e5; border-radius: 23px; background: var(--paper); box-shadow: 0 7px 22px rgba(54, 73, 63, .04); }
.form-panel label, .redeem-panel label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.form-panel > label:not(:first-child) { margin-top: 25px; }
.required, .optional { padding: 2px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.required { color: var(--teal); background: #e8f2ee; }
.optional { color: #817b75; background: #f1eeea; }
.form-panel input, .form-panel textarea, .redeem-panel input { width: 100%; border: 1px solid #e5e2dd; border-radius: 10px; outline: none; padding: 13px 14px; background: #fcfbf8; color: var(--ink); font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.form-panel input, .redeem-panel input { min-height: 51px; }
.form-panel textarea { min-height: 90px; resize: vertical; }
.form-panel input:focus, .form-panel textarea:focus, .redeem-panel input:focus { border-color: #75aaa4; box-shadow: 0 0 0 3px rgba(49, 126, 124, .13); }
.form-panel input::placeholder, .form-panel textarea::placeholder, .redeem-panel input::placeholder { color: #a29993; }
.field-hint { margin: 7px 0 0; color: #77716b; font-size: 11px; line-height: 1.7; }
.pin-choice { margin: 27px 0 0; padding: 0; border: 0; }
.pin-choice legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 750; }
.pin-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.form-panel .pin-option { display: flex; align-items: flex-start; gap: 8px; min-height: 82px; margin: 0; padding: 13px 11px; border: 1px solid #e5e2dd; border-radius: 11px; background: #fcfbf8; cursor: pointer; transition: border-color .18s, background .18s; }
.form-panel .pin-option:has(input:checked) { border-color: var(--teal); background: #edf5f2; }
.form-panel .pin-option input { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 2px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; accent-color: var(--teal); }
.pin-option span { display: block; min-width: 0; }
.pin-option strong { display: block; font-size: 12px; line-height: 1.4; }
.pin-option small { display: block; margin-top: 5px; color: #756d68; font-size: 10px; font-weight: 500; line-height: 1.5; }
#staff-pin-wrap > label { margin-top: 23px; }
.pin-mode-help { margin-top: 12px; }
.primary-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 750; transition: transform .18s, background .18s; }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-error { margin: 16px 0 0; color: #ae4844; font-size: 12px; line-height: 1.7; }
.preview-column { width: 100%; }
.preview-label { display: flex; align-items: center; gap: 8px; margin: 0 0 15px 8px; color: #5b6f68; font-size: 12px; font-weight: 750; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Ticket, shared by preview and recipient */
.ticket-card { overflow: hidden; position: relative; border: 1px solid #e5ded7; border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); }
.ticket-card-top { height: 96px; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 25px; position: relative; overflow: hidden; background: linear-gradient(118deg, #f5e8e3 0%, #f1eee5 52%, #e7f1ec 100%); color: #61544d; font-size: 13px; font-weight: 750; letter-spacing: .07em; }
.ticket-card-top::after { content: ""; position: absolute; width: 170px; height: 170px; right: 40px; top: -117px; border-radius: 50%; border: 1px solid rgba(255,255,255,.67); box-shadow: 0 0 0 24px rgba(255,255,255,.12); }
.ticket-flower { width: 30px; height: 30px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; background: #fff9f6; color: var(--teal); font-size: 21px; font-weight: 400; line-height: 1; }
.ticket-card-main { min-height: 194px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.ticket-mini { color: #678982; font-family: Georgia, serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ticket-card-main h2, .ticket-card-main h3 { margin: 13px 0 8px; font-size: 36px; line-height: 1.35; font-weight: 750; letter-spacing: .03em; overflow-wrap: anywhere; }
.ticket-card-main p { margin: 0; color: #706966; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-divider { height: 1px; margin: 0 19px; border-top: 1px dashed #ded3cc; position: relative; }
.ticket-divider::before, .ticket-divider::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border: 1px solid #e5ded7; border-radius: 50%; background: var(--mint); }
.ticket-divider::before { left: -31px; }
.ticket-divider::after { right: -31px; }
.ticket-card-foot { display: flex; justify-content: space-between; gap: 15px; padding: 20px 25px 24px; }
.ticket-card-foot div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ticket-card-foot div:last-child { text-align: right; }
.ticket-card-foot small { color: #827b75; font-family: Georgia, serif; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.ticket-card-foot strong { color: #494440; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.preview-caption { margin: 18px 0 0; color: #62716b; font-size: 11px; text-align: center; }

/* Share */
.result-section.shell { width: 100%; padding: 0 44px 80px; background: var(--mint); scroll-margin-top: 20px; }
.result-box { display: flex; gap: 14px; padding: 25px; border: 1px solid #ddebe4; border-radius: 22px; background: var(--paper); }
.result-icon, .finish-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e5f3ed; color: var(--teal); font-size: 19px; font-weight: 750; }
.result-content { min-width: 0; flex: 1; }
.result-content h2 { margin: 8px 0 6px; font-size: 22px; line-height: 1.4; }
.result-content > p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.url-row { display: flex; margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.url-row input { flex: 1; min-width: 0; border: 0; padding: 12px; color: #5d5753; background: transparent; font-size: 11px; }
.url-row button { border: 0; padding: 0 14px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.share-actions a, .share-actions button { padding: 9px 11px; border: 1px solid #deded8; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; }
.share-actions a:first-child { border-color: #06c755; background: #06c755; color: #fff; }
.result-reminder { color: #7d736e !important; font-size: 11px !important; }
.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #918883; font-size: 10px; }
.site-footer .brand { color: #6e6661; font-size: 13px; }
.site-footer .brand-icon { width: 23px; height: 23px; font-size: 15px; }
.site-footer { flex-wrap: wrap; }
.site-footer .contact-link { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer .contact-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.contact-dialog { width: min(410px, calc(100vw - 32px)); border: 1px solid #e7cfc2; border-radius: 10px; padding: 28px; background: #fffefd; color: #453c37; box-shadow: 0 24px 70px #392d2a40; font-family: var(--site-font, sans-serif); }
.contact-dialog::backdrop { background: #281c1980; }
.contact-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.contact-dialog p { margin: 0 0 20px; font-size: 13px; line-height: 1.7; }
.contact-destination { display: block; overflow-wrap: anywhere; color: #9d5e48; font-size: 16px; font-weight: 700; text-underline-offset: 4px; }
.contact-close { display: block; margin: 24px 0 0 auto; border: 1px solid #d9c5ba; border-radius: 8px; padding: 9px 18px; background: #fff8f4; color: #453c37; font: 700 12px var(--site-font, sans-serif); cursor: pointer; }
.contact-destination:focus-visible, .contact-close:focus-visible { outline: 2px solid #a96850; outline-offset: 3px; }

/* Redeem */
.redeem-main { padding: 44px 0 75px; }
.redeem-heading { margin-bottom: 35px; text-align: center; }
.redeem-heading h1 { margin: 14px 0 10px; font-size: 43px; line-height: 1.45; font-weight: 750; letter-spacing: .05em; }
.redeem-heading p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.full-ticket .ticket-card-top { height: 112px; }
.full-ticket .ticket-card-main { min-height: 214px; }
.full-ticket .ticket-card-main h2 { font-size: 42px; }
.full-ticket .ticket-card-foot { padding: 24px 26px 27px; }
.full-ticket .ticket-card-foot strong { font-size: 12px; }
.full-ticket .ticket-divider::before, .full-ticket .ticket-divider::after { background: var(--paper); }
.full-ticket.is-finished { filter: saturate(.4); }
.ticket-download-action { margin: 8px 0 22px; text-align: center; }
.ticket-download-action button { border: 1px solid #d6b8a9; border-radius: 10px; padding: 10px 18px; background: #fff8f4; color: #7b4b3c; font-size: 12px; font-weight: 700; }
.ticket-download-action button:hover { background: #f9e3d9; }
.ticket-download-action button:focus-visible { outline: 2px solid #a96850; outline-offset: 3px; }
.ticket-download-action button:disabled { opacity: .55; cursor: wait; }
.ticket-download-action p { margin: 7px 0 0; color: #765f55; font-size: 11px; }
.used-stamp { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-9deg); padding: 7px 20px; border: 3px solid #837871; border-radius: 8px; background: rgba(255,254,252,.9); color: #716761; font-size: 27px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.redeem-panel, .finished-panel { margin-top: 23px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(63,48,44,.04); }
.panel-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }
.panel-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e7f2ed; color: var(--teal); font-size: 20px; }
.panel-heading h2 { margin: 2px 0 5px; font-size: 16px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.redeem-panel input { margin-bottom: 18px; }
.slide-track { height: 63px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: 999px; background: #e9f1ed; touch-action: none; user-select: none; outline: none; }
.slide-track:focus-visible { box-shadow: 0 0 0 3px rgba(49,126,124,.2); }
.slide-track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--progress,0%) + 31px); background: #cfe7de; transition: width .1s; }
#slide-label { padding-left: 40px; color: #356e69; font-size: 12px; font-weight: 750; pointer-events: none; }
.slide-handle { position: absolute; left: var(--handle-left,5px); top: 5px; width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; box-shadow: 0 3px 9px rgba(49,126,124,.2); cursor: grab; touch-action: none; font-size: 23px; font-weight: 500; transition: left .1s; }
.slide-track.dragging .slide-handle { cursor: grabbing; transition: none; }
.slide-help { margin: 12px 0 0; color: #7d7873; font-size: 10px; text-align: center; }
.finished-panel { text-align: center; }
.finished-panel .finish-icon { margin: 0 auto; }
.finished-panel h2 { margin: 12px 0 6px; font-size: 20px; }
.finished-panel p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.finished-panel time { color: #857d78; font-size: 11px; }
.finished-panel a { display: inline-block; margin-top: 10px; color: var(--teal); font-size: 12px; font-weight: 750; }
.back-home { margin-top: 28px; color: var(--teal); font-size: 12px; font-weight: 750; text-align: center; }

@media (max-width: 1110px) {
  .desktop-rail { display: none; }
}
@media (max-width: 600px) {
  .site-column { width: 100%; box-shadow: none; }
  .shell { width: min(100% - 36px, 510px); }
  .site-header { height: 69px; }
  .brand { font-size: 16px; }
  .brand-icon { width: 29px; height: 29px; font-size: 19px; }
  .header-nav > a:first-child { display: none; }
  .header-nav .nav-cta { padding: 9px 12px; font-size: 11px; }
  .header-note { font-size: 11px; }
  .hero { padding: 51px 0 58px; }
  .hero h1 { margin: 18px 0 19px; font-size: clamp(43px, 11vw, 56px); }
  .hero-copy > p { font-size: 12px; line-height: 2.1; }
  .hero-link { margin-top: 24px; }
  .hero-art { min-height: 287px; margin-top: 25px; }
  .hero-art::before { width: 280px; height: 255px; }
  .sample-ticket { width: min(355px, 93%); height: 224px; padding: 18px 21px 20px; }
  .sample-ticket-center strong { font-size: 30px; }
  .sample-ticket-center small { font-size: 9px; }
  .sample-ticket-bottom { padding-top: 11px; font-size: 8px; }
  .sample-ticket::before, .sample-ticket::after { bottom: 40px; width: 21px; height: 21px; }
  .sample-ticket::before { left: -11px; }
  .sample-ticket::after { right: -11px; }
  .steps { min-height: 101px; }
  .steps div { font-size: 10px; }
  .steps b { font-size: 10px; }
  .steps i { font-size: 11px; }
  .maker.shell { padding: 57px 18px 67px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { font-size: 12px; }
  .form-panel { padding: 24px 20px; }
  .ticket-card-main h3 { font-size: 30px; }
  .result-section.shell { padding: 0 18px 65px; }
  .result-box { padding: 20px 18px; gap: 10px; }
  .result-icon { width: 30px; height: 30px; font-size: 16px; }
  .result-content h2 { font-size: 19px; }
  .site-footer { min-height: 72px; }
  .redeem-main { padding: 47px 0 67px; }
  .redeem-heading h1 { font-size: 36px; }
  .full-ticket .ticket-card-main h2 { font-size: 35px; }
  .full-ticket .ticket-card-top { height: 94px; }
  .full-ticket .ticket-card-main { min-height: 185px; }
  .full-ticket .ticket-card-foot { padding: 20px 23px 24px; }
  .redeem-panel, .finished-panel { padding: 22px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
