:root {
color-scheme: light;
--paper: #fffdf6;
--paper-deep: #f6eee0;
--ink: #211915;
--muted: #7b6655;
--brown: #6f4029;
--brown-dark: #3a241a;
--red: #9e3028;
--gold: #b98c3d;
--line: rgba(111, 64, 41, 0.28);
--accent: #b98c3d;
--accent-deep: #6f4029;
}

* {
box-sizing: border-box;
}

body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
background:
radial-gradient(circle at 18% 16%, rgba(185, 140, 61, 0.2), transparent 17rem),
radial-gradient(circle at 88% 74%, rgba(158, 48, 40, 0.14), transparent 20rem),
linear-gradient(135deg, #f8f1e5 0%, #ffffff 48%, #eadfd1 100%);
color: var(--ink);
font-family: Tahoma, Arial, sans-serif;
animation: pageGlow 12s ease-in-out infinite alternate;
}

.menu-app {
width: min(100vw, 1030px);
padding: 18px;
}

.menu-board {
position: relative;
overflow: hidden;
min-height: 640px;
padding: 22px;
border: 1px solid rgba(111, 64, 41, 0.24);
border-radius: 8px;
background:
linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
url("assets/reference.png") center / cover;
box-shadow: 0 26px 60px rgba(45, 30, 18, 0.24);
animation: boardEntrance 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
isolation: isolate;
transition: background 360ms ease, box-shadow 360ms ease;
}

.menu-board > * {
animation: riseIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-board::before,
.menu-board::after {
content: "";
position: absolute;
inset: 18px;
border: 4px solid var(--brown);
border-bottom: 0;
pointer-events: none;
}

.menu-board::after {
inset: 29px;
border-width: 2px;
border-color: var(--gold);
animation: borderBreath 4.8s ease-in-out infinite;
}

.sparkle-field {
position: absolute;
inset: 0;
background-image:
radial-gradient(circle, rgba(185, 140, 61, 0.85) 0 1.5px, transparent 2px),
radial-gradient(circle, rgba(185, 140, 61, 0.62) 0 1.2px, transparent 1.8px);
background-position:
28px 44px,
110px 104px;
background-size:
148px 118px,
205px 155px;
opacity: 0.55;
pointer-events: none;
animation: sparkleDrift 9s linear infinite;
}

.sparkle-field::before {
content: "";
position: absolute;
inset: -35%;
background: linear-gradient(
115deg,
transparent 34%,
rgba(255, 255, 255, 0.55) 48%,
transparent 62%
);
transform: translateX(-45%) rotate(6deg);
animation: softSweep 7s ease-in-out infinite;
}

.light-ribbons {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}

.light-ribbons::before,
.light-ribbons::after {
content: "";
position: absolute;
width: 72%;
height: 2px;
right: -18%;
background: linear-gradient(90deg, transparent, rgba(185, 140, 61, 0.75), transparent);
transform: rotate(-10deg);
opacity: 0.65;
animation: ribbonSlide 6.4s ease-in-out infinite;
}

.light-ribbons::before {
top: 31%;
}

.light-ribbons::after {
top: 73%;
animation-delay: -2.8s;
opacity: 0.45;
}

.brand-panel {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 160px 1fr 160px;
align-items: center;
gap: 18px;
min-height: 165px;
animation-delay: 80ms;
}

.brand-lockup {
text-align: center;
line-height: 1.04;
}

.brand-castle {
position: relative;
top: 20px;
width: 200px;
height: 200px;
margin: 0 auto 25px;
display: grid;
place-items: end center;
border-bottom: 0;
border-radius: 10px;
/* color: var(--red); */
/* font-weight: 900;
font-size: 14px; */
animation: castleFloat 4s ease-in-out infinite;
}

.brand-lockup p,
.brand-lockup h1,
.brand-lockup span,
.brand-lockup strong {
display: block;
margin: 0;
}

.brand-lockup p {
color: var(--red);
font-weight: 900;
font-size: 16px;
}

.brand-lockup h1 {
font: 900 26px/1 Georgia, "Times New Roman", serif;
}

.brand-lockup span {
color: var(--red);
font-size: 10px;
font-weight: 800;
letter-spacing: 4px;
}

.brand-lockup strong {
margin-top: 7px;
color: #8b6532;
font-size: 22px;
animation: sloganGlow 3.8s ease-in-out infinite;
}

.dish-photo {
width: 146px;
aspect-ratio: 1;
border-radius: 50%;
border: 7px solid #211c19;
outline: 4px solid #706052;
background-image: url("images/food.jpg");
background-size: 806px 566px;
box-shadow:
inset 0 0 0 5px rgba(255, 255, 255, 0.26),
0 5px 12px rgba(0, 0, 0, 0.25);
transition:
transform 260ms ease,
box-shadow 260ms ease;
animation: dishFloat 5.5s ease-in-out infinite;
will-change: transform;
}

.dish-photo:hover {
transform: translateY(-4px) scale(1.035);
box-shadow:
inset 0 0 0 5px rgba(255, 255, 255, 0.3),
0 14px 26px rgba(0, 0, 0, 0.28);
}

.dish-photo-left {
background-position: -100px -530px;
}

.dish-photo-right {
justify-self: end;
background-position: -435px -105px;
}

.category-tabs {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
margin: 8px 18px 18px;
direction: rtl;
animation-delay: 180ms;
}

.category-tab {
position: relative;
overflow: hidden;
min-height: 50px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 251, 243, 0.88);
color: var(--brown-dark);
font: 900 15px/1.2 Tahoma, Arial, sans-serif;
cursor: pointer;
box-shadow: 0 4px 12px rgba(70, 43, 22, 0.08);
transform: translateY(0);
transition:
transform 220ms ease,
background 220ms ease,
border-color 220ms ease,
box-shadow 220ms ease;
animation: tabPop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
animation-delay: calc(var(--tab-index, 0) * 70ms + 240ms);
isolation: isolate;
}

