/* The Meliora Court: ivory marble, antique gold, and imperial purple. */
:root {
  color-scheme: light;
  --ink: #302338;
  --black: #f8f5ee;
  --purple: #462758;
  --purple2: #704b87;
  --gold: #886224;
  --gold2: #79551b;
  --cream: #302338;
  --muted: #726779;
  --card: #fffdf8;
  --line: rgba(155, 119, 52, .3);
  --shadow: 0 16px 44px rgba(75, 54, 29, .07);
}
body {
  background-color: var(--black);
  background-image: linear-gradient(118deg, transparent 47%, #d8d0c215 48%, transparent 49%),
    linear-gradient(24deg, transparent 68%, #d8d0c218 69%, transparent 70%);
  background-size: 680px 940px, 920px 760px;
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #704b87;
  outline-offset: 4px;
}
::selection { background: #e5d8ed; color: #302338; }
.announcement {
  background: #3c244d;
  color: #f3e3b4;
  border-bottom-color: #b99a56;
  font-size: 10px;
  letter-spacing: .12em;
  padding-block: 10px;
}
.site-header {
  height: 84px;
  gap: 20px;
  background: rgba(255, 252, 246, .96);
  border-bottom-color: #d4bd8e;
  box-shadow: 0 4px 24px #48312508;
}
.brand { color: var(--ink); }
.brand strong { color: #462758; font-size: 14px; letter-spacing: .12em; }
.brand small { color: #726779; font-size: 10px; }
.brand-crest { width: 54px; height: 54px; filter: drop-shadow(0 3px 5px #49312b20); }
.nav { gap: clamp(10px, 1vw, 16px); }
.nav a { color: #4d3d57; font-size: 12px; }
.nav a:hover { color: #79551b; }
.nav .adult-link { color: #6f4384 !important; }
.icon-btn, .cart-btn, .menu-toggle, .court-settings-button {
  border-color: #d7c9ad;
  border-radius: 5px;
  background: #fffcf6;
  color: #493253;
  cursor: pointer;
  min-height: 42px;
}
.cart-btn { background: #462758; border-color: #462758; color: #fffaf1; }
.cart-btn span { background: #e6c87e; color: #3b2812; }
.icon-btn:hover, .menu-toggle:hover, .court-settings-button:hover { background: #f1e9dc; }
.hero {
  min-height: 660px;
  min-height: min(760px, 88svh);
  background: #f5efe4;
  isolation: isolate;
  border-bottom: 1px solid #d6bc86;
}
.palace-backdrop { position: absolute; inset: 0; z-index: -2; }
.palace-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, #fcf8efee 0%, #faf6ecdd 25%, #faf6ec88 42%, #faf6ec00 65%),
    linear-gradient(0deg, #f8f5eea8, transparent 25%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20px;
  background: url('/assets/design/greek-key.svg') repeat-x center;
  opacity: .7;
  pointer-events: none;
}
.hero-content { width: min(670px, 88vw); margin-left: max(6vw, calc((100vw - 1180px) / 2)); padding: 60px 0 70px; }
.eyebrow { font-size: 10px; color: #886224; letter-spacing: .22em; line-height: 1.7; }
.hero .hero-motto { color: #79551b; font-size: 10px; letter-spacing: .2em; font-weight: 700; margin: 0 0 25px; }
.hero h1 {
  font-size: clamp(60px, 6.4vw, 96px);
  line-height: 1.01;
  letter-spacing: -.045em;
  font-weight: 400;
  color: #302338;
  margin: 0 0 26px;
}
.hero h1 span { color: #59356d; background: none; -webkit-background-clip: border-box; }
.hero p:not(.eyebrow):not(.hero-motto) { color: #64576b; font-size: 16px; line-height: 1.8; max-width: 470px; }
.hero .eyebrow { color: #79551b; font-size: 10px; line-height: 1.7; margin: 0 0 18px; }
.hero-cta { gap: 12px; margin: 30px 0 25px; }
.btn {
  border-radius: 4px;
  padding: 14px 23px;
  min-height: 46px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.primary { background: #462758; border-color: #462758; color: #fffaf1; box-shadow: 0 5px 14px #46275812; }
.primary:hover:not(:disabled) { background: #603a73; border-color: #603a73; }
.ghost { background: #fffaf1b8; border-color: #bba06d; color: #594333; }
.ghost:hover:not(:disabled) { background: #f4ead9; border-color: #886224; }
.hero-trust { gap: 14px 20px; color: #6b5e73; font-size: 10px; }
.hero-review-link { color: #694781; font-size: 12px; margin-top: 22px; }
.ticker {
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 21px 5vw;
  background: #eee7d9;
  border-block-color: #d6c3a0;
  color: #5b4764;
  font-size: 12px;
  letter-spacing: .16em;
}
.ticker i { font-size: 9px; color: #9b7939; }
.section { padding-block: 80px; }
.section-head { gap: 36px; align-items: center; margin-bottom: 32px; }
.section-head h2, .rewards h2, .newsletter h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #462758;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head > p { max-width: 390px; font-size: 14px; line-height: 1.8; }
.category-grid { gap: 18px; }
.category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 34px 26px 27px;
  border-radius: 3px;
  background: linear-gradient(145deg, #fffdf8, #f2ece0);
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.category::before { display: none; }
.category::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 20px;
  background: url('/assets/design/greek-key.svg') repeat-x center;
  opacity: .5;
  pointer-events: none;
}
.category:hover { border-color: #b2904d; box-shadow: 0 18px 42px #75583b12; }
.category-icon { display: flex; align-items: center; justify-content: center; color: #9a7531; min-height: 42px; }
.category-icon svg { width: 38px; height: 38px; }
.category h3 { color: #462758; font-size: 25px; line-height: 1.12; margin: 24px 0 12px; font-weight: 400; }
.category p { color: #726779; font-size: 13px; line-height: 1.75; margin: 0 0 24px; }
.category button { color: #6b4782; margin-top: auto; min-height: 44px; text-align: left; font-size: 12px; }
.category button:hover, .text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-btn { color: #6b4782; min-height: 44px; }
.anime-category { display: flex; flex-direction: row; align-items: center; gap: 28px; min-height: 170px; padding: 34px; background: linear-gradient(110deg, #eee5f2, #fffcf5); }
.anime-category .category-icon { font-size: inherit; }
.anime-category .category-icon svg { width: 48px; height: 48px; }
.anime-category h3 { margin: 0 0 10px; }
.anime-category p { margin: 0; }
.anime-category button { margin-top: 0; }
.featured-wrap { background: #f0eade; border-block-color: #d6c3a0; }
.shop-navigator { background: #fffdf7; border-radius: 4px; padding: 24px; box-shadow: 0 6px 22px #5e432808; }
.shop-path { color: #59356d; line-height: 1.5; }
.shop-choice {
  position: relative;
  border-radius: 3px;
  background: #f9f5ed;
  color: #302338;
  padding: 22px 20px;
  min-height: 106px;
  border-top: 2px solid #b89c65;
  box-shadow: 0 3px 12px #5e432805;
}
.shop-choice strong { color: #462758; font-weight: 400; font-size: 21px; line-height: 1.3; }
.shop-choice small { color: #726779; font-size: 12px; line-height: 1.6; }
.shop-choice:hover { border-color: #9b7939; background: #efe6f3; }
.shop-choice.adult-choice { border-color: #a586b7; background: #f1e9f5; }
.restricted-pill { color: #684080; border-color: #ad8cbf; background: #fffbff; }
.shop-back, .inventory-tab {
  background: #fffdf7;
  color: #6b4782;
  border-color: #c4b18d;
  border-radius: 4px;
  min-height: 44px;
}
.shop-back:hover { border-color: #704b87; }
.inventory-tab:hover, .inventory-tab.active { background: #462758; border-color: #462758; color: #fffaf1; }
.inventory-empty { background: #fffcf6; border-radius: 4px; color: #726779; }
.product-grid { gap: 22px; }
.product { border-radius: 4px; background: #fffdf8; box-shadow: var(--shadow); }
.product-art { height: 265px; background: radial-gradient(ellipse at 50% 35%, #fdf9f0, #e7ddca); }
.product-art::after { border-color: #b4975d; background: linear-gradient(145deg, #d3bedc, #462758); box-shadow: 0 14px 30px #51325720; }
.product-tag { background: #462758; color: #fffaf1; border-radius: 3px; font-size: 9px; letter-spacing: .07em; }
.product-body { padding: 21px; }
.product-body small { color: #886224; font-size: 10px; }
.product-body h3 { color: #462758; font-weight: 400; line-height: 1.3; }
.product-submeta { color: #726779 !important; }
.price-row { gap: 12px; flex-wrap: wrap; }
.price-tbd, .price-row strong { color: #4b305b; }
.add, .details-link { background: #f4ecf7; border-color: #c7b2d3; color: #59356d; border-radius: 4px; min-height: 44px; }
.add:hover, .details-link:hover { background: #e9dcf0; border-color: #704b87; }
.panel { padding: 36px; border-radius: 4px; background: #fffdf8; box-shadow: var(--shadow); }
.panel h2 { color: #462758; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 400; }
.event-card h3 { color: #493253; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.live-dot { color: #a33a58; }.date-pill { color: #704b87; }
.standards b { color: #9b7939; }
.standards strong { color: #493253; }
.standards small { color: #726779; }
.rewards {
  --cream: #fffaf1;
  --gold: #e2c78e;
  --gold2: #f3ddb0;
  --muted: #d4c5de;
  --line: #d8b67a4a;
  background: radial-gradient(ellipse at 85% 20%, #79548b44, transparent 65%), #3e254f;
  padding-block: 78px;
  border-block: 1px solid #b69758;
}
.rewards h2 { color: #fffaf1; }
.rewards .eyebrow { color: #e2c78e; }
.rewards p { color: #d4c5de; }
.rewards-inner { gap: 48px; }
.tier-row span { background: #ffffff05; border-radius: 3px; border-color: #d8b67a5c; color: #f3ddb0; font-size: 13px; }
.trust-section h2, .delivery-section h2 { color: #462758; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.1; }
.trust-section img, .delivery-section img { border-radius: 4px; }
.check-list li { font-size: 14px; color: #64576b; }
.adult-card { border-color: #b59ac5; border-radius: 4px; background: linear-gradient(100deg, #eee3f3, #fffcf7); }
.adult-card h2 { color: #59356d; font-weight: 400; }
.age-badge { border-color: #9972af; color: #684080; background: #fffafc; }
.newsletter { background: #ebe1cc; border-block: 1px solid #ceb88b; padding-block: 65px; }
.newsletter h2 { font-size: clamp(32px, 3vw, 42px); }
.newsletter input { border-radius: 4px; border-color: #bdaa84; color: #302338; min-height: 46px; font-size: 15px; }
footer {
  --cream: #fffaf1;
  --gold: #e2c78e;
  --gold2: #f3ddb0;
  --muted: #d4c5de;
  --line: #d8b67a4a;
  position: relative;
  background: #302039;
  color: #fffaf1;
  border-top: 1px solid #b69758;
}
footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 20px; background: url('/assets/design/greek-key.svg') repeat-x center; opacity: .8; }
footer .brand strong { color: #f3ddb0; }
footer .brand small { color: #d4c5de; }
.footer-grid h4 { color: #f3ddb0; font-family: Georgia, serif; font-weight: 400; font-size: 18px; }
.footer-grid a, .footer-grid span, .footer-grid p, .court-settings-footer { color: #cdbdd6; }
.footer-grid a:hover, .court-settings-footer:hover { color: #f3ddb0; }
.footer-grid .brand strong { font-size: 14px; }
.footer-grid .brand > span { margin: 0; }
.footer-grid .brand .crest { color: #f3ddb0; }
.motto { color: #f3ddb0; font-size: 12px; }
.footer-bottom { color: #b6a3c2; line-height: 1.7; }
.court-reviews { background: #f1ebf4; border-bottom-color: #d8c6df; }
.review-card, .reviews-empty { border-radius: 4px; background: #fffdf8; box-shadow: var(--shadow); }
.review-card blockquote { color: #4d3d57; font-family: Georgia, serif; font-size: 18px; line-height: 1.7; }
.review-stars { color: #927029; }
.review-author { color: #493253; }
.review-original, .review-platform a { color: #6b4782; }
.review-platform strong { color: #59356d; }
.review-platforms .review-platform { background: #fdf9f0; border-radius: 4px; }
.leave-review { padding-top: 36px; }
.leave-review h3 { color: #59356d; }
.leave-review label { color: #493253; }
.leave-review input:not([type=checkbox]), .leave-review select, .leave-review textarea {
  background: #fffdf8;
  border-color: #bfaccc;
  border-radius: 4px;
  color: #302338;
  font-size: 15px;
}
.review-consent input { accent-color: #704b87; }
#reviewStatus[data-error=true] { color: #a52f47; }
dialog {
  background: #fffdf8;
  color: #302338;
  border-color: #bc9d60;
  border-top-width: 3px;
  border-radius: 5px;
  box-shadow: 0 30px 100px #30233850;
}
dialog::backdrop { background: #24133099; }
dialog h2 { color: #462758; font-family: Georgia, serif; font-weight: 400; }
.close { color: #59356d; min-height: 44px; min-width: 44px; }
.cart-footer { background: #fffdf8; }
.cart-item, .cart-total { color: #493253; }
.cart-quantity button, .quantity-control button { background: #f0e5f5; color: #59356d; }
.quantity-control, .cart-quantity button { border-color: #b69cc7; border-radius: 4px; }
.quantity-control input { background: #fffdf8; color: #302338; }
.detail-price, .detail-feedback { color: #59356d; }
.product-detail-art { background: radial-gradient(ellipse, #f8f1e3, #e8ddc7); border-color: #c9b184; border-radius: 4px; }
.product-detail-placeholder { color: #59356d; }
.product-photo-choices button { background: #f8f2eb; color: #4d3d57; border-radius: 4px; }
.product-photo-choices button[aria-pressed="true"] { border-color: #704b87; background: #eee2f4; color: #59356d; }
.search-input, .account-form input:not([type="checkbox"]) { background: #fffdf8; color: #302338; border-color: #bfaacc; border-radius: 4px; color-scheme: light; font-size: 16px; }
.account-tabs button { border-color: #c8b2d5; border-radius: 4px; background: #f6f0f9; color: #59356d; }
.account-tabs button[aria-pressed="true"] { border-color: #704b87; color: #fffaf1; background: #59356d; }
.account-feedback, .court-settings__feedback { color: #913851; }
.account-consent input { accent-color: #704b87; }
.court-settings__switch > span { background: #dfd8cd; border-color: #b3a798; }
.court-settings__switch > span::after { background: #fffdf8; }
.court-settings__switch input:checked + span { background: #704b87; border-color: #704b87; }
.court-settings__switch input:checked + span::after { background: #fffdf8; }
.toast { background: #462758; border: 1px solid #c5a56c; color: #fffaf1; border-radius: 5px; max-width: calc(100vw - 32px); right: 16px; bottom: 16px; }
.view-home-back { top: 128px; background: #fffdf8f5; border-color: #c5ae81; color: #59356d; border-radius: 4px; min-height: 44px; }
.view-home-back:hover { border-color: #704b87; }
@media (max-width: 1360px) {
  .site-header { height: auto; min-height: 84px; padding: 12px 5vw; gap: 10px; flex-wrap: wrap; }
  .brand { flex: 1; min-width: 0; }
  .brand > span { min-width: 0; }
  .brand strong, .brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-toggle { display: block; margin-left: auto; min-width: 44px; min-height: 44px; flex: 0 0 auto; }
  .nav { display: none; }
  .header-actions { display: flex; flex: 0 0 100%; gap: 8px; }
  .header-actions .icon-btn { min-width: 44px; min-height: 44px; }
  .header-actions .cart-btn { flex: 1; min-height: 44px; }
  .court-settings-button { height: 44px; width: 44px; min-height: 44px; }
  .site-header.open .nav { top: 100%; background: #fffdf8; border-bottom-color: #cdb88e; padding: 14px 5vw; gap: 0; max-height: calc(100dvh - 155px); overflow-y: auto; }
  .site-header.open .nav a { padding-block: 12px; border-bottom: 1px solid #d6c3a03b; font-size: 14px; }
  .view-home-back { top: 180px; }
}
@media (max-width: 1000px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 620px; }
  .hero-content { width: min(630px, 86vw); margin-left: 6vw; padding-block: 65px; }
  .hero-overlay { background: linear-gradient(90deg, #fcf8efed, #fcf8efc7 50%, #fcf8ef44); }
  .split-section, .rewards-inner, .trust-section, .delivery-section { grid-template-columns: minmax(0, 1fr); }
  .newsletter-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .newsletter form { width: 100%; }
  .newsletter input { flex: 1; width: auto; min-width: 0; }
  .anime-category { gap: 20px; }
}
@media (max-width: 700px) {
  .shell { width: 90vw; }
  .section { padding-block: 60px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head > p { margin-top: 18px; }
  .section-head h2 { font-size: 38px; }
  .hero-content { margin-left: 5vw; width: 90vw; padding-block: 58px; }
  .hero h1 { font-size: clamp(54px, 9.5vw, 68px); max-width: 540px; }
  .hero p:not(.eyebrow):not(.hero-motto) { font-size: 15px; max-width: 450px; }
  .hero .hero-motto { font-size: 9px; letter-spacing: .14em; }
  .hero-overlay { background: linear-gradient(90deg, #fcf8efee, #fcf8efcc 65%, #fcf8ef99); }
  .palace-backdrop img { object-position: 75% center; }
  .hero-trust { gap: 10px 18px; font-size: 10px; }
  .ticker { gap: 13px 18px; font-size: 10px; justify-content: center; }
  .anime-category { flex-wrap: wrap; padding: 32px 26px 24px; }
  .anime-category > div:nth-child(2) { flex: 1 1 calc(100% - 76px); }
  .anime-category button { margin-top: 0; }
  .review-grid, .review-platforms, .leave-review { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 28px; }
  .adult-card { padding: 24px; gap: 18px; }
  .adult-card > div { flex-basis: calc(100% - 84px); }
  .adult-card h2 { font-size: 28px; }
  .adult-card .btn { width: 100%; }
  .rewards { padding-block: 60px; }
  .rewards-inner { gap: 26px; }
  .tier-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-row span:last-child { grid-column: 1 / -1; min-height: 70px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  #productDialog { padding: 18px; }
  .review-form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .announcement { font-size: 9px; line-height: 1.7; letter-spacing: .05em; }
  .announcement span { margin-inline: 5px; }
  .brand strong { font-size: 12px; }.brand small { font-size: 9px; }
  .brand-crest { width: 46px; height: 46px; }
  .site-header { padding-inline: 5vw; }
  .category-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .category { min-height: 252px; padding: 32px 26px 24px; }
  .category h3 { margin-top: 20px; }
  .anime-category { min-height: 220px; display: flex; flex-direction: row; }
  .anime-category h3 { margin: 0 0 10px; }
  .anime-category .category-icon { margin-bottom: 0; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: clamp(48px, 10.8vw, 60px); }
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn { padding: 13px 17px; font-size: 11px; }
  .hero .eyebrow { max-width: 280px; font-size: 9px; }
  .hero-trust { max-width: 300px; line-height: 1.7; }
  .shop-navigator { padding: 18px; }
  .shop-choices { grid-template-columns: minmax(0, 1fr); }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .product-art { height: 280px; }
  .newsletter form { display: flex; flex-direction: column; gap: 10px; }
  .newsletter input { width: 100%; margin: 0; }
  .newsletter form .btn { width: 100%; }
  .view-home-back { top: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .category, .shop-choice { transition: none; }
  .shop-choice:hover, .product-art-button:hover .card-image { transform: none; }
}
