*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #0c0c0c;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  cursor: none;
}

body.show-cursor {
  cursor: default;
}

body.show-cursor .slide-fs-btn {
  opacity: 1;
  pointer-events: auto;
}

.fs-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.8rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.fs-gate.is-hidden {
  display: none;
}

.fs-gate-btn {
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  background: #ff9800;
  color: #111;
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fs-gate-btn:hover {
  background: #ffa726;
}

.slide-app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #0c0c0c;
  overflow: hidden;
}

.slide-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(0.7rem, env(safe-area-inset-top))
    max(0.9rem, env(safe-area-inset-right)) 0.5rem
    max(0.9rem, env(safe-area-inset-left));
  pointer-events: none;
}

.slide-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: clamp(1.35rem, 4vmin, 2.4rem);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.slide-brand-logo {
  width: clamp(52px, 8vmin, 88px);
  height: clamp(52px, 8vmin, 88px);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.slide-fs-btn {
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #ff9800;
  color: #111;
  font-size: clamp(0.8rem, 1.8vmin, 1rem);
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.slide-fs-btn:hover {
  background: #ffa726;
}

.slide-meta {
  font-size: clamp(1.1rem, 2.8vmin, 1.6rem);
  font-weight: 700;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  min-width: 5.5rem;
  text-align: right;
}

.slide-stage {
  position: absolute;
  inset: 0;
}

.slide-card {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.slide-card.is-fading {
  opacity: 0;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #111;
}

.slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: 48%;
  padding: 3rem clamp(1.2rem, 4vw, 3rem)
    max(1.4rem, env(safe-area-inset-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.78) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.slide-category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.95);
  color: #111;
  font-size: clamp(1.05rem, 2.8vmin, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.slide-name {
  margin: 0 0 0.55rem;
  font-size: clamp(2.2rem, 7.5vmin, 5rem);
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.slide-price {
  font-size: clamp(2.4rem, 7.5vmin, 4.8rem);
  font-weight: 800;
  color: #ff9800;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
  line-height: 1.05;
}

.slide-price-multi {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 3.2vw, 2.4rem);
  align-items: flex-end;
}

.slide-price-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.slide-price-label {
  font-size: clamp(1rem, 2.5vmin, 1.45rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slide-price-value {
  font-size: clamp(2rem, 6vmin, 4rem);
  font-weight: 800;
  color: #ff9800;
  line-height: 1;
}

.slide-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  max-width: 90vw;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 152, 0, 0.45);
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.slide-toast[hidden] {
  display: none;
}

body:not(.is-fullscreen) .slide-overlay {
  padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
}