.category-tab::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5), transparent 80%);
transform: translateX(115%);
transition: transform 420ms ease;
}

.category-tab:hover {
transform: translateY(-3px);
box-shadow: 0 10px 24px rgba(74, 45, 32, 0.16);
}

.category-tab:hover::after,
.category-tab[aria-selected="true"]::after {
transform: translateX(-115%);
}

.category-tab span {
display: block;
margin-top: 4px;
color: var(--muted);
font: 700 11px/1 Georgia, "Times New Roman", serif;
}

.category-tab[aria-selected="true"] {
border-color: var(--brown);
background: linear-gradient(180deg, var(--accent-deep), #2d211b);
color: #fff9ee;
box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-deep) 42%, transparent);
transform: translateY(-2px);
}

.category-tab[aria-selected="true"] span {
color: #f0d59c;
}

.active-section {
position: relative;
z-index: 1;
margin: 0 18px;
padding: 18px;
border: 1px solid rgba(111, 64, 41, 0.3);
border-radius: 8px;
background: rgba(255, 255, 255, 0.86);
backdrop-filter: blur(2px);
animation-delay: 300ms;
transition:
opacity 220ms ease,
transform 220ms ease,
box-shadow 220ms ease;
}

.active-section.is-changing {
opacity: 0;
transform: translateY(12px) scale(0.985);
}

.active-section:not(.is-changing) {
box-shadow: 0 14px 34px rgba(64, 40, 24, 0.08);
}

.active-section::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
border-top: 3px solid var(--accent);
opacity: 0.78;
pointer-events: none;
}

.section-title {
display: flex;
align-items: end;
justify-content: space-between;
gap: 18px;
margin-bottom: 14px;
border-bottom: 2px solid rgba(185, 140, 61, 0.34);
padding-bottom: 10px;
}

.section-title span {
color: var(--red);
font: 900 18px/1 Georgia, "Times New Roman", serif;
}

