/*
 * Fire Bowl — the menu ([fb_menu]). Desktop: a sticky section bar beside the menu.
 * Phones: the section links wrap into a block of chips above it (never a scrolling strip).
 * Groups are banded 火 From the Fire · 海 From the Sea · 飲 Sips & Sauces.
 */

.fb-menu {
	--menu-top: calc(var(--hh) + var(--abh) + 24px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	color: var(--sumi);
}
.fb-menu__print-head { display: none; }

/* ---------------------------------------------------------------- Section bar */
.fb-menu__bar {
	display: grid;
	gap: 22px;
	align-content: start;
	padding: 22px;
	border-radius: var(--r-lg);
	background: var(--ink);
	background-image: radial-gradient(80% 50% at 0% 0%, rgba(237, 44, 34, .25), transparent 70%), var(--tex-grain);
	background-size: auto, 140px 140px;
	color: var(--rice);
	box-shadow: var(--shadow);
}
.fb-menu-nav { display: grid; gap: 18px; }
.fb-menu-nav__group { display: grid; gap: 10px; }
.fb-menu-nav__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gold);
}
.fb-menu-nav__label [lang="ja"] {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 122, 26, .16);
	color: var(--ember);
	font-family: var(--f-brush);
	font-size: 1.1rem;
	letter-spacing: 0;
}
.fb-menu-nav__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fb-menu-nav__links li { list-style: none; }
.fb-menu-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 7px 13px;
	border: 1px solid rgba(251, 247, 239, .16);
	border-radius: 999px;
	color: rgba(251, 247, 239, .86);
	font-weight: 700;
	font-size: .875rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}
.fb-menu-nav__link:hover { border-color: var(--gold); color: var(--gold); }
.fb-menu-nav__link.is-active,
.fb-menu-nav__link[aria-current="true"] {
	background: linear-gradient(135deg, var(--ember), var(--gold));
	border-color: transparent;
	color: var(--ink);
}

/* Find: search + filter chips */
.fb-menu-find { display: grid; gap: 12px; padding-top: 18px; border-top: 1px dashed rgba(251, 247, 239, .18); }
.fb-menu-find__search {
	position: relative;
	display: block;
}
.fb-menu-find__search .fb-ico {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--gold);
	pointer-events: none;
}
.fb-menu-find__search input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px 10px 42px;
	border: 1px solid rgba(251, 247, 239, .22);
	border-radius: 999px;
	background: rgba(251, 247, 239, .06);
	color: var(--rice);
	font-size: 1rem;
	outline: none;
	transition: border-color .2s, background .2s;
}
.fb-menu-find__search input::placeholder { color: rgba(251, 247, 239, .5); }
.fb-menu-find__search input:focus { border-color: var(--gold); background: rgba(251, 247, 239, .1); }
.fb-menu-find__search input::-webkit-search-cancel-button { filter: invert(1); }
.fb-menu-find__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-menu__bar .fb-chip { background: transparent; border-color: rgba(251, 247, 239, .22); color: var(--rice); min-height: 38px; }
.fb-menu__bar .fb-chip:hover { border-color: var(--gold); }
.fb-menu__bar .fb-chip[aria-pressed="true"] { background: var(--rice); border-color: var(--rice); color: var(--ink); }
.fb-menu-find__count { margin: 0; min-height: 1.4em; font-size: .8125rem; color: rgba(251, 247, 239, .66); }

/* ---------------------------------------------------------------- Groups & sections */
.fb-menu__sections { display: grid; gap: 28px; min-width: 0; }
.fb-menu-group {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 120px;
	margin-top: 18px;
	padding: 24px 28px;
	border-radius: var(--r-lg);
	overflow: hidden;
	isolation: isolate;
	background: var(--char);
	background-image:
		radial-gradient(70% 120% at 100% 50%, rgba(237, 44, 34, .35), transparent 70%),
		var(--tex-teppan);
	background-size: auto, 900px 300px;
	color: var(--rice);
}
.fb-menu-group:first-child { margin-top: 0; }
.fb-menu-group::after {
	content: "";
	position: absolute;
	right: -20px;
	top: 50%;
	width: 260px;
	height: 260px;
	z-index: -1;
	transform: translateY(-50%) rotate(-12deg);
	background: var(--art-enso-gold) center / contain no-repeat;
	opacity: .2;
}
.fb-menu-group__k {
	font-family: var(--f-brush);
	font-size: 4.4rem;
	line-height: 1;
	color: var(--ember);
	text-shadow: 0 0 40px rgba(255, 122, 26, .5);
}
.fb-menu-group__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	line-height: 1.05;
	color: var(--rice);
}
/* 海 From the Sea: the tide band */
.fb-menu-group#group-from-the-sea {
	background-color: var(--tide);
	background-image:
		radial-gradient(70% 120% at 100% 50%, rgba(31, 167, 160, .4), transparent 70%),
		var(--pat-seigaiha-tide);
	background-size: auto, 60px 30px;
}
.fb-menu-group#group-from-the-sea .fb-menu-group__k { color: var(--foam); text-shadow: 0 0 40px rgba(31, 167, 160, .6); }
/* 飲 Sips & Sauces: the gold band */
.fb-menu-group#group-sips-sauces,
.fb-menu-group#group-sips-and-sauces {
	background-color: var(--maroon);
	background-image: radial-gradient(70% 120% at 100% 50%, rgba(255, 181, 71, .35), transparent 70%), var(--tex-grain);
	background-size: auto, 140px 140px;
}
.fb-menu-group#group-sips-sauces .fb-menu-group__k,
.fb-menu-group#group-sips-and-sauces .fb-menu-group__k { color: var(--gold); }

