/*
 * Stage 3 of the redesign: the member area (A-82; docs/design/member-area-spec.md). Dark only (A-80).
 * Loaded last. The member-area rules left in app.css and wines.css for the old screens (home grid,
 * basket, shipments list, old inbox and profile) are no longer used by any screen.
 *
 * The one memorable thing is the cellar wall: the year as arched niches cut into stone, bottles
 * standing in lit plaster. Delivered shelves are gilded quietly; the next shelf is lit and, as the
 * cut-off nears, glows brighter in three steps (never a countdown). Everything around it stays quiet.
 * Materials carry over from stage 2: night ground, engraved gold, crest red for the one action,
 * ivory paper only for objects (wine tiles, the wine sheet, letters, envelopes).
 * Estates keep their own colour throughout: Abruzzo the Adriatic blue, San Pietro olive.
 *
 * Contrast (by hand, WCAG formula; verify with a tool before stage 4):
 *   --ink #f6efdf on #0b0a09 17.2:1 · --ink-2 #c2b8a4 10.0:1 · --ink-3 #a89d8a 7.4:1 · --leaf #e3c98f 12.1:1
 *   wall labels --ink-2 on #120f0c 9.6:1 · paper ink #1a1a1a on #fffcf0 17.4:1 · #7a1018 on #fffcf0 9.4:1
 *   switch "Agreed" #1a1300 on #c8a96a 8.9:1 · chip-wait #e8d3a0 on #0b0a09 13.1:1
 * Phone first; desktop composed from 1000px (side rail, case pinned beside the cellar).
 * Reduced motion: non-.rmf animations stop (app.css); .rmf ones become crossfades below.
 */

/* ======================================================================
   Shell: header with the monogram, tabs, side rail
   ====================================================================== */
.mz-hdr .hdr-end { display: inline-flex; align-items: center; gap: 10px; }
.mono { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; letter-spacing: .04em; color: var(--leaf);
  background: radial-gradient(circle at 35% 30%, rgba(255, 236, 190, .14), rgba(0, 0, 0, 0) 60%), #100d0a; box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 3px #100d0a, inset 0 0 0 4px var(--gold-line); }
.mono:hover { color: var(--gold-hi); }
.mono.is-on { color: #1a1300; background: linear-gradient(180deg, #f2dca2, #c8a96a); }
.mz-nav a { font-weight: 500; letter-spacing: .02em; font-size: 10.5px; }
.mz-nav a[aria-current="page"] { color: var(--leaf); }
.mz-nav a[aria-current="page"]::before { left: calc(50% - 4px); right: auto; width: 8px; height: 8px; top: 4px; background: var(--leaf); transform: rotate(45deg); }
.mz-main { padding-bottom: 28px; }
@media (min-width: 1000px) {
  .mz-nav { padding-top: var(--s-6); gap: 4px; }
  .mz-nav a { font-size: var(--fs-md); font-weight: 400; letter-spacing: .01em; padding: 12px 16px; }
  .mz-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(227, 201, 143, .1), rgba(227, 201, 143, 0)); color: var(--leaf); font-weight: 500; }
  .mz-nav a[aria-current="page"]::before { top: 12px; bottom: 12px; left: 0; width: 1px; height: auto; transform: none; background: var(--leaf); }
}

/* ======================================================================
   The return reveal: a light sweep across the crest, under 1 s
   ====================================================================== */
.reveal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #1a140e, #050403 70%); animation: rvOut .9s var(--ease) forwards; cursor: pointer; }
.reveal-in { animation: rvIn .9s var(--ease-out) both; }
.reveal .logo-plate { position: relative; overflow: hidden; }
.reveal .logo-plate::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 238, 196, .9) 50%, transparent 58%); mix-blend-mode: screen; transform: translateX(-70%); animation: sweep .6s .08s var(--ease) both; }
@keyframes rvOut { 0%, 62% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes rvIn { 0% { opacity: 0; transform: scale(.96); } 30% { opacity: 1; transform: none; } 100% { opacity: 1; transform: scale(1.02); } }

/* ======================================================================
   Shared page parts
   ====================================================================== */
.page-top { padding: var(--s-5) var(--s-4) var(--s-3); max-width: 1180px; }
.page-h { margin: 6px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 7.2vw, 3.3rem); line-height: 1.12; padding-top: .06em; }
.page-h:focus { outline: none; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--ink-2); font-size: 15px; }
.page-kick { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-hi); }
.page-top-photo { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; max-width: none; padding-top: var(--s-7); overflow: hidden; isolation: isolate; }
.page-top-photo > .ph { position: absolute; inset: 0; z-index: -2; }
.page-top-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 9, .25), rgba(11, 10, 9, .82) 60%, var(--black)); }
.page-top-photo .back { color: #f6efdf; }
.sec-h { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.panel { background: #12100d; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; }
.panel + .panel { margin-top: 16px; }
.deadline { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; }
.deadline strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--leaf); }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; }
.chip-btn[aria-pressed="true"] { border-color: var(--leaf); background: rgba(227, 201, 143, .12); color: var(--leaf); }
.chip-btn:hover { border-color: var(--gold); }
.chip-wait { border-color: var(--gold); color: var(--gold-hi); }
.chip-ok { border-color: var(--ok); color: var(--ok); }
.v-t { margin-right: 2px; }
.demo.home-notes, .demo.box-notes { max-width: 1100px; margin: 24px auto 0; text-align: left; }
.demo ul li { line-height: 1.45; }
@media (min-width: 700px) { .page-top { padding-left: var(--s-6); padding-right: var(--s-6); } }

