:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #30231b;
  background: #f4eadb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --cream: #fffaf1;
  --paper: #fffdf8;
  --espresso: #2d1d17;
  --coffee: #523529;
  --muted: #78675c;
  --caramel: #d69450;
  --caramel-light: #f6dfbd;
  --green: #3d6a52;
  --line: rgba(73, 48, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f4eadb;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.92) 0, transparent 27rem),
    radial-gradient(circle at 90% 88%, rgba(210, 153, 94, 0.2) 0, transparent 25rem),
    linear-gradient(145deg, #f8f0e4 0%, #eee0cc 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.portal-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.portal-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(91, 58, 40, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.96), rgba(255, 250, 241, 0.96)),
    radial-gradient(rgba(84, 51, 34, 0.11) 0.55px, transparent 0.6px);
  background-size: auto, 6px 6px;
  box-shadow:
    0 30px 80px rgba(78, 48, 28, 0.14),
    0 4px 14px rgba(78, 48, 28, 0.06);
}

.portal-card::before {
  position: absolute;
  z-index: -1;
  top: -92px;
  right: -92px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 175, 116, 0.22), rgba(226, 175, 116, 0));
  content: "";
}

.hero {
  position: relative;
  padding-right: 64px;
}

.brand-mark {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(87, 53, 36, 0.09);
  border-radius: 17px;
  color: var(--coffee);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 9px 24px rgba(67, 43, 29, 0.08);
  transform: rotate(2deg);
}

.brand-mark svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow,
.section-label {
  margin: 0;
  color: #8a5a36;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 106, 82, 0.1);
}

