:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #777777;
  --surface: #f4f4f4;
  --line: #e9e9e9;
  --red: #db171c;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.modal-open { overflow: hidden; }
body.game-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { width: min(100%, 720px); min-height: 100dvh; margin: 0 auto; padding-bottom: 100px; }
.icon { display: inline-block; width: 21px; height: 21px; flex: none; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.icon-search { --icon: url("./assets/icons/search.svg"); }
.icon-bag { --icon: url("./assets/icons/shopping-bag.svg"); }
.icon-plus { --icon: url("./assets/icons/plus.svg"); }
.icon-minus { --icon: url("./assets/icons/minus.svg"); }
.icon-x { --icon: url("./assets/icons/x.svg"); }
.icon-back { --icon: url("./assets/icons/arrow-left.svg"); }
.icon-promo-arrow { --icon: url("./assets/icons/arrow-left.svg"); transform: rotate(180deg); }
.icon-check { --icon: url("./assets/icons/check.svg"); }
.icon-trash { --icon: url("./assets/icons/trash-2.svg"); }

.app-header { position: sticky; top: 0; z-index: 5; background: var(--white); padding: max(10px, env(safe-area-inset-top)) 18px 8px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; }
.brand-name { font: 900 28px/1.1 Georgia, "Times New Roman", serif; white-space: nowrap; }
.brand-caption { margin-top: 2px; color: #888; font-size: 10px; font-weight: 700; }
.icon-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 7px; color: var(--ink); background: var(--surface); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 1px 4px; border-radius: 9px; background: var(--red); color: var(--white); font-size: 10px; font-weight: 700; line-height: 16px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin: 12px 0 15px; border-radius: 7px; background: var(--surface); color: #999; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-field input::placeholder { color: #aaa; }
.search-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--red); }
.category-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.category-chip[aria-current="true"] { color: var(--white); background: var(--ink); }

