:root {
  --red: #e50914;
  --red-dark: #aa0710;
  --black: #090909;
  --ink: #171717;
  --muted: #626262;
  --line: #e4e4e4;
  --paper: #f6f6f3;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(229, 9, 20, .35); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 112px; display: block; }
nav { display: flex; align-items: center; gap: 8px; }
nav a, .ghost-button {
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
nav a:hover, .ghost-button:hover { border-color: var(--line); background: #fff; }

.hero {
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding: 88px 18px 32px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.9)),
    url("../img/brand/yakuza-header-reference.png") center / cover no-repeat,
    var(--black);
}
.hero-copy { max-width: 720px; margin: 0 auto; width: 100%; }
.hero-logo {
  width: min(560px, 94vw);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.52));
}
.slogan {
  margin: 6px 0 18px;
  font-size: clamp(1.35rem, 6vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}
.table-welcome {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.45);
  border-radius: 8px;
  font-weight: 800;
}
.hero-actions, .cart-actions, .location-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  min-height: 48px;
  border-radius: 8px;
  border: 0;
  padding: 13px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.primary-button { background: var(--red); color: #fff; }
.primary-button:hover { background: var(--red-dark); }
.secondary-button { background: var(--black); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.full { width: 100%; }

.section { width: min(1120px, 100%); margin: 0 auto; padding: 44px 16px; }
.intro { font-size: 1.2rem; line-height: 1.55; font-weight: 700; }
.section-heading { margin-bottom: 18px; }
.section-heading p, .eyebrow {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 1000;
  letter-spacing: 0;
  margin: 0 0 4px;
}
h1, h2 { margin: 0; line-height: .98; font-weight: 1000; }
h1 { font-size: clamp(2.1rem, 11vw, 5rem); }
h2 { font-size: clamp(2rem, 9vw, 4.2rem); }

.promo-grid, .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.promo-card, .dish-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.promo-card img, .gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.promo-card .body, .dish-card { padding: 14px; }
.promo-card h3, .dish-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.promo-card p, .dish-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.35; }
.price { font-weight: 1000; color: var(--red); font-size: 1.08rem; }
.provisional { color: var(--muted); font-size: .78rem; display: block; margin-top: 6px; }

.search-box { display: grid; gap: 7px; margin-bottom: 12px; font-weight: 800; }
.search-box input, .field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.category-tabs {
  position: sticky;
  top: 61px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  background: rgba(246,246,243,.94);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}
.category-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 850;
}
.category-tabs button.active { background: var(--red); color: #fff; border-color: var(--red); }
.category-block { scroll-margin-top: 124px; padding-top: 18px; }
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.dish-card { display: grid; gap: 8px; }
.visual-dish-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 5;
  padding: 0;
  color: #fff;
  background: var(--black);
  cursor: pointer;
  isolation: isolate;
}
.dish-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}
.dish-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.86));
  transition: background .28s ease;
}
.dish-front, .dish-detail {
  position: absolute;
  left: 14px;
  right: 14px;
}
.dish-front {
  bottom: 14px;
  display: grid;
  gap: 7px;
  transition: opacity .22s ease;
}
.dish-front h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 14px rgba(0,0,0,.55);
}
.dish-front .price { color: white; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.dish-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.dish-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(229,9,20,.92);
  color: #fff;
  font-size: .78rem;
  font-weight: 1000;
  padding: 3px 8px;
}
.dish-badge.featured { background: rgba(255,255,255,.9); color: var(--black); }
.dish-detail {
  top: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.dish-detail-head {
  display: grid;
  gap: 7px;
}
.dish-detail-head h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 14px rgba(0,0,0,.55);
}
.dish-detail-head .price { color: #fff; }
.dish-detail p {
  max-height: 118px;
  overflow: auto;
  margin: 0;
  color: #fff;
  line-height: 1.38;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.visual-dish-card.is-revealed .dish-bg,
.visual-dish-card:focus-within .dish-bg {
  transform: scale(1.05);
  filter: blur(3px);
  opacity: .74;
}
.visual-dish-card.is-revealed .dish-overlay,
.visual-dish-card:focus-within .dish-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.92));
}
.visual-dish-card.is-revealed .dish-detail,
.visual-dish-card:focus-within .dish-detail {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.visual-dish-card.is-revealed .dish-front,
.visual-dish-card:focus-within .dish-front {
  opacity: .18;
}
.visual-dish-card .dish-detail button {
  flex: 0 0 auto;
}
.dish-card button, .promo-card button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.dish-card button.added, .promo-card button.added { background: var(--red); }
.empty-state {
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
}

.gallery img { border-radius: 8px; border: 1px solid var(--line); }
.location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: #fff;
  border-top: 4px solid var(--red);
  margin-bottom: 36px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 16px 96px;
  border-top: 1px solid var(--line);
}
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--ink); }
.axis { color: var(--muted) !important; text-decoration: none; }

.cart-fab {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 1000;
  box-shadow: var(--shadow);
}
.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: end;
}
.cart-sheet.open { display: flex; }
.cart-panel {
  width: 100%;
  max-height: 92svh;
  overflow: auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cart-panel header, .dialog-head, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 1.5rem;
}
.cart-line {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-main { display: flex; justify-content: space-between; gap: 10px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 800; }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.mode-grid button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
}
.mode-grid button.active { border-color: var(--red); color: var(--red); }
.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  font-weight: 1000;
  font-size: 1.15rem;
}
.confirm-dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.confirm-dialog::backdrop { background: rgba(0,0,0,.55); }
.notice { background: #fff4f4; border-left: 4px solid var(--red); padding: 12px; }

@media (min-width: 760px) {
  .site-header { padding-inline: 30px; }
  .hero { min-height: 72vh; padding-inline: 40px; }
  .hero-copy { margin-left: 0; }
  .cart-fab { left: auto; width: 320px; }
  .cart-panel { max-width: 520px; margin-left: auto; }
  .location { grid-template-columns: 1fr auto; align-items: center; border-radius: 8px; padding: 32px; }
}

@media (max-width: 430px) {
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .brand img { width: 96px; }
  .mode-grid { grid-template-columns: 1fr; }
  .section { padding-inline: 12px; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .visual-dish-card { min-height: 235px; }
  .dish-front, .dish-detail { left: 10px; right: 10px; }
  .dish-front h3 { font-size: 1rem; }
  .dish-detail { top: 10px; bottom: 10px; gap: 8px; }
  .dish-detail-head { gap: 5px; }
  .dish-detail-head h3 { font-size: .94rem; }
  .dish-detail p { max-height: 92px; font-size: .86rem; }
  .dish-badge { font-size: .68rem; min-height: 22px; }
}
