/* ---------- Layout ---------- */
main { padding: clamp(12px, 1.5vw, 20px) 0 26px; }

.panel{
  background:rgba(13,20,40,.65);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

h1{
  font-size:clamp(26px,3vw,40px);
  margin:0 0 10px;
}

.lead{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 18px;
}

.section{ margin:26px 0 0; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(231,212,139,.92);
  margin-bottom:10px;
}
.dot{
  width:8px;height:8px;border-radius:99px;
  background:radial-gradient(circle at 35% 35%, rgba(231,212,139,.9), rgba(212,175,55,.35));
  box-shadow:0 0 0 3px rgba(212,175,55,.12);
}

.two-col{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:16px;
}
@media(max-width:900px){
  .two-col{ grid-template-columns:1fr; }
  .two-col > :nth-child(2){ order:-1; }
}

/* ---------- Controls ---------- */
.controls{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.input{
  flex:1;
  min-width:220px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 14px;
  outline:none;
}
.input::placeholder{ color:rgba(183,190,212,.7); }

.btn{
  border:1px solid rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.18), rgba(212,175,55,.08));
  color:var(--text);
  border-radius:16px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:650;
  transition:.15s;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ transform:translateY(-1px); background:linear-gradient(180deg, rgba(212,175,55,.24), rgba(212,175,55,.10)); }
.btn:disabled{
  cursor:not-allowed;
  opacity:.55;
  transform:none;
}
.btn-ghost{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.btn-ghost:hover{ background:rgba(255,255,255,.06); }

.chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  color:var(--muted);
  font-size:13px;
}
.switch{
  appearance:none;
  width:46px;height:28px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  position:relative;
  cursor:pointer;
  outline:none;
}
.switch::after{
  content:"";
  position:absolute;
  top:3px;left:3px;
  width:22px;height:22px;
  border-radius:999px;
  background:rgba(183,190,212,.75);
  transition:.15s;
}
.switch:checked{
  border-color:rgba(212,175,55,.4);
  box-shadow:0 0 0 3px rgba(212,175,55,.10);
}
.switch:checked::after{
  left:21px;
  background:rgba(231,212,139,.9);
}

/* ---------- Stage / Deck ---------- */
.stage{
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.03);
  padding:16px;
  min-height:520px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:hidden; /* clip glow inside rounded border */
}

.stage-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.stage-top .hint{
  color:var(--muted);
  line-height:1.6;
  font-size:13px;
  margin:0;
}
.badge{
  font-size:12px;
  color:rgba(231,212,139,.92);
  border:1px solid rgba(212,175,55,.25);
  background:rgba(212,175,55,.08);
  padding:8px 10px;
  border-radius:999px;
  white-space:nowrap;
}

/* big centered deck */
.deck-area{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 0 28px;
  height:420px;
}

.deck{
  position:relative;
  width:min(320px, 78vw);
  aspect-ratio: 3 / 4;
  height:auto;
  perspective: 1400px;
}

