/* ===================================================================
   YumYummy — /open deep-link bridge styles
   Self-contained (does not depend on the LP stylesheet) so this page
   renders correctly even if the main CSS bundle is blocked. Mirrors
   the brand palette from docs/index.html.
   =================================================================== */

:root {
  --brand: #B85A3A;
  --brand-dark: #9A4628;
  --ink: #2A2A2A;
  --cream: #F7F1E6;
  --n50: #FAF8F5;
  --n100: #F7F1E6;
  --n200: #EDE4D4;
  --n300: #D8CCB9;
  --n500: #8A7B6B;
  --n600: #5E5145;
  --n700: #3D3228;
  --olive-dark: #5A6A3A;
  --olive-deeper: #4A5A2A;
  --tg-blue: #2AABEE;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-md: 0 4px 8px rgba(42, 28, 14, .08), 0 1px 3px rgba(42, 28, 14, .04);
  --shadow-lg: 0 8px 20px rgba(42, 28, 14, .10), 0 2px 6px rgba(42, 28, 14, .06);
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--n50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.open-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--n200);
  border-radius: 20px;
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 40px;
  height: 40px;
  display: block;
}
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}

.state h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}
.state p {
  color: var(--n600);
  font-size: 15px;
  margin: 0 0 24px;
}

.state.hidden {
  display: none;
}

/* Spinner for the initial "opening" state */
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--n200);
  border-top-color: var(--brand);
  margin: 0 auto 20px;
  animation: spin .9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--brand); }
}

.tg-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--tg-blue);
  color: #FFFFFF;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: #1f95d4;
  text-decoration: none;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:focus-visible {
  outline: 3px solid rgba(42, 171, 238, .35);
  outline-offset: 3px;
}
.btn-primary:active {
  transform: translateY(0);
}
.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tip {
  margin-top: 22px;
  background: var(--n100);
  border: 1px solid var(--n200);
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
}
.tip summary {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--n700);
  font-weight: 500;
  list-style: none;
}
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after {
  content: '＋';
  float: right;
  color: var(--n500);
  font-weight: 400;
}
.tip[open] summary::after { content: '－'; }
.tip ol {
  margin: 0;
  padding: 0 18px 14px 34px;
  color: var(--n600);
  line-height: 1.55;
}
.tip ol li {
  margin-bottom: 6px;
  font-size: 13.5px;
}
.tip a {
  color: var(--brand-dark);
}

.legal {
  margin-top: 22px;
  font-size: 12px;
  color: var(--n500);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.legal a {
  color: var(--n600);
  text-decoration: none;
}
.legal a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 420px) {
  .open-card {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }
  .state h1 { font-size: 22px; }
}