.section-title h2 {
margin: 2px 0 0;
color: var(--accent-deep);
font-size: 36px;
line-height: 1;
transform-origin: right center;
}

.active-section:not(.is-changing) .section-title h2 {
animation: titleSnap 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title p {
margin: 0;
color: var(--muted);
font-weight: 800;
}

.section-actions {
display: flex;
align-items: center;
gap: 10px;
}

.search-box {
position: relative;
display: grid;
grid-template-columns: 24px minmax(130px, 190px);
align-items: center;
min-height: 42px;
padding: 0 12px;
border: 1px solid rgba(111, 64, 41, 0.24);
border-radius: 8px;
background: rgba(255, 252, 246, 0.92);
color: var(--accent-deep);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-box:focus-within {
border-color: var(--accent);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.54),
0 10px 22px color-mix(in srgb, var(--accent) 18%, transparent);
transform: translateY(-2px);
}

.search-box span {
color: var(--accent);
font: 900 20px/1 Georgia, "Times New Roman", serif;
}

.search-box input {
width: 100%;
border: 0;
outline: 0;
background: transparent;
color: var(--ink);
font: 800 14px/1 Tahoma, Arial, sans-serif;
}

.search-box input::placeholder {
color: rgba(123, 102, 85, 0.74);
}

.menu-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 240px;
gap: 16px;
align-items: start;
}

.items-panel {
min-width: 0;
position: relative;
}

.table-head,
.menu-item {
display: grid;
grid-template-columns: minmax(0, 1fr) 82px 82px;
align-items: center;
gap: 10px;
}

.table-head {
min-height: 38px;
padding: 0 12px;
border-radius: 7px;
background: #2a211c;
color: #fff4df;
font-weight: 900;
animation: headerSlide 520ms ease both;
}

.item-list {
margin: 8px 0 0;
padding: 0;
list-style: none;
}

.menu-item {
position: relative;
overflow: hidden;
min-height: 54px;
padding: 8px 12px;
border-bottom: 1px solid rgba(111, 64, 41, 0.16);
color: var(--ink);
cursor: pointer;
opacity: 0;
transform: translateX(18px);
animation: itemReveal 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
/* animation-delay: calc(var(--item-index, 0) * 65ms + 80ms); */
transition:
transform 180ms ease,
background 180ms ease,
box-shadow 180ms ease;
}

.menu-item::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
opacity: 0;
transition: opacity 180ms ease;
pointer-events: none;
}

.menu-item:hover,
.menu-item.is-featured {
background: rgba(185, 140, 61, 0.12);
}

.menu-item:hover::before,
.menu-item.is-featured::before {
opacity: 1;
}

.menu-item:hover {
transform: translateX(-4px);
}

.menu-item.is-featured {
box-shadow: inset 4px 0 0 var(--accent);
}

.item-name strong,
.item-name span {
display: block;
}

.item-name strong {
font-size: 18px;
}

.item-name span {
margin-top: 2px;
color: var(--muted);
direction: ltr;
font: 700 13px/1.2 Georgia, "Times New Roman", serif;
}

.menu-item b {
text-align: center;
font: 900 21px/1 Impact, "Arial Black", sans-serif;
color: #101010;
transition: color 180ms ease, transform 180ms ease;
}

.menu-item:hover b,
.menu-item.is-featured b {
color: var(--accent-deep);
transform: scale(1.06);
}

.empty-state {
display: none;
margin: 18px 0 0;
padding: 22px;
border: 1px dashed rgba(111, 64, 41, 0.34);
border-radius: 8px;
color: var(--muted);
text-align: center;
font-weight: 900;
background: rgba(255, 251, 243, 0.62);
}

.empty-state.is-visible {
display: block;
animation: itemReveal 320ms ease both;
}