/* stack */
.card-stack{
  position:absolute;
  inset:0;
}
.card-ghost{
  position:absolute;
  inset:0;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(212,175,55,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  opacity:.88;
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}

/* face container */
.card-face{
  position:absolute;
  inset:0;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(212,175,55,.22);
  background:
    radial-gradient(900px 520px at 30% 10%, rgba(212,175,55,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  cursor:pointer;
  transform-style:preserve-3d;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.card-face:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.16), 0 18px 44px rgba(0,0,0,.45);
}

/* flip */
.flip-wrap{ width:100%; height:100%; position:relative; }
.flip-inner{
  width:100%; height:100%;
  transform-style:preserve-3d;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}
.flip-side{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
}
.flip-front{ transform: rotateY(180deg); }
.deck.revealed .flip-inner{ transform: rotateY(180deg); }

/* images */
.flip-side img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background: rgba(0,0,0,.18);
}

/* reversed: rotate the front image only */
.card-face.reversed .flip-front img{ transform: rotate(180deg); }

/* glow hint when ready */
.deck.ready-to-reveal .card-face{
  box-shadow:
    0 0 0 1px rgba(212,175,55,.18),
    0 18px 44px rgba(0,0,0,.45),
    0 0 22px rgba(212,175,55,.16);
}

/* shuffle animation */
.shuffling .card-ghost{ animation: shuffleBig 720ms ease-in-out infinite; }
.shuffling .card-ghost:nth-child(2){ animation-delay: 90ms; }
.shuffling .card-ghost:nth-child(3){ animation-delay: 180ms; }
.shuffling .card-ghost:nth-child(4){ animation-delay: 270ms; }

@keyframes shuffleBig{
  0%   { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
  30%  { transform: translate(calc(var(--dx) + 22px), calc(var(--dy) - 14px)) rotate(calc(var(--rot) + 6deg)); }
  60%  { transform: translate(calc(var(--dx) - 22px), calc(var(--dy) + 14px)) rotate(calc(var(--rot) - 6deg)); }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ---------- Reading box ---------- */
.reading{
  border-top:1px solid var(--line);
  padding-top:12px;
  display:grid;
  gap:10px;
}

.reading h2{
  margin:0;
  font-size:18px;
}

.meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin:0;
}

/* prompt */
.reading-question{ margin: 10px 0 18px; }
.question-box{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
  padding: 12px 14px;
  font-style: italic;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

/* keywords */
.keywords-block{ margin: 10px 0 22px; }
.meaning-title{
  display:block;
  margin: 0 0 12px;              /* <-- fixes "too close" */
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(231,212,139,.85);
}
.kws{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0;
}
.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  color:rgba(183,190,212,.95);
}

/* meaning text + CTA */
.reading-text{
  margin: 6px 0 0;
  line-height: 1.7;
  font-size: 15px;
  color: rgba(255,255,255,.90);
}

.reading-actions{ margin-top: 18px; }

.reading-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.35);
  background:linear-gradient(180deg, rgba(212,175,55,.18), rgba(212,175,55,.08));
  color: rgba(231,212,139,.95);
  text-decoration:none;
  font-weight:650;
  transition:.15s;
}
.reading-link:hover{
  transform: translateY(-1px);
  background:linear-gradient(180deg, rgba(212,175,55,.26), rgba(212,175,55,.12));
  color: rgba(231,212,139,1);
}

/* ---------- Gallery ---------- */
.gallery{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}
@media(max-width:900px){ .gallery{ grid-template-columns:repeat(3, 1fr); } }
@media(max-width:600px){ .gallery{ grid-template-columns:repeat(2, 1fr); } }

.glink{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  overflow:hidden;
  transition:.15s;
}
.glink:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.06);
}
.gthumb{
  aspect-ratio: 3 / 4;
  width:100%;
  background:rgba(255,255,255,.02);
}
.gthumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background: rgba(0,0,0,.18);
}
.gcap{
  padding:10px 10px 12px;
  display:grid;
  gap:4px;
  text-align:center;
  place-items:center;
}
.gcap strong{ font-size:13px; }
.gcap span{ color:var(--muted); font-size:12px;  text-align:center; }

/* Make "Major Arcana (0–21)" link NOT purple/blue */
.section-link{
  color: inherit;
  text-decoration: none;
}
.section-link:visited{ color: inherit; }
.section-link:hover{
  color: rgba(231,212,139,.90);
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--accent, #d4b4ff);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 20px;
  font-size: 18px;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  opacity: 1;
}

.faq-body {
  padding: 0 20px 18px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  animation: fadeIn 0.25s ease forwards;
}
.faq-body p { margin: 0; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .faq-item summary { padding: 14px 16px; font-size: 14px; }
  .faq-body { padding: 0 16px 16px 16px; }
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--line);
  padding-top:20px;
  color:var(--muted);
  font-size:13px;
  margin-top:34px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:18px;
  padding:18px 0 28px;
}
.footer-col h4{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.02em;
  color:var(--text);
}
.footer-links{ display:grid; gap:8px; }
.footer-links a{ color:var(--muted); text-decoration:none; }
.footer-links a:hover{ color:white; }

.footer-bottom{
  border-top:1px solid var(--line);
  padding:14px 0 6px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:var(--muted);
}
@media(max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- small helpers ---------- */
small.muted{ color:var(--muted); }
hr.sep{ border:none; border-top:1px solid var(--line); margin:10px 0; }
code{ color:rgba(231,212,139,.92); }

.section-link {
  color: rgba(231,212,139,.92);   /* arany */
  text-decoration: none;
  position: relative;
  font-weight: 700;
  transition: .2s ease;
}

/* underline animation */
.section-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: rgba(231,212,139,.85);
  transition: width .25s ease;
}

