.home-view { position: relative; isolation: isolate; display: grid; align-items: center; }
.hero {
  min-height: clamp(570px, calc(100svh - 138px), 830px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-block: 36px 154px;
}
.hero-copy { position: relative; z-index: 1; padding-inline-start: clamp(0px, 3vw, 48px); }
.hero h1 { margin: 15px 0 12px; font: 750 clamp(3.25rem, 7.2vw, 6.5rem)/1.1 var(--serif); letter-spacing: .09em; }
.hero-subtitle { color: #c1e2fb; letter-spacing: .18em; font: 600 clamp(1rem, 2.4vw, 1.5rem)/1.5 var(--serif); }
.hero-intro { max-width: 25rem; margin: 24px 0; color: var(--mist); line-height: 1.9; }
.hero-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 23px; color: #bbd0e7; font-size: .875rem; }
.hero-count strong, .count-line strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.count-star { color: var(--gold); font-size: 1.25rem; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 510px; width: 100%; justify-self: center; }
.hero-crystal, .preview-crystal [data-preview] { display: grid; place-items: center; z-index: 1; }
.hero-crystal { width: 76%; filter: drop-shadow(0 0 17px #7fc9ff8f); }
.hero-crystal svg, .preview-crystal svg, .card-art svg, .detail-art svg { display: block; width: 100%; height: auto; }
.orbit { position: absolute; border: 1px solid rgba(168, 216, 255, .2); border-radius: 50%; pointer-events: none; }
.orbit-outer { inset: 8%; border-style: dashed; }
.orbit-inner { inset: 13%; background: radial-gradient(circle, #80c7ff19, transparent 72%); }
.sparkle { position: absolute; color: var(--ice); font-size: 1.6rem; line-height: 1; }
.sparkle.one { top: 12%; left: 21%; }.sparkle.two { top: 17%; right: 11%; font-size: 1rem; color: var(--gold); }.sparkle.three { bottom: 19%; left: 12%; }
.postmark {
  position: absolute; bottom: 6%; right: 5%; display: grid; place-content: center; justify-items: center; gap: 2px;
  width: 94px; aspect-ratio: 1; border: 1px dashed #e8ce9c80; border-radius: 50%;
  color: var(--gold); background: #132947b0; transform: rotate(13deg); font-size: .64rem; letter-spacing: .08em;
}
.home-landscape { width: 100%; height: clamp(165px, 21vw, 270px); position: absolute; bottom: 0; z-index: -1; overflow: hidden; }
.home-landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.internal { padding-block: clamp(26px, 5vw, 60px); }
.page-heading { margin-bottom: 24px; }
.page-heading h1, .receipt h1 { color: var(--white); font: 700 clamp(2rem, 5vw, 3.65rem)/1.18 var(--serif); letter-spacing: .04em; margin: 7px 0 10px; }
.page-heading > p:not(.eyebrow), .receipt-card > p { color: var(--mist); }
.workbench { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 16px; }
.preview, .choices { padding: clamp(14px, 2.7vw, 30px); }
.preview { display: grid; grid-template-rows: auto 1fr; }
.preview-header { display: flex; justify-content: space-between; align-items: center; color: var(--mist); }
.preview-crystal { position: relative; display: grid; place-items: center; align-self: center; width: min(100%, 320px); aspect-ratio: 1; margin-inline: auto; }
.preview-crystal [data-preview] { width: 78%; filter: drop-shadow(0 0 12px #7fc9ff60); }
fieldset { padding: 0; border: 0; margin: 0 0 23px; min-inline-size: 0; }
fieldset:last-child { margin-bottom: 0; }
legend { padding: 0; margin-bottom: 9px; font-weight: 650; }
.shapes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, 1vw, 8px); }
.choice { background: #0b2039aa; border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 40px; font-size: .875rem; }
.choice[aria-pressed="true"], .segmented button[aria-pressed="true"] { color: var(--ice); border-color: var(--ice); background: #234765; }
.shape { display: grid; justify-items: center; gap: 3px; }
.shape svg { max-width: 100%; height: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.swatch { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; padding: 4px; }
.swatch span { border-radius: 50%; width: 100%; height: 100%; display: grid; place-items: center; }
.swatch[aria-pressed="true"] span::after { content: '✓'; color: #07162b; font-weight: 800; }
.color-picker {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 3px 10px 3px 4px;
  min-height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #0b2039aa; cursor: pointer; font-size: .875rem;
}
.color-picker.selected { color: var(--ice); border-color: var(--ice); background: #234765; }
.color-picker:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.color-picker input {
  appearance: none; width: 34px; height: 34px; padding: 4px; border: 0; border-radius: 50%;
  background: conic-gradient(#f38aa6, #f8d98e, #a7e3ba, #8acbff, #c3a9ff, #f38aa6); cursor: pointer;
}
.color-picker input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker input::-webkit-color-swatch { border: 2px solid var(--night); border-radius: 50%; }
.color-picker input::-moz-color-swatch { border: 2px solid var(--night); border-radius: 50%; }
.decorations { display: flex; gap: 6px; flex-wrap: wrap; }
.decoration { padding-inline: 10px; }
.creator { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.submit-dock {
  display: grid; justify-items: center; gap: 6px; z-index: 4; position: fixed; inset: auto 0 0;
  background: #091b32f5; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); text-align: center;
}
.submit-dock .button { width: min(100%, 420px); }
.receipt { max-width: 670px; text-align: center; }
.receipt .panel { padding: clamp(18px, 5vw, 48px); }
.receipt .eyebrow, .receipt .actions { justify-content: center; }
.receipt .actions { margin-top: 20px; align-items: center; }
.receipt-card .ticket { display: inline-block; padding: 5px 14px; border: 1px dashed #e8ce9c80; border-radius: 4px; color: var(--gold); margin: 18px 0 10px; }
.receipt-crystal { filter: drop-shadow(0 0 12px #8ad2ff7a); }
.arrival {
  min-height: 415px; overflow: hidden; position: relative;
  background: url('/assets/campus.svg') center bottom / auto 42% no-repeat, radial-gradient(ellipse at 50% 45%, #335b83, #142d4f);
}
.arrival h1 { font-size: clamp(1.15rem, 3.5vw, 1.75rem); }
.arrival-crystal { position: absolute; top: 32%; left: calc(50% - 85px); pointer-events: none; }
.arrival [data-skip] { margin-top: 12px; }
[data-postcard] img { display: block; width: min(100%, 300px); margin: 14px auto; }
.gallery .count-line { margin-top: 9px; }
.gallery-tools, .exhibit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: #071930ad; border-radius: 10px; border: 1px solid var(--line); }
.segmented button { min-height: 38px; padding: 4px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: .875rem; }
.snow-scene {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #123f81 url('/assets/gallery-winter.png') center / 100% 100% no-repeat;
}
.snow-scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scene-hint { position: absolute; bottom: 14px; inset-inline: 8px; text-align: center; font-size: .875rem; color: #d7e9f9; text-shadow: 0 1px 4px #08182f; pointer-events: none; }
.empty-state { position: absolute; inset: 27% 10px auto; text-align: center; }
.empty-state p { margin-bottom: 12px; color: var(--ice); }
.exhibit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-card { padding: 12px; min-width: 0; display: grid; justify-items: center; gap: 3px; text-align: center; }
.card-art { width: min(100%, 118px); }
.work-id { color: var(--ice); font-weight: 650; }
.work-meta { color: var(--mist); font-size: .875rem; }
.pager { text-align: center; padding-top: 16px; }
.detail { padding: 20px; width: min(440px, calc(100% - 28px)); max-height: calc(100% - 30px); text-align: center; color: var(--white); background: #122b48; }
.detail::backdrop { background: #050e1bdc; }
.detail .eyebrow { justify-content: center; }
.detail h2 { margin-block: 9px; }
.close-dialog { display: flex; margin-left: auto; }
.detail-art { margin-inline: auto; width: min(100%, 235px); }
.mine-highlight { border: 1px solid var(--gold); border-radius: 14px; background: radial-gradient(circle, #e8ce9c28, transparent 75%); }
.detail dl { display: grid; gap: 6px; text-align: left; margin-bottom: 0; }
.detail dl div { display: grid; grid-template-columns: 3rem 1fr; }
.detail dt { color: var(--mist); }
.detail dd { margin: 0; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-block: 29px 122px; min-height: auto; }
  .hero-copy { padding: 0; display: contents; }
  .hero .eyebrow, .hero .actions, .hero-count { justify-content: center; }
  .hero h1 { margin: 7px 0; }
  .hero-art { grid-row: 4; width: min(70vw, 300px); margin: 0 auto; }
  .hero-intro { margin: 0 auto 14px; font-size: .9375rem; }
  .hero-count { margin-top: 11px; }
  .postmark { width: 61px; right: 4%; font-size: .52rem; gap: 0; }
  .postmark svg { width: 16px; height: 12px; }
  .workbench { grid-template-columns: 1fr; }
  .preview-crystal { width: min(64vw, 250px); }
}
@media (max-width: 500px) {
  .hero .actions { gap: 7px; }
  .hero .button { padding-inline: 10px; }
  .gallery {
    width: auto; margin-left: max(12px, env(safe-area-inset-left));
    margin-right: max(12px, env(safe-area-inset-right)); padding-block: 20px 28px;
  }
  .gallery .page-heading { margin-bottom: 16px; }
  .gallery .page-heading h1 { margin: 6px 0 4px; }
  .gallery .count-line { margin-top: 5px; font-size: .875rem; }
  .gallery-tools { gap: 8px; margin-bottom: 10px; }
  .gallery-tools .segmented, .exhibit-toolbar .segmented {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 160px;
  }
  .gallery .segmented button, .gallery .button.compact { min-height: 44px; padding-inline: 8px; }
  .gallery .snow-scene { border-radius: 14px; }
  .scene-hint {
    bottom: 8px; inset-inline: 6px; width: fit-content; margin-inline: auto;
    padding: 2px 8px; border-radius: 8px; background: #08182fdb; color: var(--white);
  }
  .gallery .empty-state { top: 19%; }
  .gallery .empty-state p { text-shadow: 0 1px 4px #08182f; }
  .exhibit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery .work-card { padding: 8px; }
  .gallery .work-meta { overflow-wrap: anywhere; }
  .gallery .detail { padding: 14px; }
  .gallery .detail-art { width: min(100%, 180px); }
}