.feature-panel {
position: relative;
overflow: hidden;
min-height: 100%;
padding: 18px;
border-radius: 8px;
background:
linear-gradient(180deg, rgba(74, 45, 32, 0.94), rgba(32, 23, 18, 0.96)),
url("assets/reference.png") center / cover;
color: #fff7e8;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
transform-origin: center;
transition:
transform 240ms ease,
box-shadow 240ms ease;
will-change: transform;
}

.feature-panel::before {
content: "";
position: absolute;
inset: -30%;
background: radial-gradient(circle at 30% 20%, rgba(255, 225, 159, 0.24), transparent 28%),
linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 66%);
transform: translateX(48%) rotate(10deg);
animation: featureShine 5.8s ease-in-out infinite;
pointer-events: none;
}

.feature-panel::after {
content: "";
position: absolute;
inset: auto 18px 18px;
height: 3px;
border-radius: 999px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.8;
animation: featureUnderline 2.8s ease-in-out infinite;
}

.feature-glow {
position: absolute;
inset: 0;
background:
linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 38%),
linear-gradient(315deg, color-mix(in srgb, var(--accent-deep) 20%, transparent), transparent 40%);
mix-blend-mode: screen;
opacity: 0.55;
}

.feature-panel > * {
position: relative;
z-index: 1;
}