.catalog { padding: 13px 18px 0; }
.account-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 46px; margin: 0 0 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; text-align: left; }
.account-link .icon { width: 16px; height: 16px; color: var(--red); }
.account-link span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-promo { position: relative; display: flex; align-items: center; min-height: 102px; overflow: hidden; padding: 14px 112px 14px 16px; margin: 0 0 27px; border-radius: 7px; background: #252525; color: var(--white); text-decoration: none; }
.game-promo:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.game-promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.game-promo-kicker { color: #d1ec55; font-size: 10px; font-weight: 800; line-height: 1.1; }
.game-promo strong { font-size: 22px; line-height: 1.1; }
.game-promo-image { position: absolute; right: 13px; bottom: -13px; width: 105px; height: 105px; object-fit: contain; }
.game-promo .icon-promo-arrow { position: absolute; top: 11px; right: 11px; width: 16px; height: 16px; }
.game-promo:hover .game-promo-image { transform: translateY(-3px); }
.game-view { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #0a0a0a; color: #fff; }
.game-view-header { flex: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: max(4px, env(safe-area-inset-top)) 12px 4px; background: #0a0a0a; }
.game-view-header strong { font-size: 15px; }
.game-view-back { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: #262626; color: #fff; }
.game-view iframe { width: 100%; min-height: 0; flex: 1; border: 0; background: #0a0a0a; }
.menu-section + .menu-section { margin-top: 38px; }
.menu-section h1 { margin: 4px 0 20px; font: 400 30px/1.1 Georgia, "Times New Roman", serif; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.product-card { min-width: 0; }
.product-photo { width: 100%; aspect-ratio: 1; display: block; border: 0; border-radius: 7px; background-color: var(--surface); background-repeat: no-repeat; background-size: var(--background-size); background-position: var(--background-position); }
.product-photo-button { width: 100%; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.product-name { min-height: 40px; margin: 9px 0 2px; font-size: 15px; font-weight: 700; line-height: 20px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-weight { min-height: 16px; margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.product-card-reviews, .product-rating-top { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; min-height: 48px; width: 100%; padding: 4px 0; margin: -4px 0 6px; border: 0; border-radius: 6px; background: transparent; color: #626262; font-size: 12px; line-height: 1.35; text-align: left; }
.rating-line { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; }
.rating-star { color: #b56708; font-size: 19px; line-height: 1; }
.rating-line strong { color: var(--ink); font-size: 15px; font-weight: 750; }
.rating-dot { color: #888; }
.rating-caption { color: #626262; text-decoration: underline; text-decoration-color: #c8c8c8; text-underline-offset: 3px; }
.rating-caption > span { display: inline-block; margin-left: 3px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .product-card-reviews:hover, .product-rating-top:hover { background: #faf5ef; }
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 34px; color: var(--red); }
.product-price { font-size: 16px; font-weight: 750; white-space: nowrap; }
.product-add { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--red); }
.product-add .icon { width: 20px; height: 20px; }
.catalog-note { margin: 24px 0 0; color: #999; font-size: 12px; line-height: 1.4; }
.empty-search { grid-column: 1 / -1; padding: 50px 10px; color: var(--muted); text-align: center; }

.cart-bar { position: fixed; z-index: 8; left: max(18px, calc((100vw - 720px) / 2 + 18px)); right: max(18px, calc((100vw - 720px) / 2 + 18px)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--red); color: var(--white); font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px #0002; }
.cart-bar-label { display: inline-flex; align-items: center; gap: 10px; }

dialog.sheet { position: fixed; inset: auto 0 0; width: min(100%, 640px); height: min(93dvh, 940px); max-height: calc(100dvh - 12px); margin: 0 auto; padding: 0; border: 0; border-radius: 14px 14px 0 0; color: var(--ink); background: var(--white); overflow: hidden; }
dialog.sheet::backdrop { background: rgb(0 0 0 / 45%); }
.sheet-layout { display: flex; flex-direction: column; height: 100%; }
.sheet-header { flex: none; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.sheet-header strong { font-size: 17px; }
.sheet-header .icon-button { margin-left: auto; width: 36px; height: 36px; background: transparent; }
.sheet-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 24px; }
.sheet-photo { width: 100%; height: clamp(220px, 37dvh, 330px); border-radius: 7px; background-color: var(--surface); background-repeat: no-repeat; background-size: var(--background-size); background-position: var(--background-position); }
.sheet-title { margin: 17px 0 3px; font: 700 29px/1.08 Georgia, "Times New Roman", serif; }
.sheet-weight { margin: 0; color: var(--muted); font-size: 14px; }
.product-rating-top { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-height: 52px; margin: 12px 0 0; padding: 10px 12px; background: #faf5ef; font-size: 13px; }
.product-rating-top .rating-line strong { font-size: 18px; }
.product-rating-top .rating-star { font-size: 22px; }
.sheet-description { margin: 17px 0 0; font-size: 15px; line-height: 1.45; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 8px; }
.section-heading h2 { margin: 0; font: 700 21px/1.15 Georgia, "Times New Roman", serif; }
.section-heading span { flex: none; color: #999; font-size: 12px; }
.portion-control { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface); border-radius: 8px; }
.portion-control button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 650; }
.portion-control button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 3px #0002; }
.portion-price { margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 57px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.option-row:last-child { border-bottom: 0; }
.option-name { display: block; font-size: 14px; line-height: 1.3; }
.option-price { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.option-check { display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #ccc; border-radius: 4px; color: transparent; }
.option-row[aria-pressed="true"] .option-check { border-color: var(--red); background: var(--red); color: var(--white); }
.option-check .icon { width: 16px; height: 16px; }
.sheet-footer { flex: none; display: flex; align-items: center; gap: 10px; min-height: 80px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.quantity-stepper { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 116px; height: 50px; padding: 0 4px; flex: none; border-radius: 7px; background: var(--surface); }
.quantity-stepper button { display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.quantity-stepper button:disabled { opacity: .35; }
.quantity-stepper span { min-width: 20px; text-align: center; font-weight: 700; }
.primary-button { min-height: 50px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.sheet-footer .primary-button { min-width: 0; flex: 1; }

.cart-empty { display: grid; place-items: center; gap: 12px; min-height: 55dvh; color: var(--muted); text-align: center; }
.cart-empty .icon { width: 42px; height: 42px; }
.cart-empty strong { color: var(--ink); font-size: 18px; }
.cart-line { padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line-top { display: flex; align-items: flex-start; gap: 12px; }
.cart-line-photo { flex: none; width: 68px; height: 68px; border-radius: 6px; background-color: var(--surface); background-repeat: no-repeat; background-size: var(--background-size); background-position: var(--background-position); }
.cart-line-copy { min-width: 0; flex: 1; }
.cart-line-name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.cart-line-meta, .cart-line-options { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.cart-line-total { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cart-line-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 6px; }
.cart-line-actions button, .cart-clear { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.cart-clear { margin-left: auto; color: var(--muted); }
.cart-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cart-summary { display: flex; flex-direction: column; gap: 2px; }
.cart-summary small { color: var(--muted); font-size: 12px; }
.cart-summary strong { font-size: 18px; }
.order-confirmation { display: grid; place-content: center; gap: 14px; min-height: 56dvh; text-align: center; }
.order-confirmation .icon { width: 48px; height: 48px; margin: 0 auto; color: var(--red); }
.order-confirmation h2 { margin: 0; font: 700 27px Georgia, serif; }
.order-confirmation p { margin: 0; color: var(--muted); line-height: 1.45; }
.account-total { margin: 0 0 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-total small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.account-total strong { color: var(--red); font-size: 30px; }
.account-section { margin: 20px 0; }
.account-section h2 { margin: 0 0 10px; font-size: 17px; }
.account-entry { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.account-entry span:last-child { flex: none; font-weight: 700; }
.account-empty { color: var(--muted); font-size: 14px; line-height: 1.45; }
.product-reviews { padding-bottom: 14px; scroll-margin-top: 16px; }
.review-overview { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-height: 27px; }
.review-overview strong { color: var(--ink); font-size: 20px; }
.review-overview > span:last-child { font-size: 13px; }
.review-stars { color: #a55a09; font-size: 16px; white-space: nowrap; }
.review-list { margin-top: 8px; }
.review-entry { padding: 13px 0; border-top: 1px solid var(--line); }
.review-entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.review-entry time { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.review-entry p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-editor { border-top: 1px solid var(--line); padding-top: 17px; }
.review-editor h3 { margin: 0 0 9px; font-size: 16px; }
.review-editor form { display: grid; gap: 13px; }
.review-editor label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.review-editor input, .review-editor textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #ccc; border-radius: 6px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 400; }
.review-editor textarea { resize: vertical; line-height: 1.4; }
.review-rating { display: flex; gap: 2px; }
.review-rating button { width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: #c8c8c8; font-size: 31px; line-height: 1; }
.review-rating button[aria-pressed="true"] { color: #a55a09; }
.review-status { min-height: 18px; margin: 0; color: var(--red); font-size: 13px; }
.review-login { min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 700; text-align: left; }
.account-signin h2 { margin: 0 0 12px; font-size: 20px; }
.account-signin p { font-size: 14px; line-height: 1.45; }
.account-signin .primary-button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; margin: 9px 0 2px; text-decoration: none; }
.account-identity { display: grid; gap: 4px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.account-identity strong { font-size: 21px; }
.account-identity span { color: var(--muted); font-size: 13px; }
.account-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-stats div { min-width: 0; }
.account-stats small { display: block; min-height: 32px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.account-stats strong { display: block; margin-top: 5px; color: var(--red); font-size: 21px; overflow-wrap: anywhere; }
.account-section h2 small { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.account-order { border-bottom: 1px solid var(--line); }
.account-order summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.account-order summary::-webkit-details-marker { display: none; }
.account-order summary span { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.account-order summary small { color: var(--muted); font-size: 12px; font-weight: 400; }
.account-order summary strong { flex: none; font-size: 14px; }
.account-order-items { padding: 0 0 12px; }
.account-order-items > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.account-order-items span { min-width: 0; }
.account-order-items small { display: block; margin-top: 3px; color: var(--muted); }
.account-order-items strong { flex: none; }
.account-review-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.account-review-link > span:first-child { display: grid; gap: 3px; min-width: 0; font-size: 14px; font-weight: 700; }
.account-review-link small { font-size: 13px; }
.account-review-link .icon { width: 16px; height: 16px; }
.account-logout { margin: 5px 0 15px; padding: 0; min-height: 42px; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 700; }
.account-auth-form { display: grid; gap: 16px; margin-top: 18px; }
.account-auth-form > label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.account-auth-form input { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #bdbdbd; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.account-password { display: flex; border: 1px solid #bdbdbd; border-radius: 9px; overflow: hidden; }
.account-password input { flex: 1; width: 0; border: 0; border-radius: 0; }
.account-password button { flex: none; min-width: 78px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.account-auth-form .primary-button { width: 100%; margin: 0; }
.account-auth-text { display: block; min-height: 44px; margin-top: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 700; text-align: left; }
.account-auth-alternative { display: grid; gap: 12px; margin-top: 18px; text-align: center; }
.account-auth-alternative > span { color: var(--muted); font-size: 13px; }
.account-auth-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.account-auth-hint { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.account-auth-status { margin: 0; color: #b21217; font-size: 14px; font-weight: 400; line-height: 1.45; }
.account-auth-status:empty { display: none; }
.account-access { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-access .primary-button { width: 100%; }
.account-auth-form input:focus-visible, .account-password:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.account-password input:focus-visible { outline: none; }
.account-auth-form button:disabled, .account-auth-secondary:disabled { opacity: .6; cursor: wait; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(80px, calc(env(safe-area-inset-bottom) + 75px)); transform: translate(-50%, 10px); min-width: 160px; max-width: calc(100vw - 40px); padding: 10px 15px; border-radius: 7px; background: var(--ink); color: var(--white); font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  dialog.sheet { inset: 0; width: min(92vw, 580px); height: min(88dvh, 860px); margin: auto; border-radius: 10px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 25px; }
  .product-price { font-size: 15px; }
  .sheet-title { font-size: 26px; }
  .quantity-stepper { width: 105px; }
  .primary-button { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
.product-price-none { color: #777; font-size: 13px; font-weight: 500; }
/* 15.10 owner: constructor hidden for now — the builder code stays, only its entry is off. */
#builder-entry { display: none !important; }
