/* Outer master frame */
.page-frame {
  width: min(1150px, calc(100% - 2rem));
  margin: 2rem auto;
  padding: 1.5rem;
  background: #161022;
  border: 8px ridge #646BD9;
  position: relative;
}

/* Header Panel */
.header-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  overflow: hidden;
  background-image: url('../images/stars.gif');
  border: 8px ridge #646BD9;
  box-shadow: inset 0 0 0 6px #161022;
}

.logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 8px solid #161022;
}

.logo-box{
  width: 120px;
  height: 100%;
  background: #000;
  border: 8px ridge #646BD9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 6px #161022;
}

.logo-title{
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  text-align: left;
}

.logo-title .citybar {
  color: #646BD9;
}

/* Stack layout */
.home-stack{
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* 2-up on desktop, stack on mobile */
.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .nav-row {
    grid-template-columns: 1fr;
  }
}

/* Dropdown button */
.drop-btn {
  width: 100%;
  background-image: url('../images/stars.gif');
  border: 2px solid #646BD9;
  color: white;
  font-family: inherit;
  font-size: 2rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 6px #161022;
}

.drop-btn:active {
  transform: translateY(1px);
}

.drop-btn:hover {
  border-color: #FF2FCB;
  color: #FF2FCB;
}

.drop-btn:hover .drop-caret {
  color: #FF2FCB;
}

.drop-btn:focus {
  outline: none;
}

.drop-btn:focus-visible {
  outline: 3px solid #FF2FCB;
  outline-offset: 2px;
}

.drop-caret {
  font-size: 1.5rem;
  line-height: 1;
}

/* Dropdown menu (closed by default) */
.drop-menu {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: none;
  transition: height 220ms ease, opacity 160ms ease, transform 200ms ease;
  will-change: height;
}

.drop-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.drop-menu-inner {
  margin-top: 0.5rem;
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 6px #161022;
  transform: translateZ(0);
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

/* Links */
.drop-menu a {
  display: block;
  text-decoration: none;
  color: white;
  padding: 0.75rem 1rem;
  border: 2px solid #646BD9;
  background-image: url('../images/stars.gif');
  text-align: center;
  font-size: 1.7rem;
}

.drop-menu a:focus {
  outline: none;
}

/* Keyboard-only focus style */
.drop-menu a:focus-visible {
  outline: 3px solid #FF2FCB;
  outline-offset: 2px;
}

/* Hover state */
.drop-menu a:hover {
  border-color: #FF2FCB;
  color: #FF2FCB;
}

/* Settings buttons */
.drop-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font: inherit;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

/* Remove default button focus */
.drop-item:focus {
  outline: none;
}

.drop-item[data-state="on"] {
  color: #FF2FCB;
}

#bouncyBall {
  position: fixed;
  left: 40px;
  top: 60%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: url("../images/basketball.gif") center/cover no-repeat;
  cursor: grab;
  z-index: 9500;
  user-select: none;
}

/* Rain layer */
.rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  top: -30px;
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(20deg);
  animation: rain-fall linear forwards;
}

@keyframes rain-fall {
  to { transform: rotate(20deg) translateY(120vh); }
}

/* CRT Scanlines */
body.crt-on::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.65;

  background:
  radial-gradient(ellipse at center,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.25) 100%
  ),
  repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.30) 0px,
    rgba(0,0,0,0.30) 2px,
    rgba(0,0,0,0.0) 2px,
    rgba(0,0,0,0.0) 4px
  );
}

/* Menu section */
.menu-section {
  border: 8px ridge #646BD9;
  background: #161022;
  box-shadow: inset 0 0 0 6px #161022;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider {
  border-bottom: 6px dashed #646BD9;
  margin: 0.75rem 0 1.5rem 0;
}

.menu-section > div {
  width: 100%;
  text-align: center;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.category-heading h2 {
  font-weight: bold;
  font-size: 3.5rem;
}

.category-icon {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.menu-item {
  padding: 1.5rem 0;
}

.mi-top {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.mi-top strong {
  font-size: 2.6rem;
}

.mi-sub {
  font-size: 1.8rem;
  line-height: 1.4;
  opacity: 0.9;
}

.mi-price {
  font-size: 2rem;
}

.menu-item + .menu-item {
  border-top: 2px dashed #646BD9;
  padding-top: 2rem;
}

.menu-section h3 {
  font-size: 3rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem 0;
  color: #FF2FCB;
}

/* Weekday label inside Specials */
.special-day h3 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 2rem 0 1.5rem 0;
  position: relative;
  display: inline-block;
}

.special-day h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 5px;
  background: #ff2fcb;
  box-shadow:
    0 0 6px #ff2fcb,
    0 0 12px #ff2fcb,
    0 0 24px #ff2fcb;
}