/* ===========================================
   PAGE: Teacup (loaded after style.css)
   Laid out like the BiteMap page. The hero is the reading nook from the app:
   the empty spots wait as silhouettes with a leaf price, and tapping one spends
   leaves to place it, as on the app's home screen. Light the fire and the room
   warms up.
   =========================================== */

.tc-hero {
  --bg: #2B2321;
  --glow: rgba(176, 108, 58, 0.42);
  --ink: #F1E6D8;
  --muted: #B5A595;
  --honey: #E8B96A;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--font-family, Inter), system-ui, sans-serif;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-10)) var(--gutter) var(--space-12);
  background:
    radial-gradient(ellipse 62% 58% at 70% 50%, var(--glow) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: --glow 0.8s ease;
}

/* Once the fire is lit the glow behind the room turns warmer and brighter. */
.tc-hero--fire { --glow: rgba(214, 120, 52, 0.62); }

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(176, 108, 58, 0.42);
}

.tc-hero__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.tc-hero__copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.tc-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  margin: 0 auto var(--space-5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.tc-hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

.tc-hero__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

.tc-hero__lead em {
  font-style: italic;
  color: var(--honey);
}

.tc-hero__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(241, 230, 216, 0.82);
  max-width: 460px;
  margin: 0 auto var(--space-3);
}

.tc-hero__meta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--space-8);
}

.tc-badges { margin: 0; }

.tc-hero__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.tc-hero__link,
.tc-hero__sep {
  font-size: var(--text-sm);
  color: rgba(241, 230, 216, 0.72);
}

.tc-hero__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(241, 230, 216, 0.3);
  transition: color var(--transition-fast);
}

.tc-hero__link:hover { color: var(--ink); }

/* ----- The stage: the leaf pill, the room, and the button under it. ----- */

.tc-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--rounded);
}

.tc-leaves {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(55, 45, 41, 0.9);
  border: 1px solid #463A35;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  position: absolute;
  top: 1.5%;
  right: 3%;
  z-index: 30;
  margin: 0;
}

.tc-frame { position: relative; }

.tc-leaves__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3E4A36;
  display: grid;
  place-items: center;
}

.tc-leaves__icon svg,
.tc-price svg,
.tc-solve svg { display: block; }

.tc-leaves--bump { animation: tc-bump 0.45s ease; }

@keyframes tc-bump {
  40% { transform: scale(1.16); }
}

.tc-room {
  position: relative;
  width: min(86vw, 470px);
  aspect-ratio: 1024 / 1360;
  background: url(/teacup/room/base.webp) center / 100% 100% no-repeat;
}

.tc-item,
.tc-spot,
.tc-cat {
  position: absolute;
  display: block;
}

.tc-item {
  height: auto;
  pointer-events: none;
}

.tc-item--pop { animation: tc-pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }

