@font-face {
  font-family: 'NokiaPixel';
  src: local('Courier New');
}

:root {
  --shell-dark: #2b2d26;
  --shell-mid: #46493d;
  --lcd-bg: #9aad55;
  --lcd-bg-dark: #8a9c48;
  --lcd-ink: #26311a;
  --accent: #cfd8b0;
  font-size: 16px;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #111;
  font-family: 'NokiaPixel', 'Courier New', Courier, monospace;
  -webkit-tap-highlight-color: transparent;
}

.phone {
  position: relative;
  overflow: hidden;
  height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--shell-mid), var(--shell-dark) 70%);
  border-left: 1px solid #55584a;
  border-right: 1px solid #1a1b16;
}

.screen-area {
  flex: 7 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 3vh, 20px) clamp(10px, 4vw, 24px) clamp(4px, 1.5vh, 10px);
}

.lcd {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, var(--lcd-bg) 0%, var(--lcd-bg-dark) 100%);
  border-radius: 10px;
  border: 3px solid #1c1d17;
  box-shadow:
    inset 0 0 0 2px #4a5a2c,
    inset 0 2px 14px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status-bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--lcd-ink);
  font-weight: bold;
  border-bottom: 1px solid rgba(38, 49, 26, 0.25);
}

.hub {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--lcd-ink);
  text-align: center;
}

.logo {
  margin: 0 0 4px;
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  letter-spacing: 3px;
}

.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lcd-ink);
  background: rgba(38, 49, 26, 0.06);
  border: 2px solid var(--lcd-ink);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}

.cart:active {
  transform: translateY(2px);
  background: rgba(38, 49, 26, 0.16);
}

.cart-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cart-title {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.cart-sub {
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  opacity: 0.75;
  margin-top: 2px;
}

.cart-arrow {
  flex: 0 0 auto;
  font-size: 0.8rem;
  opacity: 0.7;
}

.hint {
  margin: 6px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.controls-area {
  flex: 3 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px clamp(20px, 8vw, 44px) max(10px, env(safe-area-inset-bottom));
}

.footer-note {
  margin: 0;
  text-align: center;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  line-height: 1.6;
}

@media (min-width: 480px) and (min-height: 700px) {
  :root { font-size: 18px; }
}
