:root {
  --bg: #0b0b0a;
  --ink: #edeae0;
  --dim: #9a958a;
  --line: #2b2a27;
  --accent: #ffb000;
  --display: 'Chakra Petch', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--body);
  min-height: 100vh;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  justify-content: center;
}
.wrap { width: 100%; max-width: 1080px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 16px; }

header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand logo" "checked checked"; align-items: center; gap: 12px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.brand { grid-area: brand; }
.header-right { grid-area: logo; display: flex; justify-content: flex-end; align-items: center; }
.ndtn-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 54px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 176, 0, 0.55);
  border-radius: 9px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255,176,0,.12), rgba(255,176,0,.025));
  box-shadow: inset 0 0 18px rgba(255,176,0,.06), 0 0 16px rgba(255,176,0,.05);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255,176,0,.22);
}
#checked { grid-area: checked; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; }
.dot { display: inline-block; width: 10px; height: 10px; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
#checked { font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }

#notice { margin: 0; padding: 12px 14px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; line-height: 1.5; }

.heading { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
.unit { margin: 0; font-size: 14px; color: var(--dim); }

.board { border-top: 2px solid var(--accent); }
.cols { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.cols > div, .row > div { flex: 1 1 150px; min-width: 0; }
.cols > div:first-child, .row > .name { flex-basis: 220px; }
#rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.name { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 3vw, 28px); letter-spacing: 0.02em; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 8.5vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.price.r1 { color: var(--accent); }
.digits { display: inline-block; transform-origin: 50% 100%; animation: flip 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (max-width: 640px) {
  .cols > div:first-child { display: none; } /* trên điện thoại tên loại nằm riêng một dòng phía trên giá */
}

footer { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; line-height: 1.6; color: var(--dim); }
footer > div { flex: 1 1 240px; min-width: 0; }
footer a { color: var(--ink); }

@keyframes flip { from { transform: rotateX(88deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .digits, .dot { animation: none; } }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