.section-link:hover::after {
  width: 100%;
}

.section-link:hover {
  color: rgba(231,212,139,1);
}

/* visited ne legyen lila */
.section-link:visited {
  color: rgba(231,212,139,.92);
}

.section-link::before {
  content: "↗";
  margin-right: 8px;
  font-size: 14px;
  opacity: .6;
}

/* Breadcrumbs / top links */
.breadcrumbs{
  font-size: 14px;
  opacity: .9;
  margin: 0 0 10px;
}

.breadcrumbs a{
  color: rgba(233, 202, 128, .95);   /* soft gold */
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 202, 128, .28);
  padding-bottom: 1px;
  transition: opacity .15s ease, border-color .15s ease, color .15s ease;
}

.breadcrumbs a:hover{
  opacity: 1;
  border-bottom-color: rgba(233, 202, 128, .70);
}

.breadcrumbs a:visited{
  color: rgba(233, 202, 128, .95);   /* kill purple visited */
}

.breadcrumbs a:focus-visible{
  outline: 2px solid rgba(233, 202, 128, .55);
  outline-offset: 2px;
  border-bottom-color: transparent;
  border-radius: 6px;
}

.breadcrumbs .sep{
  opacity: .55;
  padding: 0 6px;
}

/* Major Arcana link (the inline one + the H2 link) */
.section-link,
a.major-link{
  color: rgba(233, 202, 128, .95);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 202, 128, .28);
  padding-bottom: 1px;
  transition: opacity .15s ease, border-color .15s ease;
}

.section-link:hover,
a.major-link:hover{
  border-bottom-color: rgba(233, 202, 128, .75);
}

.section-link:visited,
a.major-link:visited{
  color: rgba(233, 202, 128, .95);
}

.section-link:focus-visible,
a.major-link:focus-visible{
  outline: 2px solid rgba(233, 202, 128, .55);
  outline-offset: 2px;
  border-bottom-color: transparent;
  border-radius: 6px;
}


/* ===== Layout ===== */
.oc-wrap { padding: 22px; }
.oc-title { margin: 0 0 8px; }
.oc-lead { margin: 0 0 18px; }
.oc-pane { min-width: 0; }

/* Love note block */
.oc-love-note{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  margin: 0 0 16px;
  line-height: 1.55;
}

/* Love prompts list */
.oc-love-q{
  margin: 0;
  padding-left: 18px;
}
.oc-love-q li{ margin: 4px 0; }

/* ===== ONE STAGE =====
   - before pick: 1 column (deck only)
   - after pick: 50/50 */
.oc-stage{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:start;
}
.oc-stage.is-picked{
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px){
  .oc-stage,
  .oc-stage.is-picked{
    grid-template-columns: 1fr;
  }
  .oc-pane-right{ order: 2; }
  .oc-pane-left{ order: 1; }
}

/* hide right pane until pick */
.oc-pane-right{ display:none; }
.oc-stage.is-picked .oc-pane-right{ display:block; }

/* ===== topbar (compact) ===== */
.oc-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.oc-hint{ max-width: 720px; line-height: 1.35; }