/* ======================================================================
   Cellar (home)
   ====================================================================== */
.scene-hero { position: relative; height: clamp(300px, 50vh, 500px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.scene-hero > .ph { position: absolute; inset: 0; z-index: -2; }
.scene-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 9, .2) 0%, rgba(11, 10, 9, .35) 40%, rgba(11, 10, 9, .9) 82%, var(--black) 100%); }
.scene-hero-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--s-5) var(--s-4); }
.scene-season { margin: 0 0 2px; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-hi); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.scene-greet { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 10vw, 5rem); line-height: 1.06; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.scene-greet:focus { outline: none; }
.scene-tier { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
html.motion .scene-hero > .ph img { animation: kenburns 30s ease-in-out infinite alternate; }

.home { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-4) var(--s-6); }
.home-notices { display: grid; gap: 12px; margin: 0 0 20px; }

/* the wall */
.wall { margin: 4px 0 28px; }
.wall-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.wall-head .sec-h { margin: 0; }
.wall-sum { margin: 0; color: var(--ink-2); font-size: 14px; }
.wall-sum .num { font-size: 1.3rem; color: var(--leaf); }
.wall-shelves { list-style: none; display: grid; gap: 18px; padding: 16px 12px 18px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 130, .07), transparent 60%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 7px), #120f0c;
  box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .14), inset 0 20px 60px rgba(0, 0, 0, .5), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.wall-shelf { display: grid; gap: 8px; }