.fb-mcat {
	position: relative;
	padding: clamp(22px, 3vw, 38px);
	border-radius: var(--r-lg);
	background: var(--rice);
	box-shadow: 0 1px 0 rgba(17, 11, 9, .06), 0 24px 44px -32px rgba(17, 11, 9, .55);
	scroll-margin-top: var(--menu-top);
}
/* The island plates get a flower behind the card and a lagoon rim. */
.fb-mcat#hawaiian { box-shadow: inset 0 3px 0 var(--lagoon), 0 1px 0 rgba(17, 11, 9, .06), 0 24px 44px -32px rgba(17, 11, 9, .55); }
.fb-mcat#hawaiian::before {
	content: "";
	position: absolute;
	top: -30px;
	left: -26px;
	width: 84px;
	aspect-ratio: 224 / 252;
	z-index: 1;
	background: var(--art-hibiscus) center / contain no-repeat;
	transform: rotate(-16deg);
	filter: drop-shadow(0 8px 12px rgba(17, 11, 9, .25));
	pointer-events: none;
}
.fb-mcat__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 18px;
	padding-bottom: 20px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--ink);
}
.fb-mcat__kanji {
	writing-mode: vertical-rl;
	font-family: var(--f-brush);
	font-size: 2.3rem;
	line-height: 1;
	letter-spacing: .05em;
	color: var(--flame);
	padding: 8px 6px;
	border-radius: 999px;
	background: var(--washi);
	min-height: 72px;
	text-align: center;
}
.fb-mcat__titles { min-width: 0; }
.fb-mcat__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}
.fb-mcat__count .fb-ico { width: 18px; height: 18px; color: var(--flame); }
.fb-mcat__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	line-height: 1.05;
	color: var(--ink);
}
.fb-mcat__tagline { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }
.fb-mcat__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 10px;
	background: #FFF1DA;
	color: #6B3D00;
	font-size: .875rem;
	font-weight: 500;
}
.fb-mcat__note .fb-ico { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.fb-mcat__photo {
	width: clamp(110px, 12vw, 150px);
	margin: 0;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 5px var(--rice), 0 0 0 7px rgba(255, 122, 26, .5), var(--shadow);
	transform: rotate(-4deg);
}
.fb-mcat__photo picture,
.fb-mcat__photo img { width: 100%; height: 100%; object-fit: cover; }

.fb-mcat__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fb-mcat__list > li { list-style: none; }

/* Dish rows */
.fb-dish {
	position: relative;
	padding: 16px 0;
	border-bottom: 1px dashed var(--line);
}
.fb-dish__line { display: flex; align-items: baseline; gap: 10px; }
.fb-dish__name {
	margin: 0;
	font-family: var(--f-serif);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--ink);
}
.fb-dish__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(43, 33, 28, .28); transform: translateY(-5px); }
.fb-dish__price { font-family: var(--f-display); font-size: 1.05rem; color: var(--flame-d); white-space: nowrap; }
.fb-dish__prices { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.fb-dish__size { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.fb-dish__size small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fb-dish__size b { font-family: var(--f-display); font-weight: 400; color: var(--flame-d); }
.fb-dish__desc { margin: 6px 0 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.fb-dish__extra { margin: 6px 0 0; font-size: .8125rem; font-weight: 700; color: var(--lagoon-d); }
.fb-dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.fb-dish.is-highlight {
	margin-inline: -14px;
	padding-inline: 14px;
	border-radius: 12px;
	border-bottom-color: transparent;
	background: linear-gradient(90deg, rgba(255, 122, 26, .12), rgba(255, 181, 71, .04));
	box-shadow: inset 3px 0 0 var(--ember);
}
.fb-dish.is-soldout .fb-dish__name,
.fb-dish.is-soldout .fb-dish__price,
.fb-dish.is-soldout .fb-dish__size b { text-decoration: line-through; text-decoration-color: var(--flame); opacity: .55; }
.fb-dish.is-soldout .fb-dish__desc { opacity: .55; }
.fb-dish.is-hidden,
.fb-mcat.is-hidden,
.fb-menu.is-filtering .fb-menu-group { display: none; }

/* Sub-heads, chip lists, callouts span the full width of the list */
.fb-msub,
.fb-mchips,
.fb-mcallout { grid-column: 1 / -1; }
.fb-msub { padding: 22px 0 6px; }
.fb-msub__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: .8125rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--flame-d);
}
.fb-msub__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fb-msub__desc { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.fb-mchips { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.fb-mchips__name { margin: 0 0 10px; font-family: var(--f-serif); font-weight: 800; color: var(--ink); }
.fb-mchips__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fb-mchips__list li {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--washi);
	font-size: .875rem;
	font-weight: 500;
	color: var(--sumi);
}
.fb-mchips__note { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.fb-mcallout {
	display: flex;
	gap: 12px;
	margin: 16px 0 4px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--tide);
	color: var(--foam);
}
.fb-mcallout > .fb-ico { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }
.fb-mcallout__title { margin: 0 0 2px; font-weight: 700; color: var(--rice); }
.fb-mcallout__desc { margin: 0; font-size: .9375rem; }

.fb-menu__empty {
	margin: 0;
	padding: 40px 24px;
	border: 2px dashed var(--line);
	border-radius: var(--r-lg);
	text-align: center;
	color: var(--muted);
	font-size: 1.0625rem;
}
.fb-menu__fine { margin: 8px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); max-width: 90ch; }
.fb-menu__none { padding: 30px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- Breakpoints */
@media (min-width: 768px) {
	.fb-mcat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-mcat__list > .fb-dish:nth-last-child(-n + 2):nth-child(odd),
	.fb-mcat__list > .fb-dish:last-child { border-bottom-color: transparent; }
}
@media (min-width: 1101px) {
	.fb-menu {
		grid-template-columns: 290px minmax(0, 1fr);
		gap: 40px 48px;
		align-items: start;
	}
	.fb-menu__bar {
		position: sticky;
		top: var(--menu-top);
		max-height: calc(100vh - var(--menu-top) - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: none;
	}
	.fb-menu__bar::-webkit-scrollbar { display: none; }
	.fb-menu-nav__links { flex-direction: column; gap: 2px; }
	.fb-menu-nav__link {
		display: flex;
		min-height: 36px;
		padding: 6px 12px;
		border-color: transparent;
		border-radius: 10px;
	}
	.fb-menu-nav__link::before {
		content: "";
		width: 6px;
		height: 6px;
		margin-right: 10px;
		flex: none;
		border-radius: 50%;
		background: rgba(251, 247, 239, .25);
		transition: background .2s, transform .3s var(--ease);
	}
	.fb-menu-nav__link:hover::before { background: var(--gold); }
	.fb-menu-nav__link.is-active::before { background: var(--ink); transform: scale(1.4); }
	.fb-menu__fine { grid-column: 2; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
	.fb-mcat__list { grid-template-columns: minmax(0, 1fr); }
	.fb-mcat__list > .fb-dish:nth-last-child(-n + 2):nth-child(odd) { border-bottom-color: var(--line); }
	.fb-mcat__list > .fb-dish:last-child { border-bottom-color: transparent; }
}
@media (max-width: 767px) {
	.fb-menu__bar { padding: 18px; }
	.fb-mcat { padding: 20px 18px; border-radius: 18px; }
	.fb-mcat__head { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
	.fb-mcat__kanji { display: none; }
	.fb-mcat__photo { width: 86px; }
	.fb-menu-group { min-height: 96px; padding: 18px 20px; }
	.fb-menu-group__k { font-size: 3.2rem; }
	.fb-dish.is-highlight { margin-inline: -10px; padding-inline: 10px; }
	.fb-dish.has-sizes .fb-dish__line { flex-wrap: wrap; }
	.fb-dish.has-sizes .fb-dish__dots { display: none; }
	.fb-dish.has-sizes .fb-dish__prices { width: 100%; justify-content: flex-start; }
}