.oc-controls{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ===== buttons ===== */
.oc-btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.oc-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.oc-btn:active{ transform:none; }
.oc-btn[disabled]{ opacity: .55; cursor: default; transform:none; }
.oc-btn-ghost{ background: rgba(255,255,255,0.02); }

/* LOVE accent button (subtle, not loud) */
.oc-btn-love{
  border-color: rgba(255, 175, 190, 0.32);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.oc-btn-love:hover{
  border-color: rgba(255, 205, 160, 0.34);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

/* ===== switch ===== */
.oc-switch{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  cursor:pointer;
  user-select:none;
}
.oc-switch input{
  position:absolute;
  opacity:0;
  width:1px; height:1px;
}
.oc-switch-ui{
  width: 44px; height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  position:relative;
  flex: 0 0 auto;
}
.oc-switch-ui::after{
  content:"";
  position:absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  transition: transform .18s ease;
}
.oc-switch input:checked + .oc-switch-ui::after{ transform: translateX(20px); }
.oc-switch-txt{ white-space:nowrap; }

.oc-switch-love{
  border-color: rgba(255, 175, 190, 0.26);
}

/* status pill */
.oc-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  font-weight: 900;
  letter-spacing:.2px;
  min-width: 72px;
}
.oc-pill-love{
  border-color: rgba(255, 175, 190, 0.22);
}

/* ===== READING MODE TOPBAR (after pick) ===== */
.oc-stage.is-picked .oc-controls > *:not(#btnReset){
  display:none !important;
}

/* ===== READING MODE CTA – Warm Love Gold/Rose ===== */
.oc-stage.is-picked #btnReset{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding: 8px 16px;
  font-weight: 650;
  letter-spacing: .3px;
  border-radius: 999px;

  color: rgba(255, 220, 170, 0.92);
  background: transparent;

  border: 1px solid rgba(255, 170, 180, 0.42);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: all .18s ease;
}
.oc-stage.is-picked #btnReset:hover{
  background: rgba(255, 170, 180, 0.10);
  border-color: rgba(255, 220, 170, 0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
  transform: translateY(-1px);
}
.oc-stage.is-picked #btnReset:active{ transform: translateY(0); }
.oc-stage.is-picked .oc-hint{ opacity: .55; }

/* ===== deck container ===== */
.oc-deck{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  padding: 12px;
  width: 100%;
}
.oc-deck-love{
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255, 170, 180, 0.10), rgba(0,0,0,0) 60%),
    radial-gradient(900px 520px at 70% 10%, rgba(255, 220, 170, 0.08), rgba(0,0,0,0) 62%),
    rgba(255,255,255,0.02);
}
.oc-subhint{ margin-top: 10px; }

/* ===== FAN AREA (DECK MODE) ===== */
.oc-fanWrap{
  position: relative;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -80px 160px rgba(0,0,0,0.35);

  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 14px;
}

/* Love glow background (different from other tools) */
.oc-fanWrap-love{
  background:
    radial-gradient(900px 520px at 50% 62%, rgba(255, 160, 185, 0.14), rgba(0,0,0,0) 60%),
    radial-gradient(1200px 560px at 52% 50%, rgba(255, 220, 170, 0.10), rgba(255,255,255,0.01)),
    radial-gradient(800px 420px at 20% 30%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%);
}

.oc-fanWrap::before{
  content: "Pick one card for love";
  position:absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255, 180, 190, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  pointer-events:none;
}
.oc-fanWrap::after{
  content: "Be honest • Be gentle • Click to reveal";
  position:absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  pointer-events:none;
}

@media (max-width: 1200px){ .oc-fanWrap{ height: 500px; } }
@media (max-width: 980px){ .oc-fanWrap{ height: 460px; } }
@media (max-width: 560px){
  .oc-fanWrap{ height: 420px; padding: 14px 10px; }
  .oc-fanWrap::before{ top: 12px; padding: 9px 12px; }
  .oc-fanWrap::after{ top: 46px; font-size: 12px; }
}

.oc-fan{
  position: relative;
  width: min(980px, 100%);
  height: 480px;
  transform-origin: 50% 65%;
  user-select:none;
  filter: drop-shadow(0 22px 60px rgba(0,0,0,0.45));
}
@media (max-width: 980px){ .oc-fan{ height: 440px; } }
@media (max-width: 560px){ .oc-fan{ height: 400px; } }

.oc-fcard{
  position:absolute;
  left: 50%;
  width: 168px;
  aspect-ratio: 2 / 3;
  transform-origin: 50% 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  outline-offset: 4px;
  transition: transform .16s ease, filter .16s ease, opacity .24s ease;
  z-index: 1;
  bottom: 110px;
}
@media (max-width: 980px){ .oc-fcard{ width: 152px; bottom: 92px; } }
@media (max-width: 560px){ .oc-fcard{ width: 138px; bottom: 78px; } }

/* Love focus outline */
.oc-fcard:focus-visible{ outline: 2px solid rgba(255, 170, 180, 0.55); }

.oc-cardbox{
  width:100%;
  height:100%;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 56px rgba(0,0,0,.28);
  position:relative;
  background: rgba(255,255,255,0.03);
  perspective: 900px;
}
.oc-flip{
  position:absolute; inset:0;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.85,.2,1);
}
.oc-side{ position:absolute; inset:0; backface-visibility:hidden; }
.oc-side img{ width:100%; height:100%; object-fit:cover; display:block; }
.oc-back{ transform: rotateY(0deg); }
.oc-front{ transform: rotateY(180deg); }