.wall-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; }
.wall-name { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.wall-state { font-size: 13px; color: var(--ink-2); }
.wall-row { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; padding: 8px 8px 10px; border-radius: 10px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1)); box-shadow: inset 0 0 0 1px rgba(255, 230, 190, .06); border-bottom: 3px solid rgba(90, 64, 42, .7); }
.wall-6 { --cols: 6; } .wall-12 { --cols: 12; }
.wall-6 .nk { max-width: 62px; justify-self: center; width: 100%; }
a.wall-row:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.nk { position: relative; display: block; aspect-ratio: 1 / 2.3; overflow: hidden; border-radius: 999px 999px 3px 3px; background: radial-gradient(ellipse 90% 70% at 50% 20%, #1f1a15, #0a0807); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 230, 190, .06); }
.nk img { position: absolute; top: 4%; left: 50%; height: 96%; width: auto; max-width: none; transform: translateX(-50%) scale(1.08); mix-blend-mode: multiply; }
.nk-contain img { top: 8%; height: 88%; transform: translateX(-50%); }
.nk-filled { background: radial-gradient(ellipse 90% 60% at 50% 18%, #fff7e4, #e2cfaa 60%, #a88f63); }
.nk-flag::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(250, 69, 69, .55) 0 3px, rgba(58, 0, 0, .55) 3px 6px); }
.is-delivered .nk-filled { background: radial-gradient(ellipse 90% 60% at 50% 18%, #fff0c8, #e3c98f 55%, #9d7a36); box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .6), 0 0 10px rgba(255, 200, 120, .18); }
.is-delivered .wall-row { box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .22), 0 0 30px -10px rgba(227, 201, 143, .25); }
.is-delivered .wall-state { color: var(--gold-hi); }
.is-next .nk-empty { background: radial-gradient(ellipse 90% 70% at 50% 22%, rgba(255, 210, 150, .2), #120d09 80%); box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .4), inset 0 3px 6px rgba(0, 0, 0, .6); }
.is-next .nk-prem { box-shadow: inset 0 0 0 1px #e3c98f, 0 0 8px rgba(232, 200, 120, .35); }
.is-next .wall-name { color: var(--leaf); }
.is-next .wall-row { background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 130, .12), rgba(0, 0, 0, .2)); }
.is-next.glow-1 .wall-row { box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .5), 0 0 26px -6px rgba(255, 190, 110, .28); }
.is-next.glow-2 .wall-row { box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .75), 0 0 36px -4px rgba(255, 190, 110, .42); }
.is-next.glow-3 .wall-row { box-shadow: inset 0 0 0 1px #e3c98f, 0 0 46px 0 rgba(255, 190, 110, .55); }
html.motion .is-next.glow-3 .wall-row { animation: breathe 3.6s ease-in-out infinite; }
.is-sent .wall-row { box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .35); }
.is-later .nk { opacity: .7; box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .1), inset 0 3px 6px rgba(0, 0, 0, .8); }
.is-later .wall-name, .is-later .wall-state { color: var(--ink-3); }
.wall-cta { position: absolute; right: 10px; bottom: -14px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; letter-spacing: .03em; color: #1a1300; background: linear-gradient(180deg, #f2dca2, #c8a96a); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .8); }
a.wall-row:hover .wall-cta { background: #f2dca2; }
.wall-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 2px 0; font-size: 13px; color: var(--ink-2); }
.wall-key li { display: inline-flex; align-items: center; gap: 8px; }
.wall-key i { width: 9px; height: 18px; border-radius: 999px 999px 2px 2px; }
.k-del { background: radial-gradient(ellipse at 50% 20%, #fff0c8, #b8913f); }
.k-next { background: radial-gradient(ellipse at 50% 20%, #fff7e4, #a88f63); box-shadow: 0 0 0 1px #e3c98f; }
.k-later { background: #1f1a15; box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .3); }
@keyframes breathe { 0%, 100% { box-shadow: inset 0 0 0 1px #e3c98f, 0 0 40px -2px rgba(255, 190, 110, .45); } 50% { box-shadow: inset 0 0 0 1px #f2dca2, 0 0 56px 4px rgba(255, 190, 110, .62); } }

/* calm notice and counters */
.home-row { display: grid; gap: 16px; margin-bottom: 20px; }
.calm { padding: 20px 18px; border-radius: 16px; background: #12100d; box-shadow: inset 0 0 0 1px var(--gold-line); }
.calm-h { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
.calm-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-size: 15px; }
.calm-when strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--leaf); }
.calm-p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.calm.phase-comingup { box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .7), 0 0 30px -12px rgba(255, 190, 110, .4); }
.calm.phase-lastday { box-shadow: inset 0 0 0 1px #e3c98f, 0 0 40px -10px rgba(255, 190, 110, .55); background: radial-gradient(ellipse at 0% 0%, rgba(255, 190, 110, .1), transparent 60%), #12100d; }
.calm.is-closed { box-shadow: inset 0 0 0 1px var(--line-2); }
.ctrs { padding: 20px 18px; border-radius: 16px; background: #12100d; box-shadow: inset 0 0 0 1px var(--line); }
.ctrs .sec-h { font-size: 1.25rem; }
.ctr + .ctr { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ctr-l { margin: 0; font-size: 13px; color: var(--ink-2); }
.ctr-n { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.ctr-n .num { font-size: 1.4rem; color: var(--ink); }
.ctrs .seals-sm .seal { width: 22px; height: 22px; }

/* glance cards */
.hcs { display: grid; gap: 10px; }
.hc { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border-radius: 14px; background: #12100d; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hc:hover { border-color: var(--gold-line); color: var(--ink); }
.hc.is-unread { border-color: rgba(210, 0, 0, .55); }
.hc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.hc-wax { color: #fffcf0; font-family: var(--font-display); font-size: 1.1rem; background: radial-gradient(circle at 38% 32%, #ff4a3d 0%, #d20000 40%, #8f0000 80%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .45); }
.hc-wax.is-open { filter: saturate(.55) brightness(.8); }
.hc-t { display: flex; flex-direction: column; min-width: 0; }
.hc-k { font-size: 13px; color: var(--ink-2); }
.hc strong { font-weight: 500; }
.hc .strip { margin: 0; flex: none; }
@media (min-width: 700px) {
  .home { padding-left: var(--s-6); padding-right: var(--s-6); }
  .scene-hero-in { padding: var(--s-6); }
  .hcs { grid-template-columns: 1fr 1fr; }
  .wall-shelves { padding: 22px 22px 24px; }
  .wall-row { gap: 5px; padding: 10px 12px 12px; }
}
@media (min-width: 1000px) {
  .home-row { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .wall-shelf { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 18px; }
  .wall-label { flex-direction: column; align-items: flex-start; gap: 2px; }
  .wall-name { font-size: 1.3rem; }
  .hcs { grid-template-columns: repeat(4, 1fr); }
}

/* ======================================================================
   Box: starts, the wooden case, the cellar
   ====================================================================== */
.boxpage { display: flex; flex-direction: column; gap: 22px; padding: 6px var(--s-4) var(--s-6); max-width: 1320px; }
.box-main { display: contents; }
.box-banners { order: 1; }
.opts { order: 2; }
.case-side { order: 3; }
.cellar, .incase, .box-empty-line { order: 4; }
.opts .sec-h { font-size: 1.25rem; }
.opts-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; height: 100%; min-height: 104px; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: #12100d; color: var(--ink); text-align: left; cursor: pointer; }
.opt .ico { color: var(--gold); }
.opt:hover { border-color: var(--gold); }
.opt[aria-pressed="true"] { border-color: var(--leaf); background: radial-gradient(ellipse at 0% 0%, rgba(227, 201, 143, .14), transparent 70%), #12100d; box-shadow: 0 0 0 1px var(--leaf); }
.opt[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.opt-t { display: flex; flex-direction: column; gap: 2px; }
.opt-t strong { font-weight: 500; font-size: 14px; line-height: 1.25; }
.opt-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.opts-edit { margin-top: 10px; }
.past-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.past-pick .chip-btn { border-radius: 12px; }
.past-pick .strip { margin: 0; }

.case-in { padding: 18px 16px; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 130, .08), transparent 60%), #12100d; box-shadow: inset 0 0 0 1px var(--gold-line), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.case-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.case-top .sec-h { margin: 0; }
.case-top .sec-h:focus { outline: none; }
.case-left { margin: 0; font-size: 14px; color: var(--ink-2); }
.case-empty { display: block; margin: 8px auto 0; }

.wcase { position: relative; margin: 14px 0 16px; padding: 12px 12px 30px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, rgba(255, 220, 170, .04) 0 3px, transparent 3px 23px), linear-gradient(180deg, #6a4a32, #4a321f 55%, #34231a);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 170, .2), inset 0 0 0 5px rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 230, 190, .25), 0 18px 40px -14px rgba(0, 0, 0, .9); }
.wcase-brand { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--font-display); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: #24160d; text-shadow: 0 1px 0 rgba(255, 220, 170, .18); }
.wcase-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ws { position: relative; display: block; aspect-ratio: 1 / 2.1; overflow: hidden; border-radius: 4px; background: radial-gradient(ellipse at 50% 30%, #1d140d, #0c0806); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .5); }
.ws img { position: absolute; top: 3%; left: 50%; height: 97%; width: auto; max-width: none; transform: translateX(-50%) scale(1.08); mix-blend-mode: multiply; }
.ws-contain img { top: 6%; height: 90%; transform: translateX(-50%); }
.ws-on { background: radial-gradient(ellipse 90% 60% at 50% 18%, #fff7e4, #e5d2ad 62%, #b39a6c); }
.ws-prem { box-shadow: inset 0 0 0 1.5px #e3c98f, 0 0 10px rgba(232, 200, 120, .35); }
.ws-flag::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(250, 69, 69, .55) 0 3px, rgba(58, 0, 0, .55) 3px 6px); }
html.motion .ws.is-new { animation: glideIn .62s calc(var(--i) * 45ms) var(--ease-out) both; }
@keyframes glideIn { 0% { transform: translateY(-70%); opacity: 0; } 70% { opacity: 1; } 100% { transform: none; opacity: 1; } }

.ins { list-style: none; display: grid; gap: 10px; margin: 0 0 6px; }
.ins li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 4px 10px; font-size: 13.5px; color: var(--ink-2); }
.ins-l { grid-area: l; }
.ins-v { grid-area: v; color: var(--ink); }
.ins-v .num { font-size: 1.15rem; }
.ins-bar { grid-area: b; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ins-bar i { display: block; height: 100%; background: var(--ink-2); transition: width .45s var(--ease); }
.ins-gold .ins-bar i { background: var(--gold); }
.ins-lib .ins-bar i { background: #e05a4a; }
.ins-weight .ins-v { font-size: 13px; color: var(--ink-2); }
.ins-weight .ins-bar i { background: rgba(194, 184, 164, .5); }
.case-in .btn-block { margin-top: 14px; }

.incase .btn { margin-top: 14px; }
.box-empty-line { color: var(--ink-2); }
.cellar > .group-head { margin-bottom: 14px; }
.cellar > .group-head .sec-h { margin: 0; }
.cellar > .group-head .sec-h:focus { outline: none; }
.cellar .group { margin-top: 28px; }
.tile-more { grid-area: more; justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--paper-ink-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tile-more .ico { width: 18px; height: 18px; }
.tile-more:focus-visible { outline-color: var(--red); }

.box-bar { position: fixed; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(12, 10, 8, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--gold-line), 0 12px 30px rgba(0, 0, 0, .6); }
.box-bar-n { font-size: 14px; color: var(--ink-2); }
.box-bar-n .num { font-size: 1.2rem; color: var(--leaf); }
.box-bar .btn { min-height: 40px; }
@media (min-width: 700px) {
  .boxpage { padding-left: var(--s-6); padding-right: var(--s-6); }
  .opt { flex-direction: row; align-items: center; min-height: 76px; padding: 14px; }
}
@media (min-width: 1000px) {
  .boxpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 32px; }
  .box-main { display: block; min-width: 0; }
  .box-main > * + * { margin-top: 26px; }
  .case-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
  .box-bar { display: none; }
}

/* ======================================================================
   Shop
   ====================================================================== */
.shop { display: flex; flex-direction: column; gap: 22px; padding: 10px var(--s-4) var(--s-6); max-width: 1320px; }
.shop-main { min-width: 0; }
.shop .estate { margin-bottom: 28px; }
.estate-premium { border-left-color: var(--gold); }
.price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-m { font-family: var(--font-display); font-size: 1.25rem; color: #7a1018; }
.price-l { font-size: 13px; color: var(--paper-ink-2); }
.basket-side .sec-h { font-size: 1.3rem; }
.bk-lines li { grid-template-columns: 22px 1fr auto auto; }
.ln-p { font-family: var(--font-display); color: var(--ink); min-width: 4.5em; text-align: right; }
.bk-sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.bk-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bk-sum dt { color: var(--ink-2); }
.bk-sum dd { margin: 0; text-align: right; }
.bk-sum div:first-child dd { font-family: var(--font-display); font-size: 1.2rem; }
.shop-rule { margin-top: 16px; }
.wsheet-price { margin: 4px 0 12px; }
.addr-pick { margin: 0 0 16px; }
.addr-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 0 0 8px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.addr-opt:has(input:checked) { border-color: var(--leaf); background: rgba(227, 201, 143, .06); }
.addr-opt input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; }
.addr-opt > span { display: flex; flex-direction: column; font-size: 14px; }
.checkout .panel .sec-h { font-size: 1.2rem; }
@media (min-width: 700px) { .shop { padding-left: var(--s-6); padding-right: var(--s-6); } }
@media (min-width: 1000px) {
  .shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 32px; }
  .basket-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
  .shop-bar { display: none; }
}

/* ======================================================================
   Shipments: the engraved map and milestones
   ====================================================================== */
.ship2 { max-width: 1180px; }
.ship-hero { display: grid; gap: 16px; padding: 18px 16px; border-radius: 18px; background: #12100d; box-shadow: inset 0 0 0 1px var(--gold-line); }
.ship-hero.is-late { box-shadow: inset 0 0 0 1px #c98a20; }
.ship-h { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.ship-head p { margin: 0; color: var(--ink-2); }
.emap { margin: 0; }
.emap svg { display: block; width: 100%; height: auto; }
.emap-frame { fill: #0d0b09; stroke: rgba(227, 201, 143, .55); stroke-width: 1; }
.emap-frame2 { fill: none; stroke: rgba(227, 201, 143, .22); stroke-width: .6; }
.emap-grid line { stroke: rgba(227, 201, 143, .07); stroke-width: .6; }
.emap-sea { font-family: var(--font-display); font-style: italic; font-size: 11px; letter-spacing: .3em; fill: rgba(227, 201, 143, .3); }
.emap-others circle { fill: rgba(227, 201, 143, .3); }
.emap-rose circle { fill: none; stroke: rgba(227, 201, 143, .3); stroke-width: .6; }
.emap-rose path { fill: rgba(227, 201, 143, .45); }
.emap-rose text { font-family: var(--font-display); font-size: 8px; fill: rgba(227, 201, 143, .6); }
.emap-route { fill: none; stroke: rgba(227, 201, 143, .32); stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.emap-done { fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; }
.emap.is-late .emap-done { stroke: #e0a040; }
html.motion .emap-done { animation: drawIn 1.6s .2s var(--ease) both; }
@keyframes drawIn { from { stroke-dasharray: 0 100; } }
.emap-estate circle:first-child { fill: #d20000; }
.emap-dest circle:first-child { fill: var(--leaf); }
.emap-ring { fill: none; stroke: rgba(227, 201, 143, .55); stroke-width: .8; }
.emap text { font-family: var(--font-display); font-size: 10px; fill: var(--ink-2); }
.emap-box rect { fill: #4a321f; stroke: var(--leaf); stroke-width: 1; }
.emap-box path { fill: none; stroke: rgba(227, 201, 143, .7); stroke-width: .7; }
.emap figcaption { margin-top: 4px; }
.miles { list-style: none; margin: 4px 0 8px; }
.mile { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; min-height: 42px; }
.mile::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.mile:first-child::before { top: 50%; } .mile:last-child::before { bottom: 50%; }
.mile-mark { position: relative; z-index: 1; width: 11px; height: 11px; margin-left: 7px; transform: rotate(45deg); border: 1px solid var(--line-2); background: var(--black); }
.mile-done::before { background: var(--gold); }
.mile-done .mile-mark { background: var(--gold); border-color: var(--gold); }
.mile-now .mile-mark { background: var(--leaf); border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(227, 201, 143, .2), 0 0 14px rgba(255, 200, 120, .5); }
.mile-late .mile-mark { background: #e0a040; border-color: #e0a040; }
.mile-l { font-family: var(--font-display); font-size: 1.05rem; }
.mile-todo .mile-l { color: var(--ink-3); }
.mile-d { font-size: 13px; color: var(--ink-2); }
.past2 { margin-top: 28px; }
.past-list { list-style: none; display: grid; gap: 8px; }
@media (min-width: 900px) {
  .ship-hero { grid-template-columns: 1.35fr 1fr; grid-template-areas: "head head" "map miles"; padding: 26px; column-gap: 28px; }
  .ship-head { grid-area: head; }
  .emap { grid-area: map; }
  .ship-miles { grid-area: miles; }
}

/* ======================================================================
   Experiences
   ====================================================================== */
.xps { max-width: 1180px; }
.xps > section { margin-bottom: 30px; }
.xp-list { list-style: none; display: grid; gap: 16px; }
.xp { position: relative; overflow: hidden; isolation: isolate; min-height: 340px; display: flex; align-items: flex-end; border-radius: 18px; box-shadow: 0 0 0 1px var(--gold-line), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.xp-ph { position: absolute; inset: 0; z-index: -2; }
.xp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 5, 4, .05) 25%, rgba(6, 5, 4, .9) 72%); }
.xp-in { padding: 20px 18px 18px; width: 100%; }
.xp-h { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: #f6efdf; }
.xp-line { margin: 0 0 4px; color: var(--leaf); font-size: 15px; }
.xp-s { margin: 0 0 4px; font-size: 13.5px; color: #d6ccb8; }
.xp-s .mk-ph { color: #d6ccb8; border-color: #a89d8a; }
.xp-use { margin: 6px 0 0; font-size: 13.5px; color: #d6ccb8; }
.xp-use .num { font-size: 1.15rem; color: #f6efdf; }
.xp-btn { margin-top: 12px; }
.reqs ul { list-style: none; display: grid; gap: 10px; }
.req { padding: 16px; border-radius: 14px; background: #12100d; border: 1px solid var(--line); }
.req-awaiting { border-color: var(--gold-line); }
.req-confirmed { border-color: rgba(127, 191, 159, .5); }
.req-unavailable { border-color: rgba(250, 69, 69, .45); }
.req-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.req-top strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.req-l { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.req .btn, .req .quiet-link { margin-top: 10px; }
.sim-reply { margin: 12px 0 0; }
.ests ul { list-style: none; display: grid; gap: 12px; }
.est { padding: 16px 18px; border-radius: 14px; background: #12100d; border-left: 2px solid var(--abruzzo); }
.est-sanpietro { border-left-color: var(--sanpietro); }
.est-n { margin: 0; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .14em; line-height: 1.3; }
.est-p { margin: 0 0 4px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.est-abruzzo .est-p { color: var(--abruzzo-hi); } .est-sanpietro .est-p { color: var(--sanpietro-hi); }
.est-l { margin: 0; font-size: 14px; color: var(--ink-2); }
.xp-form .sec-h { font-size: 1.2rem; margin-top: 18px; }
.est-pick legend { margin-bottom: 10px; }
.est-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line-2); border-left-width: 3px; cursor: pointer; }
.est-opt.est-abruzzo { border-left-color: var(--abruzzo); } .est-opt.est-sanpietro { border-left-color: var(--sanpietro); }
.est-opt:has(input:checked) { background: rgba(227, 201, 143, .07); border-color: var(--leaf); }
.est-opt input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; }
.est-opt > span { display: flex; flex-direction: column; }
.est-opt strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .06em; }
.who { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 12px; }
.who-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.who-opt input { accent-color: var(--red); width: 18px; height: 18px; }
@media (min-width: 760px) {
  .xp-list { grid-template-columns: 1fr 1fr; }
  .ests ul { grid-template-columns: 1fr 1fr; }
  .xp { min-height: 380px; }
}

/* ======================================================================
   Inbox: sealed letters
   ====================================================================== */
.envs { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.env { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.env:hover { background: #12100d; border-color: var(--line); color: var(--ink); }
.env-paper { position: relative; flex: none; width: 78px; height: 54px; border-radius: 3px; background: linear-gradient(180deg, #f6eedc, #e8dcc2); box-shadow: 0 6px 16px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(185, 151, 90, .5); overflow: visible; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(180deg, #efe4cc, #dccdaf); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; }
.env.is-open .env-flap { transform: scaleY(-1); filter: brightness(.95); }
.env-seal { position: absolute; left: 50%; top: 22px; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; border-radius: 50%; color: #fffcf0; font-family: var(--font-display); font-size: .85rem;
  background: radial-gradient(circle at 38% 32%, #ff4a3d 0%, #d20000 40%, #8f0000 80%, #4d0000); box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 -2px 4px rgba(0, 0, 0, .4); }
.env.is-open .env-seal { top: 34px; filter: saturate(.5) brightness(.75); }
.env.is-open .env-seal::after { content: ""; position: absolute; left: 45%; top: 0; bottom: 0; width: 2px; background: #2a0505; transform: rotate(14deg); }
.env-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.env-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.env-subj { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }
.env.is-sealed .env-subj { color: var(--leaf); }
.env-prev { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.letter2 { max-width: 760px; margin: 0 auto; padding: var(--s-4) var(--s-3) var(--s-6); perspective: 1200px; }
.lt-paper { position: relative; margin-top: 30px; padding: 46px 22px 26px; border-radius: 4px; color: var(--paper-ink); transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px) 0 33% / 100% 100% no-repeat, linear-gradient(180deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px) 0 66% / 100% 100% no-repeat, radial-gradient(ellipse at 30% 10%, #fffdf6, #f5ecd8 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(200, 169, 106, .5), inset 0 0 0 7px #fbf5e6, inset 0 0 0 8px rgba(200, 169, 106, .3); }
.lt-paper a, .lt-paper .btn-text { color: #8f0000; }
.lt-paper .btn-ghost { color: var(--paper-ink); border-color: #b9a06a; }
.lt-paper .fine, .lt-paper .mk-ph { color: var(--paper-ink-2); border-color: var(--paper-ink-2); }
.lt-seal { position: absolute; left: 50%; top: -22px; width: 52px; height: 52px; margin-left: -26px; }
.lt-half { position: absolute; top: 0; width: 26px; height: 52px; background: radial-gradient(circle at 76% 32%, #ff4a3d 0%, #d20000 40%, #8f0000 80%, #4d0000); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.lt-l { left: 0; border-radius: 26px 0 0 26px; transform: translateX(-3px) rotate(-6deg); }
.lt-r { right: 0; border-radius: 0 26px 26px 0; background: radial-gradient(circle at 0% 32%, #ff4a3d 0%, #d20000 40%, #8f0000 80%, #4d0000); transform: translateX(3px) rotate(6deg); }
.lt-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--paper-ink-2); border-bottom: 1px solid rgba(200, 169, 106, .6); padding-bottom: 8px; margin-bottom: 18px; }
.lt-h { margin: 0 0 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; color: var(--paper-ink); }
.lt-h:focus { outline: none; }
.lt-paper p { font-size: 16.5px; line-height: 1.6; }
.lt-sign { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lt-sign-n { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: #5a1a14; }
.lt-foot { margin-top: 20px; padding-top: 10px; border-top: 1px solid rgba(200, 169, 106, .6); }
.letter2.is-unfolding .lt-paper { animation: unfold 1s var(--ease-out) both; }
.letter2.is-unfolding .lt-l { animation: sealL .7s .1s var(--ease-out) both; }
.letter2.is-unfolding .lt-r { animation: sealR .7s .1s var(--ease-out) both; }
@keyframes unfold { 0% { opacity: 0; transform: rotateX(-78deg) scaleY(.5); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes sealL { from { transform: none; } to { transform: translateX(-3px) rotate(-6deg); } }
@keyframes sealR { from { transform: none; } to { transform: translateX(3px) rotate(6deg); } }
@media (min-width: 700px) { .lt-paper { padding: 60px 54px 36px; } }

/* ======================================================================
   Profile: the membership card and the sections
   ====================================================================== */
.pf-top { position: relative; padding: 34px 16px 30px; overflow: hidden; isolation: isolate; }
.pf-top > .ph { position: absolute; inset: 0; z-index: -2; }
.pf-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(11, 10, 9, .55), rgba(11, 10, 9, .92) 75%), linear-gradient(180deg, transparent 60%, var(--black)); }
.pf-top-in { max-width: 420px; margin: 0 auto; }
.mcard { --acc: #c8a96a; position: relative; aspect-ratio: 1.586; border-radius: 16px; color: #f6efdf;
  background: radial-gradient(ellipse at 85% 0%, rgba(255, 220, 160, .18), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(140, 90, 40, .25), transparent 60%), linear-gradient(135deg, #17120d, #0b0907);
  box-shadow: inset 0 0 0 1px var(--acc), inset 0 0 0 6px #0f0c09, inset 0 0 0 7px color-mix(in srgb, var(--acc) 50%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .9); overflow: hidden; }
.mcard::after { content: ""; position: absolute; inset: -30% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 44%, rgba(255, 236, 190, .14) 50%, transparent 56%); transform: translateX(-60%); }
html.motion [data-screen="appProfile"] .mcard::after { animation: sweep 2.2s .4s var(--ease) both; }
.mcard-scoperta { --acc: #d9c7a3; }
.mcard-eredita { --acc: #e3c98f; background: radial-gradient(ellipse at 85% 0%, rgba(255, 210, 140, .26), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(176, 16, 26, .18), transparent 60%), linear-gradient(135deg, #120e09, #060504); }
.mcard-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 18px 20px 16px; }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcard-top .logo-plate { transform: scale(.82); transform-origin: left center; }
.mcard-tier { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .26em; text-transform: uppercase; color: var(--acc); padding-top: .15em; }
.mcard-name { margin: auto 0 6px; font-family: var(--font-display); font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.2; }
.mcard-meta { display: flex; gap: 22px; margin: 0 0 10px; font-size: 11.5px; }
.mcard-meta dt { color: #c2b8a4; }
.mcard-meta dd { margin: 0; font-family: var(--font-display); font-size: .98rem; color: #f6efdf; }
.mcard-code { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.mcard-code-l { font-size: 11.5px; color: #c2b8a4; }
.mcard-code-v { margin-left: auto; font-size: 15px; font-weight: 500; letter-spacing: .14em; color: var(--acc); }
.mcard-copy { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; min-width: 44px; padding: 0 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); background: transparent; color: #f6efdf; font-size: 12.5px; cursor: pointer; }
.mcard-copy .ico { width: 16px; height: 16px; }
.mcard-note { margin: 12px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-align: center; }

.pfs { max-width: 1100px; }
.pf-grid { display: grid; gap: 16px; }
.pfc { padding: 20px 18px; border-radius: 16px; background: #12100d; border: 1px solid var(--line); }
.pfc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pfc .sec-h { font-size: 1.3rem; }
.pf-v { margin: 0 0 12px; line-height: 1.6; }
.addrs { list-style: none; display: grid; gap: 10px; }
.addr { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.addr.is-default { border-color: var(--gold-line); }
.addr > .ico { color: var(--gold); }
.addr-t { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); }
.addr-t strong { color: var(--ink); font-weight: 500; }
.addr-act { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.conss { list-style: none; display: grid; gap: 10px; }
.cons { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cons-t { display: flex; flex-direction: column; font-size: 14px; }
.cons-t strong { font-weight: 500; }
.cons-t .dim { font-size: 12.5px; }
.switch { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.switch-k { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--grey-700); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.switch-k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f6efdf; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .switch-k { background: var(--gold); }
.switch[aria-checked="true"] .switch-k::after { transform: translateX(20px); background: #1a1300; }
.switch[aria-checked="true"] .switch-l { color: var(--gold-hi); }
.log { list-style: none; display: grid; gap: 8px; margin-top: 10px; font-size: 13px; }
.log li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-w { color: var(--ink-3); font-size: 12px; }
.langpick { display: flex; gap: 8px; margin: 0 0 14px; }
.hists { list-style: none; display: grid; }
.hist { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-t { display: flex; flex-direction: column; font-size: 14.5px; }
.hist-t strong { font-weight: 500; }
.hist-t .dim { font-size: 13px; }
.hist-v { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.1rem; }
.hist-v .chip { font-family: var(--font-ui); }
.pf-out { max-width: 420px; margin: 26px auto 0; }
.up-name { padding-top: .14em; }
@media (min-width: 900px) {
  .pf-top { padding: 48px 24px 40px; }
  .pf-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .pfc-wide { grid-column: 1 / -1; }
}

/* ======================================================================
   The wine sheet: slides up over the case or the shop
   ====================================================================== */
dialog.wsheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 640px; max-height: 88vh; max-height: 88dvh; padding: 0; border: 0; background: transparent; color: var(--paper-ink); overflow: visible; }
dialog.wsheet::backdrop { background: rgba(5, 4, 3, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wsheet-in { position: relative; max-height: 88vh; max-height: 88dvh; overflow-y: auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: radial-gradient(ellipse at 20% 0%, #fffdf6, var(--paper) 60%); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(200, 169, 106, .6); animation: sheetUp .45s var(--ease-out) both; }
.wsheet-grip { display: block; width: 44px; height: 4px; margin: -12px auto 14px; border-radius: 2px; background: rgba(92, 87, 77, .35); }
.wsheet-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .05); color: var(--paper-ink); cursor: pointer; }
.wsheet-x:focus-visible, .wsheet-in :focus-visible { outline-color: var(--red); }
.wsheet-top { display: flex; gap: 18px; align-items: center; margin: 0 0 14px; padding-right: 44px; }
.wsheet .btl-md { width: 96px; }
.wsheet-script { margin: 0; font-family: var(--font-script); font-size: 2.1rem; line-height: 1.1; color: #1e2d5c; }
.wsheet-sanpietro .wsheet-script { color: #3f4630; }
.wsheet-h { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--paper-ink); }
.wsheet-estate { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13.5px; color: var(--paper-ink-2); }
.wsheet-place { font-family: var(--font-display); font-style: italic; }
.wsheet .facts { font-size: 14.5px; line-height: 1.5; gap: 8px 14px; }
.wsheet .fine { color: var(--paper-ink-2); }
.wsheet .price-l { color: var(--paper-ink-2); }
.wsheet .wsheet-price .dim { color: var(--paper-ink-2); font-size: 13px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 700px) { .wsheet-in { padding: 30px 32px 30px; } .wsheet .btl-md { width: 120px; } }

/* ======================================================================
   Compare inside the member area (upgrade)
   ====================================================================== */
.cmp-page.cmp-in-app { --cmp-top: var(--hdr-h); min-height: 0; background: radial-gradient(ellipse at 85% 0%, rgba(227, 201, 143, .08), transparent 50%); }
.cmp-in-app .cmp-wrap { padding-top: 14px; }
.cmp-in-app .cmp2-head { background: linear-gradient(180deg, var(--black) 82%, rgba(11, 10, 9, 0)); }

/* ======================================================================
   Reduced motion: crossfades for the .rmf pieces
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: rvFade .42s ease-out forwards; }
  .reveal-in { animation: none; }
  .reveal .logo-plate::after { display: none; }
  .wsheet-in { animation: dFade .2s ease-out both; }
  .emap-done, .emap-box { animation: none; }
  .letter2.is-unfolding .lt-paper { animation: dFade .3s ease-out both; }
  .scene-hero-in { animation: none; }
}
@keyframes rvFade { 0%, 40% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