h1 {
  max-width: 12ch;
  margin: 16px 0 7px;
  overflow-wrap: anywhere;
  color: var(--espresso);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.35rem, 10vw, 3.05rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.welcome {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.deal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  color: #fffaf3;
  background:
    radial-gradient(circle at 90% 0%, rgba(231, 175, 112, 0.22), transparent 52%),
    linear-gradient(135deg, #35221b 0%, #4f3327 100%);
  box-shadow: 0 16px 32px rgba(53, 34, 27, 0.17);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.deal-card .section-label {
  color: #e9bd83;
}

.deal-card h2 {
  max-width: 16ch;
  margin: 6px 0 3px;
  overflow-wrap: anywhere;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.35rem, 6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.deal-note {
  margin: 0;
  color: rgba(255, 250, 243, 0.68);
  font-size: 0.76rem;
}

.deal-price {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 12px 10px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: #302017;
  background: linear-gradient(145deg, #f8e6c9, #eabf87);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.62);
  font-size: 1.24rem;
  line-height: 1;
  text-align: center;
}

.details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 10px 28px rgba(69, 44, 28, 0.05);
  transition: border-color 180ms ease, transform 180ms ease;
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}

.detail-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #7b4e31;
  background: var(--caramel-light);
}

.detail-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  color: var(--muted);
  font-size: 0.77rem;
}

.detail-copy strong {
  overflow-wrap: anywhere;
  color: var(--espresso);
  font-size: 1.04rem;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(61, 106, 82, 0.08);
  font-size: 0.69rem;
  font-weight: 800;
  white-space: nowrap;
}

.open-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.announcement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 9px 9px;
  padding: 12px 13px;
  border-radius: 15px;
  color: #644529;
  background: linear-gradient(100deg, rgba(246, 223, 189, 0.78), rgba(250, 237, 216, 0.72));
}

.announcement-icon {
  color: #b66f31;
  font-size: 0.92rem;
  line-height: 1.45;
}

.announcement p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-top: 14px;
  padding: 10px 5px 10px 13px;
  border-radius: 17px;
  color: var(--espresso);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.social-link > span:first-child {
  display: grid;
  gap: 2px;
}

.social-link small {
  color: var(--muted);
  font-size: 0.75rem;
}

.social-link strong {
  font-size: 0.94rem;
}

.social-link .arrow {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 1.03rem;
  transition: transform 160ms ease, background-color 160ms ease;
}

.connect-area {
  margin-top: 8px;
}

.connect-button {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 9px 15px;
  overflow: hidden;
  border: 0;
  border-radius: 19px;
  color: #fffdf8;
  background: linear-gradient(135deg, #2e1d17 0%, #4d3024 100%);
  box-shadow:
    0 14px 28px rgba(50, 30, 21, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
}

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

.connect-button:hover::after {
  transform: translateX(115%);
}

.button-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  color: #eed1a9;
  background: rgba(255, 255, 255, 0.09);
}

.button-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.button-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.connect-button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 7px 16px rgba(50, 30, 21, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
}

.connect-button:disabled {
  cursor: wait;
}

.connect-button.is-connecting .button-icon {
  animation: soft-pulse 800ms ease-in-out infinite alternate;
}

.connect-button.is-connected {
  background: linear-gradient(135deg, #335b46, #3f7257);
  cursor: default;
}

.connect-note,
.connect-result {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.connect-result {
  color: var(--green);
  font-weight: 750;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  color: #95867a;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.footer span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7b6a9;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  min-height: 44px;
  margin: 12px auto 0;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--coffee);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 7px 18px rgba(69, 44, 28, 0.05);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.language-icon {
  color: #9b6944;
}

.language-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-toggle:active {
  transform: scale(0.97);
}

.reveal {
  animation: enter 440ms both cubic-bezier(0.22, 0.72, 0.28, 1);
}

.deal-card.reveal { animation-delay: 55ms; }
.details.reveal { animation-delay: 95ms; }
.social-link.reveal { animation-delay: 125ms; }
.connect-area.reveal { animation-delay: 150ms; }
.footer.reveal { animation-delay: 175ms; }
.language-toggle.reveal { animation-delay: 195ms; }

@keyframes enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soft-pulse {
  to { transform: scale(0.88); opacity: 0.62; }
}

@media (hover: hover) {
  .deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 36px rgba(53, 34, 27, 0.2);
  }

  .details:hover {
    transform: translateY(-1px);
    border-color: rgba(73, 48, 35, 0.16);
  }

  .social-link:hover {
    color: #8d552f;
    background: rgba(255, 255, 255, 0.44);
    transform: translateX(2px);
  }

  .social-link:hover .arrow {
    background: #f4dfc2;
    transform: rotate(4deg);
  }

  .connect-button:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 17px 32px rgba(50, 30, 21, 0.25), inset 0 1px rgba(255, 255, 255, 0.12);
  }

  .language-toggle:hover {
    color: #7e4e2f;
    border-color: rgba(73, 48, 35, 0.17);
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
  }
}

.connect-button:focus-visible,
.social-link:focus-visible,
.language-toggle:focus-visible {
  outline: 3px solid rgba(214, 148, 80, 0.55);
  outline-offset: 3px;
}

html[dir="rtl"] .hero {
  padding-right: 0;
  padding-left: 64px;
}

html[dir="rtl"] .brand-mark {
  right: auto;
  left: 0;
  transform: rotate(-2deg);
}

@media (hover: hover) {
  html[dir="rtl"] .social-link:hover {
    transform: translateX(-2px);
  }
}

@media (max-width: 370px) {
  .portal-shell {
    padding: 10px;
  }

  .portal-card {
    padding: 21px 18px;
    border-radius: 28px;
  }

  .hero {
    padding-right: 54px;
  }

  html[dir="rtl"] .hero {
    padding-right: 0;
    padding-left: 54px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .brand-mark svg {
    width: 25px;
  }

  h1 {
    margin-top: 13px;
    font-size: 2.28rem;
  }

  .deal-card {
    gap: 12px;
    padding: 17px;
  }

  .deal-note {
    display: none;
  }

  .deal-price {
    min-width: 64px;
    font-size: 1.08rem;
  }

  .hours-row {
    gap: 9px;
    padding: 13px;
  }

  .open-status {
    padding: 6px 7px;
    font-size: 0.63rem;
  }
}

@media (min-width: 700px) {
  .portal-shell {
    padding-block: 42px;
  }
}

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