.oc-fcard:hover{
  z-index: 80;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.24));
}

.oc-has-pick .oc-fcard:not(.oc-picked){
  opacity: 0;
  pointer-events:none;
  filter: blur(2px);
}
.oc-picked{ z-index: 200; }
.oc-picked .oc-flip{ transform: rotateY(180deg); }
.oc-has-pick .oc-picked{
  transform: translateX(-50%) rotate(0deg) translateY(-10px) scale(1.25) !important;
}

/* ===== REVEAL MODE ===== */
.oc-reveal{ display:none; }
.oc-stage.is-picked .oc-fanWrap{ display:none; }
.oc-stage.is-picked #ocSubhint{ display:none; }
.oc-stage.is-picked .oc-reveal{ display:block; }

.oc-reveal{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  padding: 16px;
}

/* Love reveal card background */
.oc-reveal-love{
  background:
    radial-gradient(900px 520px at 50% 45%, rgba(255, 160, 185, 0.12), rgba(0,0,0,0) 62%),
    radial-gradient(900px 520px at 80% 20%, rgba(255, 220, 170, 0.10), rgba(0,0,0,0) 65%),
    rgba(255,255,255,0.02);
}

.oc-revealCard{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items:start;
}
.oc-revealMedia{
  width: 100%;
  display:flex;
  justify-content:center;
}
.oc-revealMedia img{
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 56px rgba(0,0,0,.34);
}
.oc-revealMeta{ text-align:center; }
.oc-revealTitle{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}
.oc-revealSub{ margin-top: 6px; }
.oc-revealLink{ margin-top: 12px; }

@media (max-width: 980px){
  .oc-revealMedia img{ width: min(320px, 100%); }
}

