/* assets/css/polish.css */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overflow-x: hidden; font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
a, button, summary, label { touch-action: manipulation; }
input, select, textarea { font-size: 16px; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.015em; }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; line-height: 1.2; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease; }
.btn:active { transform: scale(.97); }
.btn-accent { box-shadow: 0 6px 20px -6px rgba(249, 195, 35, .55); }
.btn-accent:hover { filter: brightness(1.07); }
[data-theme="white"] .btn-accent { box-shadow: 0 6px 20px -6px rgba(20, 133, 58, .5); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.block { display: flex; }

.form input, .form select, .form textarea, .quickbar input, .quickbar select, .cart-card input, .tbl input, .tbl select { min-height: 48px; border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus, .cart-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 195, 35, .25); outline: 0; }
.form select, .quickbar select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; }
.result { font-weight: 600; }
.opt input:checked + span strong { color: var(--accent); }

.site-header { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--bg); } }
.brand { gap: 12px; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.brand span { font-size: 1rem; letter-spacing: .03em; }
.main-nav a, .dd-btn { position: relative; }
.main-nav > a::after, .dd-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav > a:hover::after, .dd:hover .dd-btn::after, .dd:focus-within .dd-btn::after { transform: scaleX(1); }
.dd-menu { border-radius: 18px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); max-height: 70vh; overflow-y: auto; }
.dd-menu a { padding: 11px 14px; border-radius: 12px; }
.burger span { transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { box-shadow: -30px 0 80px rgba(0, 0, 0, .5); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.drawer summary, .drawer-link { min-height: 52px; display: flex; align-items: center; }
.drawer details a { min-height: 44px; display: flex; align-items: center; }

.hero { min-height: min(82vh, 760px); display: flex; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(4, 8, 5, .82), rgba(4, 8, 5, .25) 80%), linear-gradient(180deg, rgba(4, 8, 5, .5), rgba(4, 8, 5, .38) 78%, var(--bg)), var(--hero-img, none) 55% 40% / cover no-repeat, #0b140d; }
.hero::before { opacity: .22; mix-blend-mode: screen; }
.hero-in { width: 100%; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(2.7rem, 10.5vw, 6.4rem); line-height: .98; max-width: 11ch; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.hero p { color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 3.2vw, 1.3rem); max-width: 40ch; }
.quickbar { background: rgba(8, 12, 8, .58); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 26px; padding: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.quickbar label { color: #fff; }
.quickbar input[type="number"] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.quickbar input[type="range"] { width: 100%; min-height: 32px; }
.hero-chips a { color: #fff; background: rgba(8, 12, 8, .5); border-color: rgba(255, 255, 255, .28); min-height: 44px; display: flex; align-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.shelf { padding-top: 52px; }
.shelf-head h2 { font-size: clamp(1.35rem, 4.6vw, 2.1rem); }
.shelf-head p { font-size: 1rem; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; transition: border-color .2s ease, background-color .2s ease; }
.more::after { content: "\2192"; }
.more:hover { border-color: var(--accent); background: var(--surface); }

.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.card { border-radius: 22px; background: #0d130e; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .06); }
.card::before { opacity: .12; }
.card::after { background: linear-gradient(to top, rgba(2, 6, 3, .92) 4%, rgba(2, 6, 3, .55) 34%, rgba(2, 6, 3, 0) 62%); }
.card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .card:hover .card-img { transform: scale(1.07); } .card:hover { transform: translateY(-5px); } }
@media (hover: none) { .card:hover { transform: none; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7); } }
@supports not (aspect-ratio: 9 / 16) { .card { height: 0; padding-top: 177.78%; } }
.badge { top: 12px; padding: 6px 11px; font-size: .7rem; letter-spacing: .02em; }
.badge.tl { left: 12px; }
.badge.tr { right: 12px; }
.meta { padding: 14px; padding-right: 64px; gap: 5px; }
.meta strong { font-size: clamp(.82rem, 2.6vw, .95rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.meta .where { color: var(--gold); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.fit { font-size: .74rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.add-btn { right: 12px; bottom: 12px; width: 46px; height: 46px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 0 3px rgba(255, 255, 255, .18); }

.page-hero { position: relative; padding: 56px 0 48px; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green) 0 34%, var(--gold) 34% 67%, var(--red) 67%); }
.page-hero h1 { font-size: clamp(1.9rem, 7vw, 3.6rem); }
.prose p { line-height: 1.75; }
.guide-card, .tier-card, .calc, .admin-card { border-radius: 22px; transition: transform .25s ease, border-color .25s ease; }
.guide-card { position: relative; overflow: hidden; }
.guide-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); }
@media (hover: hover) { .guide-card:hover { transform: translateY(-4px); } }
.faq details { border-radius: 14px; padding: 2px 4px; }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.checks li { line-height: 1.5; }
.days { margin-left: 4px; }
.days li { position: relative; }
.days li::before { content: ""; position: absolute; left: -26px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.steps li { border-radius: 22px; }

.site-footer { background: var(--surface); border-top: 0; }
.foot { gap: 32px; }
.foot a { min-height: 40px; display: flex; align-items: center; }

.tray { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); max-width: 760px; margin: 0 auto; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tray { background: var(--surface); } }
body.has-tray { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.toast { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
.cart-sheet { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cart-card { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-card::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -12px auto 18px; }
@media (min-width: 700px) { .cart-sheet { align-items: center; } .cart-card { border-radius: 28px; max-height: 88vh; padding: 30px; } .cart-card::before { display: none; } }
.cart-list li { border-radius: 16px; }
.cart-x { min-height: 44px; }

.reel-overlay { height: 100vh; height: 100dvh; }
.slide { height: 100vh; height: 100dvh; }
.reel-scroll { -webkit-overflow-scrolling: touch; }
.kb { transform-origin: 50% 60%; }
.slide::after { background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .35) 42%, rgba(0, 0, 0, 0) 66%), linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 22%); }
.caption { top: 24%; font-size: clamp(1.5rem, 6vw, 2.8rem); line-height: 1.1; text-shadow: 0 4px 30px rgba(0, 0, 0, .65); animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.info h2 { text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.reel-top { gap: 10px; }
.reel-top .glass { min-height: 44px; }
.quote-cta { min-height: 52px; font-size: clamp(.9rem, 3.4vw, 1.05rem); padding: 14px 26px 12px; }
.reel-rail { gap: 8px; }
.reel-rail .glass { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; padding: 10px 4px 8px; border-radius: 22px; font-size: .68rem; line-height: 1.1; }
.reel-rail .glass::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.reel-rail [data-r="add"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M11%205h2v14h-2zM5%2011h14v2H5z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="comment"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4%204h16v12H8l-4%204z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="talk"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M6.6%2010.8a15%2015%200%20006.6%206.6l2.2-2.2a1%201%200%20011-.25%2011%2011%200%20003.5.56%201%201%200%20011%201V20a1%201%200%2001-1%201A17%2017%200%20013%204a1%201%200%20011-1h3.5a1%201%200%20011%201%2011%2011%200%2000.56%203.5%201%201%200%2001-.25%201z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="share"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%203l4%204h-3v8h-2V7H8zM5%2011h2v8h10v-8h2v10H5z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="sound"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4%209v6h4l5%204V5L8%209zM16%208a5%205%200%20010%208z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="next"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M6%207l6%206%206-6%201.4%201.4L12%2015.8%204.6%208.4z'/%3E%3C/svg%3E"); }
.reel-rail [data-r="sound"][aria-pressed="true"] { background: var(--gold); color: #111; border-color: transparent; }
.sheet-card { border-radius: 28px 28px 0 0; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 28px; } }
.chips { margin-bottom: 12px; }

.admin-bar { position: sticky; top: 0; z-index: 25; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.admin-bar nav a { min-height: 40px; display: inline-flex; align-items: center; }
.tbl { min-width: 760px; }

@media (max-width: 640px) {
  .hero-in { padding-top: 48px; padding-bottom: 64px; }
  .quickbar { padding: 16px; }
  .page-hero { padding: 40px 0 36px; }
  .info { right: 78px; }
  .caption { right: 84px; }
  .btn { width: auto; }
  .cart-actions .btn, .qr-actions .btn { width: 100%; }
  .tray-top { font-size: .8rem; }
}
@media (max-width: 380px) { .brand span { font-size: .85rem; } .tools { gap: 6px; } .reel-rail .glass { width: 58px; } }
@media (prefers-reduced-motion: reduce) { .card-img, .card, .caption { transition: none !important; animation: none !important; } }

.cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chips a { display: flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 99px; text-decoration: none; font-weight: 600; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.cat-chips a:hover { border-color: var(--accent); transform: translateY(-2px); }
