/* Shared outline icons and compact appearance controls. */
body .app-shell svg, body dialog svg:not(.pixel-progress) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer { justify-content: flex-end; }
.preferences-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 750; }
.preferences-button:hover, body:has(#display-preferences:popover-open) .preferences-button { background: var(--raised); }
.language-code { display: none; }
html[lang=en] .language-code-en, html[lang=ru] .language-code-ru { display: inline; }
.display-preferences { position: fixed; inset: auto; margin: 0; width: min(288px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 40px #0002; }
.display-preferences::backdrop { background: transparent; }
.display-preferences h2 { font-size: 1rem; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 18px; }
.preference-section + .preference-section { margin-top: 18px; }
.preference-section p { margin: 0 0 9px; font-size: .8125rem; color: var(--muted); }
.display-preferences .preference-control { display: flex; gap: 4px; padding: 4px; border: 0; border-radius: 18px; background: var(--surface); }
.display-preferences .preference-control button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 650; }
.display-preferences .preference-control button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
.display-preferences .preference-control button:not([aria-pressed=true]):hover { background: var(--raised); color: var(--ink); }
.display-preferences .preference-control svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .header-actions .chat-launch>span { display: none !important; } .header-actions .chat-launch { width: 36px !important; padding: 0 !important; } }
@media (max-width: 700px) { .preferences-button { width: 36px; height: 36px; padding: 0; } html[lang] .preferences-button .language-code { display: none; } }
.header-actions .account-button, .header-actions .selection-button, .header-actions .chat-launch {
  height: 42px; min-height: 42px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink);
  transition: background .18s, border-color .18s;
}
.header-actions .account-button { width: 42px; padding: 0; }
.header-actions .selection-button { padding: 8px 12px; }
.header-actions .chat-launch { width: auto; padding: 8px 13px; gap: 8px; justify-content: center; }
.header-actions .chat-launch>span { display: inline; }
.header-actions .account-button:hover, .header-actions .selection-button:hover, .header-actions .chat-launch:hover { background: var(--raised); }
.header-actions .account-button.is-signed-in { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.header-actions svg, .header-actions .selection-button .cart-icon { width: 20px; height: 20px; }
.close-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.close-button:hover { background: var(--raised); }
.close-button svg, .send-message svg, .primary-button svg { width: 20px; height: 20px; }
.primary-button[aria-pressed=true] svg { transform: none; }
.key-benefits svg { width: 18px; height: 18px; }
.pack-benefits strong { display: flex; align-items: center; min-height: 1.15em; }
.pack-benefits strong svg { width: .95em; height: .95em; }
.info-icon { display: inline-flex; align-items: center; width: 18px; height: 18px; border: 0; border-radius: 0; }
.info-icon svg { width: 18px; height: 18px; }
.gold-quantity button { display: grid; place-items: center; }
.gold-quantity button svg { width: 18px; height: 18px; }
.quantity-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gold-card .quantity-caption label { margin: 0; }
.quantity-caption small { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.result-icon svg { width: 32px; height: 32px; }
#checkout-terms {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 2px 0 0;
  border: 1.5px solid var(--muted); border-radius: 6px; background: var(--surface); cursor: pointer;
}
#checkout-terms:checked { background: var(--accent); border-color: var(--accent-ink); }
#checkout-terms:checked::after {
  content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid var(--accent-ink); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg);
}
@media (max-width: 1150px) { .header-actions { gap: 8px; } }
@media (max-width: 700px) {
  .header-actions .account-button, .header-actions .selection-button, .header-actions .chat-launch { height: 36px; min-height: 36px; }
  .header-actions .account-button, .header-actions .selection-button { width: 36px; padding: 0; }
  .header-actions .chat-launch { padding: 7px 10px; gap: 7px; font-size: .8125rem; }
  .header-actions svg, .header-actions .selection-button .cart-icon { width: 18px; height: 18px; }
  .footer-links { gap: 12px; }
}
@media (max-width: 360px) { .footer-links [data-info=faq] { display: none; } }
@media (max-width: 380px) and (max-height: 650px) {
  #forever-card { padding-block: 8px; }
  .gold-card { padding: 11px 16px; gap: 5px; }
  .gold-card .quantity-caption label, .quantity-caption small { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .display-preferences .preference-control button, .preferences-button, .header-actions .account-button, .header-actions .selection-button, .header-actions .chat-launch { transition: none; }
}

/* Give large frames one restrained curve; keep controls clear of their edges. */
.store-stage { --scene-curve: clamp(64px, 6vw, 96px); --card-curve: clamp(48px, 4vw, 64px); }
.scene-media, .scene-media.is-riverglades { border-radius: var(--scene-curve) 28px 28px 28px; }
.scene-media.is-gold { border-radius: 60px 28px 28px 28px; }
#forever-card, #time-card, .gold-card { border-radius: 28px var(--card-curve) 28px 28px; }
.pack-benefits li, .pack-benefits li:last-child { border-radius: 17px; }
.scene-media .launch-sticker,
.scene-media .launch-sticker:hover,
.scene-media .launch-sticker:focus-visible { border-radius: 999px; transform: none; }
@media (max-width: 700px) {
  .store-stage { --scene-curve: 36px; --card-curve: 38px; }
  .scene-media, .scene-media.is-riverglades, .scene-media.is-gold { border-radius: var(--scene-curve) 23px 23px 23px; }
  #forever-card, #time-card, .gold-card { border-radius: 23px var(--card-curve) 23px 23px; }
  .pack-benefits li, .pack-benefits li:last-child { border-radius: 14px; }
}
@media (max-width: 380px) and (max-height: 650px) {
  .store-stage { --card-curve: 32px; }
  .product-card-head { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .scene-media .launch-sticker { transition: none; } }

/* Keep secondary details inside the product view and the quantity beside its controls. */
.catalog-panel { grid-template-rows: auto minmax(0, 1fr) auto; }
.gold-panel { grid-template-rows: minmax(0, 1fr); }
.gold-card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gold-card-title h2 { margin: 0; }
.gold-card-title .text-button { min-height: 32px; font-size: .8125rem; padding: 4px 0; flex: none; color: inherit; }
.gold-total { min-width: 0; }
.gold-total > div { min-width: 0; }
.gold-total strong { max-width: 100%; }
.gold-total.has-long-amount { flex-wrap: wrap; gap: 3px; }
.gold-total.has-long-amount > div { flex-basis: 100%; }
.gold-total.has-long-amount strong { font-size: 1.6rem; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.gold-quantity > .quantity-input {
  display: inline-flex; width: fit-content; max-width: 100%; gap: 6px; padding: 4px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 16px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.gold-quantity > .quantity-input:focus-within { outline: 2px solid var(--sage-ink); outline-offset: 3px; }
.gold-quantity .quantity-input input {
  flex: none; width: 2ch; min-width: 2ch; max-width: 8ch; text-align: center;
  padding: 2px 0; font-size: clamp(1.5rem, 2.5vw, 2.3rem); font-weight: 650;
  line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.gold-quantity .quantity-input input:focus-visible { outline: none; }
.gold-quantity .quantity-input button {
  flex: none; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 12px; background: color-mix(in srgb, currentColor 7%, transparent);
}
.gold-quantity .quantity-input button:hover:not(:disabled) { background: color-mix(in srgb, currentColor 14%, transparent); }
.gold-quantity .quantity-input button:disabled { opacity: .35; }
.gold-presets { margin-top: 10px; }
.product-detail-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-detail-nav .modal-tabs { flex: 1; margin: 0; }
.product-detail-nav #detail-compare { flex: none; padding: 10px 12px; min-height: 42px; font-size: .875rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.product-detail-nav #detail-compare:hover { background: var(--raised); }
.checkout-auth .auth-fields { grid-template-columns: 1fr; gap: 14px; }
.checkout-auth .auth-fields > div { display: block; }
.checkout-auth .auth-fields label { margin-bottom: 7px; }
.account-content { scrollbar-width: thin; overscroll-behavior: contain; }
.account-dialog .auth-switch { display: flex; gap: 4px; padding: 4px; border: 0; border-radius: 16px; background: var(--surface); }
.account-dialog .auth-switch button { flex: 1; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; }
.account-dialog .auth-switch button[aria-pressed=true] { background: var(--lilac); color: var(--lilac-ink); }
.purchase-content input:focus-visible, .account-content input:focus-visible { outline: 2px solid var(--title-accent); outline-offset: 2px; }
.account-order { grid-template-columns: minmax(0, 1fr) auto; }
.account-order span { min-width: 0; overflow-wrap: anywhere; }
.result-screen { padding-top: 14px; }
.result-icon { width: 48px; height: 48px; border-radius: 18px; margin-bottom: 12px; }
.result-icon svg { width: 26px; height: 26px; }
.result-screen h3 { font-size: 2.2rem; margin: 8px 0; }
.result-screen > p:not(.eyebrow):not(.payment-notice) { margin-bottom: 14px; }
.result-screen #result-chat { margin-top: 0; }
@media (max-width: 700px) {
  .gold-panel { grid-template-rows: minmax(0, 1fr); }
  .gold-card-title .text-button { font-size: .75rem; }
  .quantity-caption { flex-wrap: wrap; gap: 3px 8px; }
  .gold-quantity .quantity-input button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  .gold-presets { margin-top: 8px; }
  .product-detail-nav { gap: 6px; margin-bottom: 16px; }
  .product-detail-nav .modal-tabs button { padding-inline: 7px; }
  .product-detail-nav #detail-compare { padding-inline: 9px; font-size: .8125rem; }
}
@media (max-width: 380px) and (max-height: 650px) {
  .gold-panel { gap: 6px; }
  .gold-presets { margin-top: 6px; }
  .gold-card-title .text-button { min-height: 28px; }
  .gold-total { gap: 8px; padding-top: 5px; }
  .gold-total span { font-size: .75rem; line-height: 1.35; }
  .gold-total strong { font-size: 1.5rem; }
  .gold-total.has-long-amount { gap: 2px; }
  .gold-total.has-long-amount strong { font-size: 1.35rem; }
}
@media (max-width: 380px) { .account-order { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Comparison is part of choosing a pack, alongside its contents. */
.product-actions.pack-actions { grid-template-columns: .85fr 1fr 1.4fr !important; }
.pack-actions .compare-main { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid var(--line); }
.pack-actions .compare-main:hover { background: var(--surface); }
.pack-actions .compare-main svg { width: 18px; height: 18px; }
.order-summary { display: grid; gap: 8px; padding: 16px; margin: 20px 0 4px; border: 1px solid var(--line); border-radius: 18px; font-size: .9375rem; line-height: 1.5; }
.order-summary strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.order-summary small { font-size: .8125rem; color: var(--muted); }

/* Material You chat: tonal surfaces, soft shapes, one scroll area. */
body .chat-dialog {
  position: fixed; inset: auto 20px auto auto; top: calc(var(--chat-top, 0px) + 16px);
  width: min(420px, calc(100% - 40px)); height: min(680px, calc(var(--chat-vh, 100dvh) - 32px));
  max-width: calc(100% - 40px); max-height: calc(var(--chat-vh, 100dvh) - 32px);
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 32px;
  background: var(--paper); box-shadow: 0 12px 36px #0002, 0 2px 8px #0001;
  overflow: hidden; box-sizing: border-box; transform: none;
}
body .chat-dialog[open] { display: flex; flex-direction: column; animation: none; }
.chat-dialog::backdrop { background: #10101e88; backdrop-filter: blur(4px); }
.chat-dialog .chat-header { padding: 16px; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.chat-dialog .chat-mark { width: 40px; height: 40px; padding: 0; border-radius: 14px; }
.chat-dialog .chat-mark img { display: block; width: 40px; height: 40px; }
.chat-dialog .chat-mark { background: transparent; color: var(--accent-ink); }
.chat-dialog .chat-header h2 { font-size: 1.0625rem; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.chat-dialog .chat-header p { font-size: .75rem; line-height: 1.4; margin-top: 3px; }
.chat-dialog .close-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); }
.chat-dialog .close-button:hover { background: var(--raised); }
.chat-dialog .close-button svg { stroke-linecap: round; stroke-linejoin: round; }
.chat-dialog .chat-messages { flex: 1 1 0; min-width: 0; min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; scroll-padding-top: 16px; }
.chat-dialog .chat-messages:has(.chat-welcome:not([hidden])) { display: flex; flex-direction: column; }
.chat-dialog .chat-welcome { padding: 20px 0; margin: auto 0; text-align: center; }
.chat-welcome-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--lilac); color: var(--lilac-ink); border-radius: 24px; }
.chat-dialog .chat-welcome-icon svg { width: 30px; height: 30px; }
.chat-dialog .chat-welcome h3 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.045em; margin: 0 0 10px; }
.chat-dialog .chat-welcome p { font-size: .9375rem; line-height: 1.55; margin: 0 auto 20px; max-width: 300px; }
.chat-dialog .chat-welcome button { display: block; width: 100%; margin: 10px 0 0; padding: 11px 14px; min-height: 44px; border: 0; border-radius: 24px; background: var(--surface); font-size: .875rem; font-weight: 650; box-shadow: none; }
.chat-dialog .chat-welcome button:hover { background: var(--picked); color: var(--picked-ink); }
.chat-dialog .message { max-width: 90%; margin: 14px 0; }
.chat-dialog .message-body { border: 0; border-radius: 20px 20px 20px 6px; padding: 12px 15px; font-size: .9375rem; line-height: 1.55; }
.chat-dialog .message.is-customer { margin-left: auto; }
.chat-dialog .message.is-customer .message-body { border-color: transparent; border-radius: 20px 20px 6px 20px; background: color-mix(in srgb, var(--picked) 30%, var(--paper)); color: var(--ink); }
.chat-dialog .message small { font-size: .6875rem; line-height: 1.4; margin: 5px 0; }
.chat-dialog .message.is-system, .chat-dialog .message.is-delivery { width: 100%; max-width: 100%; margin: 16px 0; padding: 14px 16px; border-radius: 20px; border: 0; background: color-mix(in srgb, var(--lilac) 25%, var(--paper)); color: var(--ink); }
.chat-dialog .message.is-system.event-paid, .chat-dialog .message.is-delivery { background: color-mix(in srgb, var(--sage) 28%, var(--paper)); color: var(--ink); }
.chat-dialog .message.is-system.event-expired, .chat-dialog .message.is-system.event-cancelled, .chat-dialog .message.is-system.event-gold-cancel { background: var(--warm); color: var(--warm-ink); }
.chat-dialog .system-mark svg { width: 16px; height: 16px; }
.chat-dialog .message.is-system .message-body, .chat-dialog .message.is-delivery .message-body { padding: 0; border: 0; font-size: .8125rem; line-height: 1.5; }
.chat-dialog .system-heading { margin-bottom: 6px; font-size: .8125rem; gap: 7px; }
.chat-dialog .system-mark { width: 22px; height: 22px; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 10%, transparent); }
.chat-dialog .system-order { font-size: .6875rem; }
.chat-dialog .message-order-button { border-radius: 999px; min-height: 40px; }
.chat-dialog .delivery-label { font-size: .875rem; }
.chat-dialog .chat-context { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 0 0 14px; margin: 0; border: 0; }
.chat-dialog .chat-context label { font-size: .8125rem; }
.chat-dialog .chat-context select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; font-size: 1rem; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); }
.chat-dialog .gold-chat-detail { max-height: none; overflow: visible; margin: 0 0 16px; padding: 14px 16px; border: 0; border-radius: 20px; scroll-margin-top: 16px; }
.chat-dialog .gold-chat-detail .primary-button { border-radius: 999px; font-size: .8125rem; }
.chat-dialog .gold-chat-detail .gold-status { border-radius: 999px; }
.chat-dialog .message-form { margin: 0 14px; padding: 8px 8px 8px 12px; min-width: 0; gap: 8px; border: 2px solid transparent; border-radius: 28px; background: var(--surface); }
.chat-dialog .message-form:focus-within { outline: none; border-color: var(--title-accent); }
.chat-dialog .message-form textarea { width: 0; min-width: 0; min-height: 44px; max-height: 112px; padding: 8px 0; font-size: 1rem; line-height: 1.45; overflow: auto; box-sizing: border-box; }
.chat-dialog .send-message { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.chat-dialog .send-message:hover { filter: brightness(.94); }
.chat-dialog .chat-footnote { flex: none; padding: 0 14px; margin: 9px 0 12px; font-size: .6875rem; line-height: 1.4; text-align: center; }
.chat-dialog .form-notice { flex: none; max-height: 64px; overflow: auto; margin: 10px 14px 0; border-radius: 16px; padding: 8px 10px; font-size: .8125rem; }
.chat-dialog button:focus-visible, .chat-dialog select:focus-visible { outline: 2px solid var(--title-accent); outline-offset: 3px; }

@media (max-width: 700px) {
  .pack-actions .compare-main svg { display: none; }
  .product-actions.pack-actions { grid-template-columns: .85fr 1fr 1.45fr !important; gap: 7px; }
  .pack-actions .secondary-button { font-size: .8125rem; padding-inline: 6px; }
  .pack-actions .primary-button { font-size: .8125rem; padding-inline: 6px; gap: 6px; white-space: nowrap; }
  .pack-actions .primary-button svg { width: 16px; height: 16px; }
  .store-stage:not(.is-gold) { grid-template-rows: clamp(100px, 21dvh, 182px) minmax(0, 1fr); gap: 10px; }
  .store-stage:not(.is-gold) > .scene { display: block; position: relative; width: calc(100% + 36px); margin-inline: -18px; min-height: 0; }
  .store-stage:not(.is-gold) .scene-media { position: absolute; inset: 0; height: 100%; width: 100%; border-radius: 0; }
  .store-stage:not(.is-gold) .scene-media > img { object-fit: cover; object-position: 56% 45%; }
  .store-stage:not(.is-gold) .scene-heading { position: absolute; z-index: 2; inset: auto 18px 12px; padding: 0; pointer-events: none; }
  .store-stage:not(.is-gold) .scene h1, body[data-product] .store-stage:not(.is-gold) .scene h1 { font-size: 1.9rem; line-height: 1.03; margin: 0; letter-spacing: -.05em; color: #fff; text-shadow: 0 2px 8px #000c; }
  .store-stage:not(.is-gold) .scene h1 span { margin-left: .2em; color: #fff; }
  .store-stage:not(.is-gold) .scene h1 br { display: none; }
  #forever-card .product-copy > p { display: none; }
  #forever-card .product-copy h2 { font-size: 1.85rem; }
  #forever-card .pack-benefits { margin-top: 10px; }
  #forever-card .pack-benefits li { padding: 7px 8px; }
  #forever-card .product-hint { padding-top: 6px; }
  body .chat-dialog { inset: auto; top: var(--chat-top, 0px); left: 0; width: 100%; height: var(--chat-vh, 100dvh); max-width: 100%; max-height: var(--chat-vh, 100dvh); border: 0; border-radius: 0; box-shadow: none; }
  .chat-dialog .chat-header { padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
  .chat-dialog .chat-messages { padding: 14px; }
  .chat-dialog .chat-welcome { padding-block: 16px; }
  .chat-dialog .chat-footnote { margin-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 385px) {
  .store-stage:not(.is-gold) > .scene { width: calc(100% + 28px); margin-inline: -14px; }
  .store-stage:not(.is-gold) .scene-heading { left: 14px; right: 14px; }
  .compare-panel .table-scroll thead th:last-child { font-size: .625rem; letter-spacing: -.025em; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .store-stage:not(.is-gold) { grid-template-rows: clamp(76px, 17dvh, 112px) minmax(0, 1fr); gap: 8px; }
  #forever-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; grid-template-areas: 'head head' 'copy price' 'benefits benefits' 'hint hint'; align-content: start; gap: 3px 10px; padding: 8px 16px; }
  #forever-card .product-card-head { grid-area: head; }
  #forever-card .product-copy { grid-area: copy; min-width: 0; margin: 0; }
  #forever-card .product-copy h2 { font-size: 1.2rem; line-height: 1.1; }
  #forever-card .catalog-price { grid-area: price; align-self: center; font-size: 1.3rem; margin: 0; }
  #forever-card .pack-benefits { grid-area: benefits; margin: 0; gap: 5px; }
  #forever-card .pack-benefits li { padding: 5px 6px; gap: 3px; }
  #forever-card .pack-benefits strong { font-size: 1.2rem; }
  #forever-card .pack-benefits span { font-size: .6875rem; line-height: 1.25; }
  #forever-card .product-hint { grid-area: hint; padding: 0; }
  #forever-card .hint-trigger { font-size: .6875rem; min-height: 20px; }
  .edition-choices .choice > span { min-height: 44px; padding-block: 6px; }
  .edition-choices .choice small { font-size: .6875rem; }
}
@media (max-height: 450px) {
  .chat-dialog .chat-header p, .chat-dialog .chat-footnote { display: none; }
  .chat-dialog .chat-header { padding-block: 8px; }
  .chat-dialog .message-form { margin-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* Shared product imagery and quiet surfaces across the shop and workspace. */
:root { --radius-card: 28px; --radius-control: 999px; }
.scene-media:not(.is-gold)::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent 20%, rgba(15,23,20,.18) 48%, rgba(15,23,20,.85) 100%); }
.scene-media .scene-product-copy { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 1; color: #f7f8f1; }
.scene-product-copy p { color: #d9e3d1; font-size: .8125rem; font-weight: 650; line-height: 1.4; margin-bottom: 10px; }
.scene-product-copy h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; max-width: 510px; text-wrap: balance; }
.scene-product-copy ul { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 16px 0 0; padding: 0; }
.scene-product-copy li { font-size: .875rem; line-height: 1.5; }
.scene-product-copy li + li::before { content: '·'; display: inline-block; margin-right: 16px; color: #bbccad; }
.scene-media .launch-sticker { z-index: 2; border: 1px solid #ffffff28; background: #18261edb; color: #f7f8f1; }
.scene-media.is-time .scene-type { display: none; }
.preferences-button svg[data-preferences-theme-icon] { width: 20px; height: 20px; }
body .display-preferences { border-radius: var(--radius-card); }
.chat-dialog .chat-context { flex: none; display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-dialog .chat-context label { display: block; margin: 0 0 6px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.chat-context-controls { display: flex; align-items: center; gap: 8px; }
.chat-dialog .chat-context select { flex: 1; width: 0; min-width: 0; min-height: 44px; padding-inline: 12px; border-radius: 18px; font-size: .875rem; }
.chat-context-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); }
.chat-context-toggle[aria-expanded=true] { background: var(--picked); color: var(--picked-ink); }
.chat-context-description { color: var(--muted); font-size: .75rem; line-height: 1.4; margin: 7px 0 0; }
.chat-context-detail { flex: none; padding: 0; margin-bottom: 14px; }
.chat-order-detail { background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.chat-order-detail h3 { font-size: 1rem; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; margin: 0 0 8px; }
.chat-order-detail p { font-size: .8125rem; color: var(--muted); line-height: 1.5; margin: 6px 0; }
.chat-order-detail .primary-button { min-height: 40px; font-size: .8125rem; padding: 10px 16px; margin-top: 8px; }
.chat-dialog .gold-chat-detail { margin-bottom: 0; background: var(--surface); color: var(--ink); }
.chat-dialog #message-list { display: flex; flex-direction: column; }
.chat-new-messages { display: flex; align-items: center; justify-content: center; gap: 7px; align-self: center; flex: none; min-height: 36px; margin: 0 14px 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--picked); color: var(--picked-ink); font-size: .8125rem; }
.chat-new-messages svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .store-stage:not(.is-gold) .scene-heading { display: none; }
  .scene-media .scene-product-copy { left: 18px; right: 18px; bottom: 14px; }
  .scene-product-copy p { font-size: .6875rem; margin-bottom: 5px; }
  .scene-product-copy h2 { font-size: 1.55rem; line-height: 1.1; max-width: 100%; }
  .scene-product-copy ul { margin-top: 8px; gap: 4px 9px; flex-wrap: nowrap; }
  .scene-product-copy li { font-size: .75rem; white-space: nowrap; }
  .scene-product-copy li + li::before { margin-right: 9px; }
  .scene-media .launch-sticker { top: 10px; right: 12px; font-size: .6875rem; padding: 7px 10px; min-height: 32px; }
  .chat-dialog .chat-context { padding: 10px 14px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .scene-product-copy p { display: none; }
  .scene-media .scene-product-copy { bottom: 12px; }
  .scene-product-copy h2 { font-size: 1.3rem; }
  .scene-product-copy ul { margin-top: 5px; }
  .scene-product-copy li { font-size: .6875rem; }
  .scene-product-copy li + li::before { margin-right: 7px; }
  .scene-media .launch-sticker { display: none; }
}
@media (max-width: 385px) { .scene-media .scene-product-copy { left: 14px; right: 14px; } .scene-product-copy li:last-child { overflow: hidden; text-overflow: ellipsis; } }
@media (max-height: 450px) { .chat-dialog .chat-context-description { display: none; } .chat-dialog .chat-context { padding-block: 6px; } .chat-dialog .chat-context label { display: none; } }

@media(max-width:700px) and (max-height:650px){.store-stage:not(.is-gold){grid-template-rows:76px minmax(0,1fr)}.time-choices .choice>span{min-height:44px;padding-block:4px}#time-card{padding:8px 14px}#time-card .product-card-head{font-size:.6875rem}#time-card .product-copy{margin-top:6px}#time-card .product-copy h2{font-size:1.65rem}#time-card .catalog-price{font-size:1.65rem;margin-top:7px}#time-card .key-benefits{margin-top:5px}#time-card .key-benefits li{font-size:.8125rem;padding-block:2px;line-height:1.25}#time-card .product-hint{padding-top:4px}#time-card .hint-trigger{font-size:.6875rem;min-height:24px}}

@media(max-width:700px) and (max-height:650px){#time-card .buyer-protection{padding-top:5px}#time-card .buyer-protection button{font-size:.6875rem;line-height:1.4;min-height:24px}}

.buyer-tasks{display:grid;gap:10px;margin:18px 0}.buyer-task{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}.buyer-task-copy{display:grid;gap:5px;min-width:0;text-align:left}.buyer-task-copy strong{overflow-wrap:anywhere}.buyer-task-copy small,.buyer-task-copy span{color:var(--muted);font-size:12px}.buyer-task .secondary-button{flex-shrink:0;min-height:42px;padding:10px 16px}@media(max-width:480px){.buyer-task{align-items:flex-start;flex-direction:column;gap:12px}.buyer-task .secondary-button{width:100%}}

/* Game-time artwork uses type and product information, without illustration. */
.scene-media.is-time{background:#263a31;color:#edf0e7;border-radius:28px 64px 28px 28px}
.scene-media.is-time::after{display:none}
.scene-media.is-time>img,.scene-media.is-time .scene-product-copy{display:none}
.scene-media.is-time #scene-type{display:flex;height:100%;padding:30px;align-items:stretch;justify-content:space-between;background:transparent;color:inherit;text-align:left}
.time-scene-head,.time-scene-foot{display:flex;justify-content:space-between;align-items:center;gap:16px}
.scene-media.is-time .scene-type-top,.time-scene-region{font-size:13px;font-weight:550;letter-spacing:.02em;margin:0;display:inline;color:#c0ccb9}
.time-scene-duration{display:flex;align-items:baseline;justify-content:center;gap:22px;padding-block:12px}
.scene-media.is-time #scene-number{font-size:clamp(100px,18vw,260px);font-weight:550;line-height:.84;letter-spacing:-.085em;margin:0}
.scene-media.is-time .scene-unit{font-size:clamp(24px,3.5vw,46px);line-height:1;margin:0;letter-spacing:-.04em}
.time-scene-foot{border-top:1px solid #6c807066;padding-top:18px;color:#c0ccb9;font-size:13px}
.scene-media.is-time .scene-type-bottom{display:inline;position:static;margin:0;font-size:13px}
.brand{font-weight:700;letter-spacing:-.055em;gap:10px}
.brand-domain{font-size:.5em;font-weight:500;letter-spacing:-.02em;margin-left:2px}
.brand-mark,.admin-brand-mark{border-radius:10px;outline:1px solid #ffffff15;outline-offset:-1px}
.admin-brand-name{font-weight:700;letter-spacing:-.055em}
@media(max-width:700px){
 .scene-media.is-time{border-radius:0}
 .scene-media.is-time #scene-type{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,1fr);padding:12px 18px;gap:5px 24px}
 .time-scene-head{grid-column:1/-1;align-self:start}
 .scene-media.is-time .scene-type-top,.time-scene-region{font-size:11px;display:inline}
 .time-scene-duration{grid-row:2;padding:0;justify-content:flex-start;gap:10px;align-self:center}
 .scene-media.is-time #scene-number{font-size:clamp(46px,9dvh,82px);line-height:.9}
 .scene-media.is-time .scene-unit{font-size:21px}
 .time-scene-foot{grid-row:2;display:grid;justify-content:end;align-content:center;gap:3px;border:0;padding:0;font-size:11px;text-align:right}
 .scene-media.is-time .scene-type-bottom{font-size:12px;display:inline}
}
@media(max-width:385px){.scene-media.is-time #scene-type{padding-inline:14px;gap:4px 12px}.scene-media.is-time .scene-unit{font-size:18px}}
@media(max-width:700px) and (max-height:650px){.scene-media.is-time #scene-type{padding-block:8px}.scene-media.is-time #scene-number{font-size:43px}.scene-media.is-time .scene-type-top,.time-scene-region{font-size:10px}.time-scene-foot{font-size:10px}.scene-media.is-time .scene-type-bottom{font-size:11px}}

/* Gold follows the shared product selector / card / actions pattern. */
#panel-gold{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;align-content:stretch}
.gold-faction-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.gold-faction-choices .choice>span{min-height:60px;justify-content:center;border-radius:18px}
.gold-faction-choices .choice b{font-size:1rem;font-weight:650}
#gold-form{max-height:100%;min-height:0;gap:14px;justify-content:space-between;padding:26px 30px}
#gold-form>*{flex-shrink:0}
#gold-form .product-copy{margin:0}
#gold-form .product-copy h2{font-size:clamp(1.75rem,2.5vw,2.4rem);line-height:1.1}
#gold-form .gold-fields{grid-template-columns:1fr}
#gold-form .gold-fields>div{display:flex;align-items:center;gap:14px}
#gold-form .gold-fields label{flex:none;margin:0}
#gold-form .gold-fields select{flex:1;min-width:0;width:auto}
#gold-form .gold-total{margin-top:6px;padding-top:16px}
#gold-form .gold-total strong{font-weight:700}
#gold-form .quantity-input:focus-within{outline-color:currentColor}
.gold-actions{grid-template-columns:1fr 1.4fr}
@media(min-width:701px) and (max-height:760px){#gold-form{gap:10px;padding:18px 26px}#gold-form .product-copy h2{font-size:1.75rem}}
@media(max-width:700px){#panel-gold{gap:10px}.gold-faction-choices .choice>span{min-height:48px}.gold-faction-choices .choice b{font-size:.9375rem}#gold-form{gap:10px;padding:18px 22px}#gold-form .product-copy h2{font-size:1.75rem}#gold-form .gold-total{margin-top:4px;padding-top:12px}.gold-actions button{min-height:46px;font-size:.875rem;padding-inline:10px}}
@media(max-width:700px) and (max-height:650px){#panel-gold{gap:7px}.gold-faction-choices .choice>span{min-height:44px;padding-block:8px}#gold-form{gap:5px;padding:10px 16px;justify-content:flex-start}#gold-form .product-card-head{font-size:.6875rem}#gold-form .product-copy h2{font-size:1.25rem}#gold-form .gold-fields>div{display:flex;align-items:center;gap:10px}#gold-form .gold-fields label{margin:0;flex:none}#gold-form .gold-fields select{min-width:0;flex:1;min-height:38px}#gold-form .quantity-input{min-height:44px;padding-block:2px}#gold-form .quantity-input button{min-height:32px;height:32px;min-width:32px;width:32px}#gold-form .quantity-input input{font-size:1.5rem}#gold-form .gold-presets{margin-top:5px}#gold-form .gold-presets button{padding-inline:2px;font-size:.75rem;min-height:28px}#gold-form .gold-total{margin-top:0;padding-top:8px}#gold-form .gold-note{font-size:.75rem;line-height:1.4}.gold-actions button{min-height:44px;font-size:.8125rem;padding-inline:6px}}

@media(max-width:700px) and (max-height:650px){#gold-form{gap:4px;padding-block:8px}#gold-form .gold-total{padding-top:6px}.gold-actions button{padding-block:8px;line-height:1.25}}

/* Region buttons and shared, browser-independent chat topic panels. */
#gold-form .gold-region-label{flex:none;font-size:.875rem}
.gold-region-options{display:flex;gap:8px;min-width:0;flex:1}
.gold-region-choice{flex:1;min-width:0;min-height:42px;padding:9px 14px;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:13px;background:transparent;color:inherit;font-size:.875rem;font-weight:600}
.gold-region-choice[aria-checked=true]{background:var(--sage-ink);color:var(--sage);border-color:var(--sage-ink)}
.gold-region-choice:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.topic-control{flex:1;min-width:0;max-width:100%}
.topic-trigger{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);font-size:.875rem;text-align:left}
.topic-trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topic-trigger-arrow{display:flex;flex:none}.topic-trigger-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.topic-menu{position:fixed;inset:auto;margin:0;padding:8px;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 12px 36px #0003;overflow:auto;z-index:1000}
.topic-search{position:sticky;top:0;z-index:1;width:100%;margin:0 0 8px;padding:11px 12px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font:inherit;font-size:.875rem}
.topic-options{display:grid;gap:4px}.topic-group{display:grid;gap:4px}.topic-group+.topic-group{margin-top:8px}
.topic-group-label{margin:8px 10px 4px;font-size:.75rem;color:var(--muted);font-weight:650}
.topic-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;min-height:44px;border:0;border-radius:14px;text-align:left;background:transparent;color:var(--ink);font-size:.8125rem;line-height:1.45}
.topic-option:hover,.topic-option:focus-visible{background:var(--surface)}.topic-option[aria-selected=true]{background:var(--picked);color:var(--picked-ink)}
.topic-option-text{min-width:0;overflow-wrap:anywhere}.topic-option-mark{visibility:hidden;display:flex;flex:none}.topic-option[aria-selected=true] .topic-option-mark{visibility:visible}
.topic-option-mark svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.topic-trigger:focus-visible,.topic-option:focus-visible{outline:2px solid var(--title-accent);outline-offset:-2px}
.topic-empty{margin:12px;padding:8px;color:var(--muted);font-size:.875rem}
@media(max-width:700px) and (max-height:650px){#gold-form .gold-region-label{font-size:.8125rem}.gold-region-choice{min-height:36px;padding:7px 10px;font-size:.8125rem}.topic-search{font-size:1rem}}

/* G1 identity and ordered gold selection. */
.brand-mark,.admin-brand-mark{border-radius:0;outline:0;color:var(--ink);stroke:none}
.hyjal-mark{stroke:none}
.chat-dialog .chat-mark svg{display:block;width:40px;height:40px}
#panel-gold{grid-template-rows:auto minmax(0,1fr) auto}
.gold-selectors{display:grid;gap:10px}
.gold-region-choices>div{display:grid;gap:6px}
.gold-region-label,.gold-faction-choices legend{font-size:.875rem;font-weight:600;line-height:1.35;color:var(--muted)}
.gold-region-choices .gold-region-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gold-region-choices .gold-region-choice{min-height:48px;border-color:var(--line);border-radius:15px;color:var(--ink)}
.gold-region-choices .gold-region-choice[aria-checked=true]{background:var(--picked);color:var(--picked-ink);border-color:transparent}
.gold-faction-choices legend{position:static;width:auto;height:auto;margin:0 0 6px;padding:0;overflow:visible;clip:auto;clip-path:none;white-space:normal}
#gold-form .gold-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:8px}
#gold-form .gold-presets button{min-height:36px;padding:5px;font-size:.875rem}
#gold-form .gold-note{display:flex;align-items:flex-start;gap:8px;margin:0;line-height:1.45}
.gold-protection-icon{width:17px;height:17px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.gold-selectors{gap:8px}.gold-region-choices .gold-region-choice{min-height:44px}.gold-faction-choices .choice>span{min-height:44px}#gold-form .gold-presets button{font-size:.8125rem}}
@media(max-width:700px) and (max-height:700px){.gold-selectors{gap:6px}.gold-region-choices>div{gap:4px}.gold-faction-choices legend{margin-bottom:4px}.gold-region-choices .gold-region-choice,.gold-faction-choices .choice>span{min-height:38px;padding-block:7px}#gold-form .gold-presets{gap:5px;margin-top:6px}#gold-form .gold-presets button{min-height:32px;padding-block:3px}}
@media(min-width:701px) and (max-height:780px){
 #gold-form{gap:5px;padding:14px 24px;justify-content:space-between}
 #gold-form .product-card-head{display:none}
 #gold-form .product-copy h2{font-size:1.5rem}
 #gold-form .quantity-caption{margin-bottom:5px}
 #gold-form .quantity-input{min-height:44px;padding-block:2px}
 #gold-form .quantity-input input{font-size:1.75rem}
 #gold-form .quantity-input button{min-height:36px;height:36px;min-width:36px;width:36px}
 #gold-form .gold-presets{gap:5px;margin-top:6px}
 #gold-form .gold-presets button{min-height:30px;padding:3px}
 #gold-form .gold-total{margin-top:0;padding-top:6px}
 #gold-form .gold-total strong{font-size:1.75rem;line-height:1.2}
}