/* ===== reading panel ===== */
.oc-reading{
  padding: 18px;
  border-radius: 18px;
}
.oc-reading-love{
  border: 1px solid rgba(255, 180, 190, 0.10);
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(255, 160, 185, 0.08), rgba(0,0,0,0) 60%),
    rgba(255,255,255,0.02);
}
@media (min-width: 980px){
  .oc-reading{
    position: sticky;
    top: 16px;
  }
}
.oc-r-title{ margin:0; }
.oc-r-meta{ margin:8px 0 0; }
.oc-reading p, .oc-reading div{
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ===== FAQ (visible) ===== */
.oc-faq{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.oc-faq-title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.oc-faq-grid{
  display:grid;
  gap: 10px;
}

.oc-faq-item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
}

.oc-faq-item > summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.oc-faq-item > summary::-webkit-details-marker{ display:none; }

.oc-faq-item > summary::after{
  content:"+";
  font-weight: 900;
  color: rgba(255, 220, 170, 0.85);
  border: 1px solid rgba(255, 180, 190, 0.26);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.oc-faq-item[open] > summary::after{ content:"–"; }

.oc-faq-body{
  padding: 0 14px 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== MORE TOOLS ===== */
.oc-more{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.oc-more-title{
  margin: 0 0 6px;
  font-weight: 900;
}

.oc-more-lead{
  margin: 0 0 14px;
}

.oc-more-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.oc-more-card{
  display:block;
  padding: 16px;
  border-radius: 18px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: all .18s ease;
}

.oc-more-card:hover{
  background: rgba(255, 170, 180, 0.06);
  border-color: rgba(255, 180, 190, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.oc-more-name{
  font-weight: 800;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.95);
}

.oc-more-desc{
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* Hint swap: desktop vs mobile */
.oc-hint-mobile{ display:none; }
@media (max-width: 760px){
  .oc-hint-desktop{ display:none; }
  .oc-hint-mobile{ display:inline; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  .oc-flip{ transition: none !important; }
  .oc-btn, .oc-more-card, .oc-fcard{ transition: none !important; }
  .oc-fcard:hover{ transform: none !important; }
}

.oc-reading a.major-link{
  color: rgba(255, 220, 170, 0.92);
  text-decoration: none;
  font-weight: 700;
}
.oc-reading a.major-link:hover,
.oc-reading a.major-link:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oc-reading a.major-link::after{
  content: " →";
  opacity: .85;
}
.oc-reading .major-link{
  display:inline-block;
  margin-top: 10px;
}
.oc-reading hr,
.oc-reading .divider{
  border-color: rgba(255,255,255,0.10);
}
.oc-reading a.major-link:focus-visible{
  outline: 2px solid rgba(255, 170, 180, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Mobile topbar cleanup (before pick) ===== */
@media (max-width: 560px){
  .oc-topbar{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .oc-hint{
    max-width: none;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    line-height: 1.35;
  }

  .oc-controls{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  #btnShuffle, #btnReset{
    flex: 1 1 auto;
    min-width: 0;
  }

  .oc-switch{
    width: 100%;
    justify-content: space-between;
  }

  .oc-pill{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Optional: tighter topbar after pick on mobile too ===== */
@media (max-width: 560px){
  .oc-stage.is-picked .oc-topbar{
    flex-direction: row;
    align-items: center;
  }
  .oc-stage.is-picked .oc-hint{
    display: none;
  }
  .oc-stage.is-picked .oc-controls{
    justify-content: flex-end;
  }
}

@media (max-width: 560px){
  #btnShuffle, #btnReset{ flex: 1 1 auto; }

  .oc-switch{
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 auto;
    justify-content: center !important;
  }

  .oc-controls{ justify-content: center !important; }
}

/* --- FIX: prevent ::before / ::after overlap on narrow screens --- */
.oc-fanWrap::before,
.oc-fanWrap::after{
  max-width: calc(100% - 24px);
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

/* Mobile: remove translate centering, give more vertical spacing */
@media (max-width: 560px){
  .oc-fanWrap::before{
    left: 12px;
    right: 12px;
    transform: none;
    font-size: 13px;
    padding: 8px 10px;
  }

  .oc-fanWrap::after{
    left: 12px;
    right: 12px;
    transform: none;
    top: 74px;          /* key: push it down so wrapped title never collides */
    font-size: 11.5px;
  }
}
@media (max-width: 560px){
  .oc-fanWrap::after{
    content: "Be honest • Be gentle • Tap to reveal";
  }
}

/* Share block */
.oc-share{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.oc-share h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:rgba(255,255,255,.92);
  letter-spacing:.3px;
}

/* Share buttons */
.oc-share .bm-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  color:rgba(255,255,255,.92);
  transition:all .18s ease;
}

.oc-share .bm-chip:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.25);
  transform:translateY(-1px);
}

/* small screens */
@media (max-width:480px){
  .oc-share .bm-chip{
    font-size:13px;
    padding:7px 12px;
  }
}


.oc-guide{
  margin-top: 34px;
}

.oc-guide-title{
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}

.oc-guide-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.oc-guide-item{
  padding: 18px;
  border-radius: 18px;
}

.oc-guide-item h3{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.oc-guide-item p{
  margin: 0;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 980px){
  .oc-guide-grid{
    grid-template-columns: 1fr;
  }

  .oc-guide-title{
    font-size: 24px;
  }
}

.oc-subhint{
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}


/* =========================================================
   TOOL OFFER BOX — shared style for all tarot tools
   ========================================================= */

.tool-offer-box{
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(130, 210, 255, 0.14);
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(130, 210, 255, 0.08), rgba(0,0,0,0) 60%),
    radial-gradient(700px 420px at 80% 10%, rgba(160, 235, 210, 0.06), rgba(0,0,0,0) 62%),
    rgba(255,255,255,0.025);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 14px 34px rgba(0,0,0,0.18);
}

.tool-offer-box p{
  margin: 0 0 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

.tool-offer-box p:last-child{
  margin-bottom: 0;
}

.tool-offer-box strong{
  color: rgba(255,255,255,0.96);
  font-weight: 800;
}

.tool-offer-box hr{
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
  margin: 16px 0 !important;
}

/* ===== gold links like the other top links ===== */
.tool-offer-box a,
.tool-offer-box a:visited,
.tool-offer-box a:active{
  color: rgba(233, 202, 128, 0.95) !important;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(233, 202, 128, 0.28);
  padding-bottom: 1px;
  transition:
    color .18s ease,
    border-color .18s ease,
    opacity .18s ease,
    text-shadow .18s ease;
}

.tool-offer-box a:hover{
  color: rgba(233, 202, 128, 1) !important;
  border-bottom-color: rgba(233, 202, 128, 0.72);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.16);
}

.tool-offer-box a:focus-visible{
  outline: 2px solid rgba(233, 202, 128, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}