:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #121212;
  --line: #303030;
  --text: #f5f2ea;
  --muted: #a9a39a;
  --orange: #f28c28;
  --red: #ef3838;
  --shadow: 0 18px 60px rgb(0 0 0 / 0.42);
  font-family: "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(rgb(8 8 8 / .9), rgb(8 8 8 / .96)), repeating-linear-gradient(90deg, transparent 0 28px, rgb(255 255 255 / .03) 29px 30px), var(--bg);
  color: var(--text);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  min-height: 72px; padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: rgb(8 8 8 / .88); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 112px; height: 46px; background: var(--orange); color: #111; font-weight: 950; transform: skew(-7deg); }
.brand-mark img { max-width: 92%; max-height: 76%; object-fit: contain; transform: skew(7deg); }
.brand small, .kicker, small { color: var(--muted); }
.nav-tabs, .admin-actions, .top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.top-actions { justify-self: end; align-items: center; }
.nav-tab, .cart-button, .member-button, .solid-button, .ghost-button, .submit-button {
  position: relative; overflow: hidden; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px;
  background: #111; color: var(--text); text-transform: uppercase; font-weight: 900;
  isolation: isolate;
}
.nav-tab.active, .solid-button, .submit-button { border-color: var(--orange); background: var(--orange); color: #111; }
.nav-tab::before, .cart-button::before, .member-button::before, .solid-button::before, .ghost-button::before, .submit-button::before,
.line-login-button::before, .google-login-button::before, .icon-button::before, .live-chat-toggle::before, .back-top::before,
.variant-options button::before, .product-thumbs button::before, .quantity-control button::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -85%;
  z-index: 1;
  width: 62%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .18), rgb(255 255 255 / .72), rgb(255 255 255 / .14), transparent);
  opacity: 0;
  pointer-events: none;
}
.nav-tab:hover::before, .cart-button:hover::before, .member-button:hover::before, .solid-button:hover::before, .ghost-button:hover::before, .submit-button:hover::before,
.line-login-button:hover::before, .google-login-button:hover::before, .icon-button:hover::before, .live-chat-toggle:hover::before, .back-top:hover::before,
.variant-options button:hover::before, .product-thumbs button:hover::before, .quantity-control button:hover::before {
  animation: button-shine .72s ease forwards;
}
.nav-tab:hover, .cart-button:hover, .member-button:hover, .solid-button:hover, .ghost-button:hover, .submit-button:hover,
.line-login-button:hover, .google-login-button:hover, .icon-button:hover, .live-chat-toggle:hover, .back-top:hover,
.variant-options button:hover, .product-thumbs button:hover, .quantity-control button:hover {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 0 22px rgb(242 140 40 / .18);
}
button:disabled::before, .line-login-button:disabled::before, .google-login-button:disabled::before { display: none; }
@keyframes button-shine {
  0% { left: -85%; opacity: 0; }
  18% { opacity: .95; }
  100% { left: 128%; opacity: 0; }
}
.cart-button { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--red); color: #fff; }
main { width: min(1200px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.view { display: none; }
.view.active { display: block; }
.hero { position: relative; overflow: hidden; min-height: 430px; display: grid; grid-template-columns: 1fr 320px; align-items: end; gap: 24px; padding: 36px; border: 1px solid var(--line); background: #050505; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgb(0 0 0 / .18), rgb(0 0 0 / .9)), radial-gradient(circle at 18% 12%, rgb(242 140 40 / .18), transparent 30%); }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #050505; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.08) saturate(.88) brightness(.82); }
.hero-copy, .hero-panel { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; margin: 8px 0 12px; font-size: clamp(56px, 11vw, 124px); line-height: .88; }
.hero p { max-width: 560px; margin: 0; font-size: 18px; }
.hero-panel { border: 1px solid rgb(255 255 255 / .28); background: rgb(8 8 8 / .72); padding: 18px; }
.section-head, .cart-drawer-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 34px 0 16px; }
.section-head.compact { margin: 0 0 14px; }
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0; }
.home-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 16px; margin-top: 18px; }
.notice-board, .news-board, .checkout-form, .order-summary, .product-card, .member-card { border: 1px solid var(--line); background: rgb(18 18 18 / .92); box-shadow: var(--shadow); }
.notice-board, .news-board, .checkout-form, .order-summary { padding: 18px; }
.member-auth-grid, .member-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quick-auth-panel { margin-bottom: 18px; border: 1px solid var(--line); background: rgb(18 18 18 / .92); padding: 18px; box-shadow: var(--shadow); }
.quick-auth-panel h2 { margin: 6px 0 14px; }
.quick-auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.line-login-button, .google-login-button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; text-decoration: none; font-weight: 900; }
.line-login-button { background: #06c755; color: #071107; border-color: #06c755; }
.google-login-button { background: #f5f2ea; color: #111; border-color: #f5f2ea; }
.line-login-button:disabled, .google-login-button:disabled { background: #202020; border-color: var(--line); color: #777; }
.member-card { padding: 18px; }
.member-card h2 { margin: 8px 0 12px; }
.member-card p { color: var(--muted); line-height: 1.55; }
.status-message, .error-message { border: 1px solid var(--line); background: #101010; padding: 12px 14px; font-weight: 900; }
.status-message { color: var(--orange); }
.error-message { color: var(--red); }
.notice-list, .news-grid { display: grid; gap: 12px; }
.news-grid { grid-template-columns: repeat(2, 1fr); }
.notice-item, .news-card { min-height: 148px; border: 1px solid var(--line); background: #0d0d0d; padding: 16px; }
.notice-item time, .news-card span { display: inline-flex; min-height: 26px; align-items: center; border-radius: 999px; padding: 0 10px; background: rgb(242 140 40 / .14); color: var(--orange); font-size: 12px; font-weight: 900; }
.notice-item p, .news-card p, .rich-content { color: var(--muted); line-height: 1.55; }
.rich-content a { color: var(--orange); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.rich-content iframe, .rich-content video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; min-height: 180px; margin-top: 10px; border: 1px solid var(--line); background: #050505; }
.rich-content video { height: auto; object-fit: contain; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.product-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.product-card.is-locked { border-color: rgb(242 140 40 / .45); }
.product-card-media { position: relative; overflow: hidden; background: #050505; }
.product-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.release-countdown { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; background: linear-gradient(rgb(0 0 0 / .16), rgb(0 0 0 / .72)); color: var(--text); }
.release-countdown span, .detail-release-box span { color: var(--orange); font-size: 12px; font-weight: 900; }
.release-countdown strong { font-size: clamp(22px, 4vw, 34px); line-height: 1; text-shadow: 0 4px 18px rgb(0 0 0 / .7); }
.product-info { padding: 14px; }
.product-info h3 { min-height: 44px; margin: 0 0 8px; font-size: 18px; }
.product-info p { min-height: 64px; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.image-preview { width: 120px; border: 1px solid var(--line); background: #0b0b0b; padding: 6px; }
.image-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.image-manager { display: grid; gap: 12px; border: 1px solid var(--line); background: #0f0f0f; padding: 14px; }
.image-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 104px)); gap: 10px; align-items: start; }
.managed-image { display: grid; gap: 6px; border: 1px solid var(--line); background: #0b0b0b; padding: 6px; }
.managed-image img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.managed-image > span { color: var(--orange); font-size: 11px; font-weight: 900; }
.delete-image-check { display: flex; align-items: center; gap: 5px; color: var(--text); font-size: 11px; line-height: 1.2; }
.delete-image-check input { width: 14px; height: 14px; min-height: auto; margin: 0; flex: 0 0 auto; }
.sponsor-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.sponsor-admin-item { display: grid; gap: 8px; border: 1px solid var(--line); background: #0b0b0b; padding: 10px; color: var(--muted); }
.sponsor-admin-item > span { color: var(--orange); font-size: 12px; font-weight: 900; }
.sponsor-admin-item img { width: 112px; height: 42px; object-fit: contain; border: 1px solid var(--line); background: #050505; padding: 6px; }
.sponsor-admin-item input[type="file"] { font-size: 12px; padding: 8px; }
.price-row, .drawer-line-top, .quantity-row, .totals div, .drawer-totals div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
fieldset { margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); }
legend { padding: 0 8px; color: var(--orange); font-weight: 900; }
.field-grid, .option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-grid { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.full { grid-column: 1 / -1; }
input, textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; background: #0b0b0b; color: var(--text); }
textarea { resize: vertical; line-height: 1.5; }
.radio-card { position: relative; min-height: 92px; padding: 14px; border: 1px solid var(--line); background: #0e0e0e; color: var(--text); }
.radio-card input { position: absolute; inset: 12px 12px auto auto; width: auto; min-height: auto; }
.radio-card:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.cart-lines { display: grid; gap: 10px; min-height: 120px; margin: 18px 0; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-line button, .remove-button { border: 0; background: transparent; color: var(--red); font-weight: 900; }
.grand { color: var(--orange); font-size: 22px; }
.cart-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .62); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 41; display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px; width: min(430px, 100vw); height: 100vh; padding: 22px; border-left: 1px solid var(--line); background: rgb(12 12 12 / .98); transform: translateX(100%); transition: transform .26s ease; }
body.cart-open { overflow: hidden; }
body.cart-open .cart-backdrop { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: translateX(0); }
.icon-button { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #111; color: var(--text); font-size: 28px; }
.drawer-cart-lines { display: grid; align-content: start; gap: 12px; overflow: auto; }
.drawer-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); background: #101010; }
.drawer-line img { width: 72px; height: 88px; object-fit: cover; }
.quantity-control { display: inline-grid; grid-template-columns: 34px 42px 34px; align-items: center; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.quantity-control button { position: relative; isolation: isolate; overflow: hidden; height: 34px; border: 0; background: #171717; color: var(--text); font-size: 18px; font-weight: 900; }
.quantity-control span { text-align: center; font-weight: 900; }
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .78); }
.product-dialog { width: min(1040px, calc(100vw - 28px)); padding: 0; }
.product-detail { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; padding: 22px; }
.product-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.product-main-zoom { position: relative; display: block; width: 100%; overflow: hidden; background: #050505; cursor: crosshair; }
.product-magnifier { position: absolute; z-index: 4; width: 200px; height: 200px; border: 2px solid var(--orange); border-radius: 999px; background-repeat: no-repeat; background-size: 700% 700%; box-shadow: 0 14px 42px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .28); opacity: 0; pointer-events: none; transform: scale(.92); transition: opacity .12s ease, transform .12s ease; }
.product-main-zoom.is-zooming .product-magnifier { opacity: 1; transform: scale(1); }
.product-main-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.product-thumbs button { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); padding: 0; background: #101010; }
.product-thumbs button.active { border-color: var(--orange); }
.product-thumbs img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.product-detail-copy { align-self: center; padding-right: 34px; }
.product-detail-copy h2 { margin: 8px 0 10px; font-size: clamp(32px, 5vw, 56px); line-height: .95; }
.detail-price { display: block; color: var(--orange); font-size: 28px; margin-bottom: 16px; }
.detail-release-box { display: grid; gap: 4px; width: fit-content; margin: 0 0 14px; border: 1px solid rgb(242 140 40 / .55); background: rgb(242 140 40 / .1); padding: 10px 12px; }
.detail-release-box strong { color: var(--text); font-size: 22px; }
.product-description { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); white-space: pre-line; line-height: 1.55; }
.variant-section { display: grid; gap: 8px; margin-top: 14px; }
.variant-editor { display: grid; gap: 12px; border: 1px solid var(--line); background: #0f0f0f; padding: 14px; }
.variant-table { display: grid; gap: 8px; }
.variant-table-head, .variant-row { display: grid; grid-template-columns: 1fr 1fr 110px 90px; gap: 8px; align-items: center; }
.variant-table-head { color: var(--muted); font-size: 12px; font-weight: 900; }
.variant-row { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-options button { position: relative; isolation: isolate; overflow: hidden; min-width: 54px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #101010; color: var(--text); font-weight: 900; }
.variant-options button.active { border-color: var(--orange); background: rgb(242 140 40 / .16); box-shadow: inset 0 0 0 1px var(--orange); }
.variant-current strong { color: var(--orange); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer { position: relative; border-top: 1px solid rgb(242 140 40 / .45); background: #0e0e0e; }
.footer-inner { width: min(1200px, calc(100vw - 32px)); margin: 0 auto; padding: 36px 0 24px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.footer-columns h2 { margin: 0 0 18px; color: var(--orange); font-size: 18px; }
.footer-columns a, .footer-columns p { display: block; margin: 7px 0; color: var(--text); text-decoration: none; font-size: 14px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: #f5f2ea; color: #111; text-decoration: none; font-weight: 900; }
.sponsor-block { margin: 28px auto 0; text-align: center; }
.sponsor-block h2 { margin: 0 0 16px; color: var(--orange); font-size: 18px; letter-spacing: 0; }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin: 0 auto; padding: 0 12px; }
.sponsor-logos img { display: block; max-width: 112px; max-height: 42px; object-fit: contain; filter: grayscale(1) brightness(1.15); opacity: .88; transition: filter .16s ease, opacity .16s ease, transform .16s ease; }
.sponsor-logos img:hover { filter: none; opacity: 1; transform: translateY(-1px); }
.footer-divider { height: 1px; margin: 30px 0 24px; background: rgb(255 255 255 / .16); }
.footer-meta { text-align: center; color: var(--muted); font-size: 12px; }
.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; isolation: isolate; overflow: hidden; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--orange); border-radius: 999px; background: rgb(8 8 8 / .84); color: var(--orange); font-size: 24px; }
.live-chat { position: fixed; right: 24px; bottom: 84px; z-index: 60; }
.live-chat-toggle { position: relative; isolation: isolate; overflow: hidden; width: 58px; height: 58px; border: 1px solid var(--orange); border-radius: 999px; background: var(--orange); color: #111; font-weight: 950; box-shadow: var(--shadow); }
.live-chat-panel { position: absolute; right: 0; bottom: 70px; display: none; width: min(360px, calc(100vw - 32px)); border: 1px solid var(--line); background: #101010; box-shadow: var(--shadow); }
.live-chat.active .live-chat-panel { display: grid; grid-template-rows: auto 280px auto; }
.live-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.live-chat-head h2 { margin: 0; font-size: 20px; }
.live-chat-messages { display: grid; align-content: start; gap: 10px; overflow: auto; padding: 14px; }
.live-chat-message { max-width: 86%; border: 1px solid var(--line); background: #171717; padding: 10px; }
.live-chat-message.customer { justify-self: end; border-color: rgb(242 140 40 / .45); }
.live-chat-message.admin { justify-self: start; }
.live-chat-message p { margin: 4px 0 0; line-height: 1.45; }
.live-chat-form { display: grid; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.live-chat-form input, .live-chat-form textarea { min-height: 38px; }
.live-chat-member-name { margin: 0; color: var(--orange); font-weight: 900; }
.chat-badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14px; }
.chat-admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.chat-thread-list, .chat-admin-panel { border: 1px solid var(--line); background: #101010; padding: 12px; }
.chat-thread { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding: 10px; color: var(--text); text-decoration: none; }
.chat-thread.active { border-color: var(--orange); background: rgb(242 140 40 / .1); }
.chat-thread span { justify-self: start; display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; }
.chat-message-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; margin: 14px 0; }
.chat-message { border: 1px solid var(--line); background: #171717; padding: 10px; }
.chat-message.customer { border-color: rgb(242 140 40 / .45); }
.chat-reply-form { display: grid; gap: 10px; }
button:disabled { cursor: not-allowed; border-color: var(--line); background: #202020; color: #777; }
@media (max-width: 900px) {
  .topbar, .hero, .checkout-layout, .product-detail { grid-template-columns: 1fr; }
  .nav-tabs, .top-actions { justify-self: start; }
  .product-grid, .home-grid, .news-grid, .option-grid, .field-grid, .footer-columns, .member-auth-grid, .member-dashboard { grid-template-columns: 1fr; }
  .hero { min-height: 520px; padding: 24px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .product-detail { max-height: 88vh; overflow: auto; padding: 16px; }
  .product-detail-copy { padding-right: 0; }
  .product-magnifier { display: none; }
  .image-manager-grid { grid-template-columns: repeat(auto-fill, minmax(82px, 100px)); }
  .variant-table-head { display: none; }
  .variant-row { grid-template-columns: 1fr; border: 1px solid var(--line); padding: 10px; }
  .footer-columns { text-align: left; }
  .social-links { justify-content: flex-start; }
  .chat-admin-layout { grid-template-columns: 1fr; }
  .live-chat { right: 16px; bottom: 76px; }
}