@keyframes tc-pop {
  from { opacity: 0; transform: translateY(-14%) scale(0.7); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* An empty spot: a silhouette of the item, with its price on top. */
.tc-spot {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tc-spot__fill,
.tc-spot__rim {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.tc-spot__fill { background: #1E1410; opacity: 0.42; }
.tc-spot__rim { background: #F1E6D8; opacity: 0.6; }

.tc-spot--ready .tc-spot__fill { background: var(--honey); opacity: 0.32; }
.tc-spot--ready .tc-spot__rim { background: var(--honey); opacity: 0.95; }

.tc-spot--ready { animation: tc-breathe 2.4s ease-in-out infinite; }

@keyframes tc-breathe {
  50% { filter: brightness(1.25); }
}

.tc-spot:hover .tc-spot__fill { opacity: 0.55; }

.tc-spot:focus-visible { outline: none; }
.tc-spot:focus-visible .tc-price { outline: 3px solid #fff; outline-offset: 2px; }

.tc-price {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: #F1E6D8;
  background: rgba(43, 35, 33, 0.88);
  border: 1px solid #463A35;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.tc-spot--ready .tc-price {
  color: #3E2E1F;
  background: var(--honey);
  border-color: rgba(247, 227, 181, 0.7);
}

.tc-spot--short .tc-price { animation: tc-shake 0.4s ease; }

@keyframes tc-shake {
  25% { transform: translate(calc(-50% - 4px), -50%); }
  75% { transform: translate(calc(-50% + 4px), -50%); }
}

/* The house cat, sitting on the rug once her basket is in. */
.tc-cat {
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: tc-breath 3.6s ease-in-out infinite;
}

.tc-cat img { width: 100%; height: auto; display: block; }

.tc-cat::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -5%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 10, 5, 0.75), rgba(20, 10, 5, 0) );
  z-index: -1;
}

.tc-cat--hop { animation: tc-hop 0.55s cubic-bezier(0.3, 0.7, 0.4, 1); }

@keyframes tc-breath {
  50% { transform: scale(1.015, 0.985); }
}

@keyframes tc-hop {
  0% { transform: scale(1.08, 0.9); }
  35% { transform: translateY(-38%) scale(0.96, 1.05); }
  70% { transform: scale(1.06, 0.93); }
  100% { transform: none; }
}

.tc-stage__name {
  margin-top: var(--space-2);
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink);
}

.tc-stage__count {
  margin-left: 8px;
  font-family: var(--rounded);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--honey);
}

.tc-stage__hint {
  min-height: 1.5em;
  margin: var(--space-1) 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(241, 230, 216, 0.75);
  text-align: center;
}

/* Like the app's big button: sage, with a stitched edge. */
.tc-solve {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 18px;
  font-family: var(--rounded);
  font-size: 17px;
  font-weight: 800;
  color: #26331F;
  background: linear-gradient(#BCD0AB, #8FA67E);
  box-shadow: inset 0 -4px 6px rgba(30, 45, 25, 0.25), 0 8px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.tc-solve::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(38, 51, 31, 0.42);
  border-radius: 14px;
  pointer-events: none;
}

.tc-solve:active { transform: scale(0.96); }

.tc-solve:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.tc-solve__plus {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: rgba(38, 51, 31, 0.14);
  font-size: 14px;
}

/* A leaf that floats up when a level is "solved". */
.tc-fly {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  animation: tc-fly 0.8s cubic-bezier(0.4, 0, 0.3, 1) forwards;
}

@keyframes tc-fly {
  from { transform: translate(0, 0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0.2; }
}

/* Phones: the room first, where the eye lands, then the words. */
@media (max-width: 899px) {
  .tc-stage { order: -1; }
  .tc-room { width: min(84vw, 46vh, 400px); }
  .tc-hero { padding-top: calc(var(--nav-height) + var(--space-6)); }
  .tc-hero__inner { gap: var(--space-6); }
  .tc-hero__icon { display: none; }
  .tc-price { font-size: 11px; padding: 2px 6px 2px 4px; }
  .tc-price svg { width: 11px; height: 11px; }
}

@media (min-width: 900px) {
  .tc-hero__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-12);
  }

  .tc-hero__copy { text-align: left; }
  .tc-hero__icon { margin-left: 0; }
  .tc-hero__desc { margin-left: 0; }

  .tc-badges,
  .tc-hero__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-hero { transition: none; }
  .tc-item--pop,
  .tc-cat,
  .tc-cat--hop,
  .tc-spot--ready,
  .tc-leaves--bump,
  .tc-spot--short .tc-price { animation: none; }
  .tc-fly { display: none; }
}

/* ----- Below the hero: the same warm dark, quieter, so the room leads. ----- */

.tc-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.tc-heading {
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #F1E6D8;
  text-align: center;
  margin: 0 0 var(--space-12);
}

.tc-how {
  padding: var(--space-20) var(--gutter);
  background: #241D1B;
}

.tc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.tc-step {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.tc-step__phone {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-6);
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.tc-step__num {
  width: 32px;
  height: 32px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: #E8B96A;
  color: #3E2E1F;
  font-weight: 900;
  font-size: 15px;
  line-height: 32px;
}

.tc-step__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #F1E6D8;
  margin: 0 0 var(--space-2);
}

.tc-step__text,
.tc-list p,
.tc-teach p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(241, 230, 216, 0.7);
  margin: 0;
}

/* Hints that teach: the nudge screen beside the techniques it explains. */
.tc-teach {
  padding: var(--space-20) var(--gutter);
  background: #2B2321;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-teach__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

.tc-teach .tc-heading { margin-bottom: var(--space-5); }

.tc-teach p { font-size: var(--text-md); margin-bottom: var(--space-5); }

.tc-techniques {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-techniques li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #463A35;
  background: #372D29;
  color: #F1E6D8;
  font-size: var(--text-sm);
  font-weight: 600;
}

.tc-teach__phone {
  width: 240px;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.tc-inside {
  padding: var(--space-20) var(--gutter);
  background: #241D1B;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8) var(--space-12);
}

.tc-list li {
  padding-left: var(--space-5);
  border-left: 3px solid #8FA67E;
}

.tc-list h3 {
  font-size: var(--text-md);
  font-weight: 800;
  color: #F1E6D8;
  margin: 0 0 var(--space-2);
}

@media (min-width: 760px) {
  .tc-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .tc-list { grid-template-columns: repeat(2, 1fr); }
  .tc-teach__inner { grid-template-columns: 1.2fr 1fr; gap: var(--space-16); }
  .tc-teach .tc-heading { text-align: left; }
}

@media (min-width: 1000px) {
  .tc-list { grid-template-columns: repeat(3, 1fr); }
}

.faq__help-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
}

/* Short Turkish summary for people who search in Turkish. */
.tc-tr {
  padding: var(--space-16) var(--gutter);
  border-top: 1px solid var(--color-border);
}

.tc-tr h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.tc-tr p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.tc-tr a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grain { opacity: 0.05; }