.feature-panel.is-pulsing {
animation: featurePulse 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-panel:hover {
transform: translateY(-4px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.16),
0 16px 28px rgba(54, 32, 20, 0.18);
}

.feature-panel span {
display: block;
color: #e7c77b;
font: 800 12px/1.3 Georgia, "Times New Roman", serif;
}

.feature-panel strong {
display: block;
margin-top: 24px;
font: 900 28px/1.05 Georgia, "Times New Roman", serif;
animation: featuredTextIn 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-panel p {
margin: 8px 0 22px;
color: #f3dcc0;
font-size: 18px;
font-weight: 800;
}

.feature-prices {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px 12px;
align-items: baseline;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.22);
direction: ltr;
}

.feature-prices b {
font: 900 29px/1 Impact, "Arial Black", sans-serif;
animation: priceTick 520ms ease both;
}

.feature-prices small {
color: #e7c77b;
font-weight: 900;
}

.menu-tools {
display: flex;
justify-content: center;
margin-top: 14px;
}

.menu-tools a {
min-width: 158px;
min-height: 42px;
display: inline-grid;
place-items: center;
border: 1px solid rgba(91, 59, 32, 0.35);
border-radius: 8px;
background: #fffaf2;
color: #4c2d1d;
font: 800 14px/1 Arial, sans-serif;
text-decoration: none;
box-shadow: 0 4px 12px rgba(35, 24, 12, 0.13);
transition:
transform 200ms ease,
background 200ms ease,
box-shadow 200ms ease;
}

.menu-tools a:hover {
background: #f2dfc2;
transform: translateY(-2px);
box-shadow: 0 10px 22px rgba(35, 24, 12, 0.17);
}

@keyframes pageGlow {
from {
background-position: 0 0, 0 0, center;
}

to {
background-position: 38px -18px, -32px 22px, center;
}
}

@keyframes boardEntrance {
from {
opacity: 0;
transform: translateY(18px) scale(0.985);
}

to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes riseIn {
from {
opacity: 0;
transform: translateY(16px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes borderBreath {
0%,
100% {
opacity: 0.62;
}

50% {
opacity: 1;
}
}

@keyframes sparkleDrift {
from {
background-position:
28px 44px,
110px 104px;
}

to {
background-position:
176px 162px,
-95px 259px;
}
}

@keyframes softSweep {
0%,
38% {
transform: translateX(75%) rotate(6deg);
}

64%,
100% {
transform: translateX(-75%) rotate(6deg);
}
}

@keyframes ribbonSlide {
0%,
100% {
transform: translateX(16%) rotate(-10deg);
}

50% {
transform: translateX(-38%) rotate(-10deg);
}
}

@keyframes castleFloat {
0%,
100% {
transform: translateY(0);
}

50% {
transform: translateY(-4px);
}
}

@keyframes sloganGlow {
0%,
100% {
text-shadow: 0 0 0 rgba(185, 140, 61, 0);
}

50% {
text-shadow: 0 6px 18px rgba(185, 140, 61, 0.34);
}
}

@keyframes dishFloat {
0%,
100% {
translate: 0 0;
}

50% {
translate: 0 -5px;
}
}

@keyframes tabPop {
from {
opacity: 0;
transform: translateY(12px) scale(0.96);
}

to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes titleSnap {
from {
opacity: 0;
transform: translateX(18px) scale(0.96);
}

to {
opacity: 1;
transform: translateX(0) scale(1);
}
}

@keyframes headerSlide {
from {
opacity: 0;
transform: translateY(-8px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes itemReveal {
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes featureShine {
0%,
35% {
transform: translateX(52%) rotate(10deg);
}

62%,
100% {
transform: translateX(-52%) rotate(10deg);
}
}

@keyframes featurePulse {
0% {
transform: scale(0.985);
}

60% {
transform: scale(1.018);
}

100% {
transform: scale(1);
}
}

@keyframes featureUnderline {
0%,
100% {
transform: scaleX(0.35);
opacity: 0.45;
}

50% {
transform: scaleX(1);
opacity: 0.95;
}
}

@keyframes featuredTextIn {
from {
opacity: 0;
transform: translateY(10px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes priceTick {
from {
opacity: 0;
transform: translateY(8px) scale(0.92);
}

to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: 1ms !important;
}
}

@media (max-width: 820px) {
.menu-app {
padding: 10px;
}

.menu-board {
min-height: auto;
padding: 14px;
}

.menu-board::before,
.menu-board::after {
display: none;
}

.brand-panel {
grid-template-columns: 92px 1fr 92px;
min-height: 120px;
gap: 10px;
}

.dish-photo {
width: 88px;
border-width: 5px;
outline-width: 2px;
}

.brand-castle {
width: 72px;
height: 54px;
border-width: 4px;
font-size: 11px;
}

.brand-lockup h1 {
font-size: 20px;
}

.brand-lockup strong {
font-size: 16px;
}

.category-tabs {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-inline: 0;
}

.active-section {
margin-inline: 0;
padding: 12px;
}

.menu-grid {
grid-template-columns: 1fr;
}

.feature-panel {
min-height: 190px;
}
}

@media (max-width: 520px) {
.brand-panel {
grid-template-columns: 1fr;
text-align: center;
}

.dish-photo {
display: none;
}

.category-tabs {
grid-template-columns: 1fr;
}

.section-title {
display: block;
}

.section-actions {
display: grid;
gap: 8px;
margin-top: 10px;
}

.search-box {
grid-template-columns: 24px 1fr;
}

.section-title h2 {
font-size: 30px;
}

.table-head,
.menu-item {
grid-template-columns: minmax(0, 1fr) 64px 64px;
gap: 6px;
}

.item-name strong {
font-size: 16px;
}

.menu-item b {
font-size: 18px;
}
}

@media (max-width: 820px) {
.sparkle-field,
.light-ribbons,
.feature-glow {
display: none;
}

.menu-board,
.dish-photo,
.brand-castle,
.brand-lockup strong {
animation: none !important;
}
}
/* ===== Disable ALL Animations For Testing ===== */

*,
*::before,
*::after{
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    filter: none !important;
    backdrop-filter: none !important;
    scroll-behavior: auto !important;
}

.sparkle-field,
.light-ribbons,
.feature-glow{
    display:none !important;
}

.menu-board,
.feature-panel,
.menu-item,
.category-tab,
.brand-castle,
.dish-photo,
.brand-lockup strong,
.active-section,
.section-title h2{
    animation:none !important;
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
}

.menu-item{
    opacity:1 !important;
    visibility:visible !important;
}

.menu-board{
    transform:none !important;
}