/* ==========================================================================
   60jili.homes - mobile-first surface stylesheet
   File   : css/compact-d8f6d3-surface.css
   Prefix : frame8f6d3-  (every class and custom property)
   Palette: #1A1A1A base | #FF7F50 coral | #9966CC amethyst
            #EE82EE violet | #8A2BE2 blueviolet
   Canvas : 320-430px phone-first, centered on wide screens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --frame8f6d3-ink: #1A1A1A;            /* page base */
  --frame8f6d3-ink-deep: #110D14;       /* gutters outside the canvas */
  --frame8f6d3-raise: #241E2B;          /* raised surface */
  --frame8f6d3-raise-2: #2B2436;        /* higher surface */
  --frame8f6d3-coral: #FF7F50;          /* primary action */
  --frame8f6d3-amethyst: #9966CC;       /* secondary surface */
  --frame8f6d3-violet: #EE82EE;         /* highlight / focus */
  --frame8f6d3-blueviolet: #8A2BE2;     /* deep accent */
  --frame8f6d3-text: #F7F3FB;
  --frame8f6d3-dim: #C9BFD6;
  --frame8f6d3-faint: #9C90AE;
  --frame8f6d3-line: rgba(238, 130, 238, 0.18);
  --frame8f6d3-line-soft: rgba(153, 102, 204, 0.22);
  --frame8f6d3-pill: 999px;             /* round buttons */
  --frame8f6d3-card: 6px;               /* square-ish cards */
  --frame8f6d3-head-h: 64px;
  --frame8f6d3-bar-h: 60px;
  --frame8f6d3-gutter: 12px;
  --frame8f6d3-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--frame8f6d3-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.66;
  color: var(--frame8f6d3-text);
  background: var(--frame8f6d3-ink-deep);
  background-image: radial-gradient(circle at 50% -10%, rgba(138, 43, 226, 0.22), transparent 58%);
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a {
  color: var(--frame8f6d3-violet);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--frame8f6d3-coral); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--frame8f6d3-violet);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--frame8f6d3-coral); color: #1A1A1A; }

/* --------------------------------------------------------------------------
   3. Phone canvas
   -------------------------------------------------------------------------- */
.frame8f6d3-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame8f6d3-ink);
  box-shadow: 0 0 48px rgba(138, 43, 226, 0.2);
}

.frame8f6d3-page {
  padding-top: var(--frame8f6d3-head-h);
  /* room for the fixed bottom bar + safe area */
  padding-bottom: calc(var(--frame8f6d3-bar-h) + 30px + env(safe-area-inset-bottom, 0px));
}

.frame8f6d3-wrap { padding: 0 var(--frame8f6d3-gutter); }

@media (min-width: 480px) {
  body { background-image: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.3), transparent 55%), radial-gradient(circle at 50% 100%, rgba(255, 127, 80, 0.08), transparent 60%); }
  .frame8f6d3-shell { border-left: 1px solid var(--frame8f6d3-line-soft); border-right: 1px solid var(--frame8f6d3-line-soft); }
}

/* --------------------------------------------------------------------------
   4. Fixed top bar - asymmetric brand header
   -------------------------------------------------------------------------- */
.frame8f6d3-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(26, 26, 26, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--frame8f6d3-line-soft);
  transition: box-shadow 0.25s ease;
}
.frame8f6d3-top.frame8f6d3-scrolled {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.frame8f6d3-top-in {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--frame8f6d3-head-h);
  padding: 8px 10px 8px 0;
}

/* Brand block eats the left ~58% and carries a diagonal coral seam.
   The asymmetry is the header's signature. */
.frame8f6d3-brand {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: stretch;
  padding: 0 16px 0 12px;
  background: linear-gradient(105deg, rgba(255, 127, 80, 0.14), rgba(138, 43, 226, 0.16) 72%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.frame8f6d3-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(238, 130, 238, 0.35);
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4);
  transform: rotate(-3deg);
}

.frame8f6d3-word {
  display: flex;
  align-items: center;
  min-width: 0;
}
.frame8f6d3-word b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
  color: var(--frame8f6d3-text);
}
.frame8f6d3-word b i {
  font-style: normal;
  color: var(--frame8f6d3-coral);
}

/* Compact header tuning for the narrowest phones (320-359px) */
@media (max-width: 359px) {
  .frame8f6d3-brand { padding: 0 10px 0 10px; gap: 7px; }
  .frame8f6d3-logo { width: 34px; height: 34px; }
  .frame8f6d3-word b { font-size: 17px; }
  .frame8f6d3-btn { padding: 0 10px; font-size: 12px; }
}

/* Action cluster: compact dual-button group + burger */
.frame8f6d3-acts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.frame8f6d3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--frame8f6d3-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.09s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.frame8f6d3-btn:active { transform: scale(0.93); }

.frame8f6d3-btn-hot {
  background: linear-gradient(135deg, var(--frame8f6d3-coral), #ff6a3d);
  color: #241207;
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.36);
}
.frame8f6d3-btn-hot:hover { box-shadow: 0 6px 18px rgba(255, 127, 80, 0.5); color: #241207; }

.frame8f6d3-btn-cool {
  border: 1.5px solid var(--frame8f6d3-amethyst);
  color: var(--frame8f6d3-dim);
  background: rgba(153, 102, 204, 0.08);
}
.frame8f6d3-btn-cool:hover { border-color: var(--frame8f6d3-violet); color: var(--frame8f6d3-text); }

.frame8f6d3-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: var(--frame8f6d3-card);
}
.frame8f6d3-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--frame8f6d3-violet);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.frame8f6d3-burger.frame8f6d3-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--frame8f6d3-coral); }
.frame8f6d3-burger.frame8f6d3-active span:nth-child(2) { opacity: 0; }
.frame8f6d3-burger.frame8f6d3-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--frame8f6d3-coral); }
.frame8f6d3-burger:active { transform: scale(0.9); }

/* --------------------------------------------------------------------------
   5. Layered dropdown menu
   -------------------------------------------------------------------------- */
.frame8f6d3-drop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--frame8f6d3-head-h));
  overflow-y: auto;
  padding: 8px 0 16px;
  background: rgba(36, 30, 43, 0.985);
  border-bottom: 1px solid var(--frame8f6d3-line-soft);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.frame8f6d3-drop.frame8f6d3-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Each layer is staggered to the right: a literal reading of "layered". */
.frame8f6d3-layer {
  margin: 10px 12px 0;
  padding: 8px 12px 10px;
  border-left: 3px solid var(--frame8f6d3-blueviolet);
  border-radius: 0 var(--frame8f6d3-card) var(--frame8f6d3-card) 0;
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.16), rgba(36, 30, 43, 0.2));
}
.frame8f6d3-layer:nth-child(2) { margin-left: 26px; border-left-color: var(--frame8f6d3-amethyst); }
.frame8f6d3-layer:nth-child(3) { margin-left: 40px; border-left-color: var(--frame8f6d3-coral); }

.frame8f6d3-layer-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--frame8f6d3-coral);
  padding: 6px 0 2px;
}

.frame8f6d3-layer a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--frame8f6d3-dim);
  border-bottom: 1px solid rgba(153, 102, 204, 0.12);
}
.frame8f6d3-layer a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frame8f6d3-amethyst);
  flex-shrink: 0;
}
.frame8f6d3-layer a:last-child { border-bottom: 0; }
.frame8f6d3-layer a:hover { color: var(--frame8f6d3-text); }
.frame8f6d3-layer a.frame8f6d3-here { color: var(--frame8f6d3-coral); }
.frame8f6d3-layer a.frame8f6d3-here::before { background: var(--frame8f6d3-coral); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.frame8f6d3-hero {
  padding: 18px var(--frame8f6d3-gutter) 14px;
  background:
    radial-gradient(circle at 82% 8%, rgba(238, 130, 238, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 127, 80, 0.07), transparent 65%);
}

.frame8f6d3-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.5px;
}
.frame8f6d3-title em {
  font-style: normal;
  color: var(--frame8f6d3-coral);
}

.frame8f6d3-lede {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--frame8f6d3-dim);
  max-width: 40ch;
}

.frame8f6d3-duo {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.frame8f6d3-duo .frame8f6d3-btn { flex: 1 1 50%; min-height: 46px; font-size: 13.5px; }

.frame8f6d3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.frame8f6d3-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--frame8f6d3-pill);
  border: 1px solid var(--frame8f6d3-line);
  background: rgba(153, 102, 204, 0.1);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--frame8f6d3-dim);
}
.frame8f6d3-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--frame8f6d3-coral);
}

/* --------------------------------------------------------------------------
   7. Carousel with sliding focus indicator
   -------------------------------------------------------------------------- */
.frame8f6d3-caro {
  position: relative;
  margin: 4px var(--frame8f6d3-gutter) 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--frame8f6d3-line-soft);
  background: var(--frame8f6d3-raise);
}

.frame8f6d3-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.frame8f6d3-slide {
  flex: 0 0 100%;
  position: relative;
}

.frame8f6d3-slide-btn {
  display: block;
  width: 100%;
  text-align: left;
}
.frame8f6d3-slide-btn:active { transform: scale(0.99); }

.frame8f6d3-slide img {
  width: 100%;
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
}

.frame8f6d3-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(17, 13, 20, 0.92) 62%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.frame8f6d3-cap-t {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--frame8f6d3-text);
}

.frame8f6d3-cap-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--frame8f6d3-pill);
  background: linear-gradient(135deg, var(--frame8f6d3-blueviolet), var(--frame8f6d3-amethyst));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.5);
}
.frame8f6d3-cap-btn:active { transform: scale(0.92); }

/* Dots + the pill that slides between them */
.frame8f6d3-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 2px;
}

.frame8f6d3-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(238, 130, 238, 0.22);
  transition: background 0.2s ease, transform 0.09s ease;
}
.frame8f6d3-dot:active { transform: scale(0.85); }
.frame8f6d3-dot.frame8f6d3-on { background: rgba(238, 130, 238, 0.55); }

.frame8f6d3-dotpill {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--frame8f6d3-coral);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Section scaffolding
   -------------------------------------------------------------------------- */
.frame8f6d3-sec { padding: 26px var(--frame8f6d3-gutter) 0; }

.frame8f6d3-kick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--frame8f6d3-coral);
}
.frame8f6d3-kick b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: var(--frame8f6d3-card);
  background: rgba(255, 127, 80, 0.14);
  border: 1px solid rgba(255, 127, 80, 0.4);
  font-size: 10px;
  color: var(--frame8f6d3-coral);
}

.frame8f6d3-h2 {
  margin-top: 8px;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.3px;
}
.frame8f6d3-h2 u {
  text-decoration: none;
  background: linear-gradient(transparent 68%, rgba(255, 127, 80, 0.35) 68%);
}

.frame8f6d3-note { margin-top: 10px; }
.frame8f6d3-note p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--frame8f6d3-dim);
  margin-bottom: 10px;
}
.frame8f6d3-note p:last-child { margin-bottom: 0; }
.frame8f6d3-note strong { color: var(--frame8f6d3-text); font-weight: 600; }
.frame8f6d3-note a {
  color: var(--frame8f6d3-violet);
  border-bottom: 1px dotted rgba(238, 130, 238, 0.55);
  padding: 2px 1px;
}
.frame8f6d3-note a:hover { color: var(--frame8f6d3-coral); border-bottom-color: var(--frame8f6d3-coral); }

/* --------------------------------------------------------------------------
   9. Game grid - mixed large + small tiles
   -------------------------------------------------------------------------- */
.frame8f6d3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-top: 14px;
}

@media (min-width: 375px) {
  .frame8f6d3-grid { grid-template-columns: repeat(5, 1fr); gap: 14px 9px; }
}

.frame8f6d3-tile {
  text-align: center;
  transition: transform 0.09s ease;
}
.frame8f6d3-tile:active { transform: scale(0.93); }
.frame8f6d3-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--frame8f6d3-card);
  border: 1px solid var(--frame8f6d3-line-soft);
  background: var(--frame8f6d3-raise);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.frame8f6d3-tile:hover img {
  border-color: var(--frame8f6d3-violet);
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.35);
}
.frame8f6d3-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--frame8f6d3-dim);
  overflow-wrap: break-word;
  word-break: break-word;
}
.frame8f6d3-tile:hover span { color: var(--frame8f6d3-text); }

/* Feature tile: spans 2x2, caption overlaid on the art */
.frame8f6d3-tile-feature {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--frame8f6d3-card);
  overflow: hidden;
  border: 1px solid rgba(238, 130, 238, 0.3);
  box-shadow: 0 8px 22px rgba(138, 43, 226, 0.3);
  text-align: left;
}
.frame8f6d3-tile-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.frame8f6d3-fname {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  -webkit-line-clamp: unset;
  margin: 0;
  padding: 24px 9px 8px;
  background: linear-gradient(180deg, transparent, rgba(17, 13, 20, 0.92) 66%);
  font-size: 12px;
  font-weight: 800;
  color: var(--frame8f6d3-text);
  text-align: left;
}
.frame8f6d3-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--frame8f6d3-pill);
  background: rgba(255, 127, 80, 0.92);
  color: #241207;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */
.frame8f6d3-quotes { margin-top: 14px; }

.frame8f6d3-quote {
  position: relative;
  padding: 12px 13px 13px 16px;
  margin-bottom: 10px;
  border-radius: var(--frame8f6d3-card);
  border-left: 3px solid var(--frame8f6d3-coral);
  background: var(--frame8f6d3-raise);
}
.frame8f6d3-quote:nth-child(even) { border-left-color: var(--frame8f6d3-amethyst); }

.frame8f6d3-q-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.frame8f6d3-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--frame8f6d3-blueviolet), var(--frame8f6d3-coral));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.frame8f6d3-q-meta { flex: 1 1 auto; min-width: 0; }
.frame8f6d3-q-meta b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--frame8f6d3-text);
}
.frame8f6d3-q-meta small {
  font-size: 10.5px;
  color: var(--frame8f6d3-faint);
}

.frame8f6d3-stars {
  display: inline-flex;
  gap: 1.5px;
  color: var(--frame8f6d3-coral);
}
.frame8f6d3-stars svg { width: 12px; height: 12px; }
.frame8f6d3-stars .frame8f6d3-star-off { color: rgba(238, 130, 238, 0.25); }

.frame8f6d3-q-text {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--frame8f6d3-dim);
}

/* --------------------------------------------------------------------------
   11. Mobile access steps
   -------------------------------------------------------------------------- */
.frame8f6d3-steps {
  margin: 14px 0 4px 4px;
  border-left: 2px solid rgba(153, 102, 204, 0.4);
  padding-left: 14px;
}

.frame8f6d3-step {
  position: relative;
  padding: 0 0 14px;
}
.frame8f6d3-step:last-child { padding-bottom: 2px; }

.frame8f6d3-step-n {
  position: absolute;
  left: -29px;
  top: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--frame8f6d3-ink);
  border: 2px solid var(--frame8f6d3-coral);
  color: var(--frame8f6d3-coral);
  font-size: 11px;
  font-weight: 800;
}

.frame8f6d3-step p {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--frame8f6d3-dim);
  padding-left: 6px;
}

.frame8f6d3-tipchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.frame8f6d3-tipchip {
  padding: 6px 11px;
  border-radius: var(--frame8f6d3-card);
  background: rgba(138, 43, 226, 0.14);
  border: 1px solid var(--frame8f6d3-line-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--frame8f6d3-dim);
}

/* --------------------------------------------------------------------------
   12. Game tricks grid
   -------------------------------------------------------------------------- */
.frame8f6d3-tricks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 360px) {
  .frame8f6d3-tricks { grid-template-columns: 1fr 1fr; }
}

.frame8f6d3-trick {
  position: relative;
  padding: 12px 12px 12px 14px;
  border-radius: var(--frame8f6d3-card);
  background: var(--frame8f6d3-raise);
  border-top: 2px solid var(--frame8f6d3-amethyst);
}
.frame8f6d3-trick:nth-child(3n + 1) { border-top-color: var(--frame8f6d3-coral); }
.frame8f6d3-trick:nth-child(3n + 3) { border-top-color: var(--frame8f6d3-violet); }

.frame8f6d3-trick-n {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: rgba(238, 130, 238, 0.18);
}

.frame8f6d3-trick h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--frame8f6d3-text);
  padding-right: 26px;
}
.frame8f6d3-trick h3 small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--frame8f6d3-amethyst);
}
.frame8f6d3-trick p {
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--frame8f6d3-dim);
}

/* --------------------------------------------------------------------------
   13. Common scenario panel
   -------------------------------------------------------------------------- */
.frame8f6d3-scene {
  margin-top: 14px;
  padding: 14px 14px 16px;
  border-radius: var(--frame8f6d3-card);
  background:
    linear-gradient(160deg, rgba(153, 102, 204, 0.16), rgba(255, 127, 80, 0.08)),
    var(--frame8f6d3-raise);
  border: 1px solid var(--frame8f6d3-line-soft);
}

.frame8f6d3-scene-ans {
  padding-left: 12px;
  border-left: 3px solid var(--frame8f6d3-coral);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--frame8f6d3-text);
}

.frame8f6d3-mins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.frame8f6d3-min {
  flex: 1 1 30%;
  min-width: 88px;
  padding: 7px 8px;
  border-radius: var(--frame8f6d3-card);
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid var(--frame8f6d3-line-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--frame8f6d3-dim);
  text-align: center;
}
.frame8f6d3-min b {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--frame8f6d3-coral);
}

.frame8f6d3-scene .frame8f6d3-note { margin-top: 4px; }

/* --------------------------------------------------------------------------
   14. Extended footer
   -------------------------------------------------------------------------- */
.frame8f6d3-xfoot {
  margin-top: 30px;
  padding: 20px var(--frame8f6d3-gutter) 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(138, 43, 226, 0.16), transparent 52%),
    var(--frame8f6d3-raise);
  border-top: 1px solid var(--frame8f6d3-line-soft);
}

.frame8f6d3-fh {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--frame8f6d3-text);
}
.frame8f6d3-fh u {
  text-decoration: none;
  background: linear-gradient(transparent 70%, rgba(238, 130, 238, 0.3) 70%);
}

/* Promotions: one wide lead + 2x2 grid, icon + text labels */
.frame8f6d3-promos { margin-top: 12px; }

.frame8f6d3-promo {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 10px 15px;
  border-radius: var(--frame8f6d3-card);
  background: linear-gradient(135deg, var(--frame8f6d3-coral), #e8683f);
  color: #241207;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 6px 18px rgba(255, 127, 80, 0.32);
  transition: transform 0.09s ease, box-shadow 0.2s ease;
}
.frame8f6d3-promo:active { transform: scale(0.97); }
.frame8f6d3-promo svg { flex-shrink: 0; width: 19px; height: 19px; }

.frame8f6d3-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.frame8f6d3-promo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 11px;
  border-radius: var(--frame8f6d3-card);
  border: 1px solid var(--frame8f6d3-line);
  background: rgba(26, 26, 26, 0.5);
  color: var(--frame8f6d3-dim);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transition: transform 0.09s ease, border-color 0.2s ease, color 0.2s ease;
}
.frame8f6d3-promo-item:hover { border-color: var(--frame8f6d3-violet); color: var(--frame8f6d3-text); }
.frame8f6d3-promo-item:active { transform: scale(0.96); }
.frame8f6d3-promo-item svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--frame8f6d3-amethyst); }

/* Brand recap */
.frame8f6d3-fbrand {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--frame8f6d3-line-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.frame8f6d3-fbrand img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(238, 130, 238, 0.3);
}
.frame8f6d3-fbrand p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.66;
  color: var(--frame8f6d3-dim);
}

/* Two-column page directory */
.frame8f6d3-dir {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--frame8f6d3-line-soft);
}

.frame8f6d3-dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  margin-top: 10px;
}

.frame8f6d3-dir-grid a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--frame8f6d3-dim);
  border-bottom: 1px solid rgba(153, 102, 204, 0.14);
}
.frame8f6d3-dir-grid a::before {
  content: "\2192";
  color: var(--frame8f6d3-coral);
  font-size: 11px;
  flex-shrink: 0;
}
.frame8f6d3-dir-grid a:hover { color: var(--frame8f6d3-text); }

/* Disclaimer */
.frame8f6d3-fdisc {
  margin-top: 20px;
  padding: 12px 13px;
  border-radius: var(--frame8f6d3-card);
  border: 1px dashed rgba(238, 130, 238, 0.3);
  background: rgba(17, 13, 20, 0.5);
}
.frame8f6d3-fdisc p {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--frame8f6d3-faint);
}

/* --------------------------------------------------------------------------
   15. Copyright strip (common footer)
   -------------------------------------------------------------------------- */
.frame8f6d3-copy {
  padding: 16px var(--frame8f6d3-gutter) 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--frame8f6d3-faint);
  border-top: 1px solid rgba(153, 102, 204, 0.14);
}
.frame8f6d3-copy b { color: var(--frame8f6d3-amethyst); font-weight: 700; }

/* --------------------------------------------------------------------------
   16. Fixed bottom bar - layered, 5 roles
   -------------------------------------------------------------------------- */
.frame8f6d3-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--frame8f6d3-line-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* The layered edge: a thin two-tone seam above the bar */
.frame8f6d3-bar::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--frame8f6d3-coral), var(--frame8f6d3-blueviolet) 55%, var(--frame8f6d3-violet));
}

.frame8f6d3-bar-in {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.frame8f6d3-bar-in a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 7px 2px 5px;
  color: var(--frame8f6d3-faint);
  position: relative;
  transition: transform 0.09s ease, color 0.2s ease;
}
.frame8f6d3-bar-in a:active { transform: scale(0.9); }

.frame8f6d3-bico {
  width: 23px;
  height: 23px;
  transition: transform 0.22s ease, color 0.2s ease;
}
.frame8f6d3-bico svg { width: 100%; height: 100%; display: block; }

.frame8f6d3-blabel {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Active role: slight lift + a light marker dot beneath the icon */
.frame8f6d3-bar-in a.frame8f6d3-here { color: var(--frame8f6d3-coral); }
.frame8f6d3-bar-in a.frame8f6d3-here .frame8f6d3-bico {
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 8px rgba(255, 127, 80, 0.45));
}
.frame8f6d3-bar-in a.frame8f6d3-here .frame8f6d3-blabel { color: var(--frame8f6d3-coral); }
.frame8f6d3-bar-in a.frame8f6d3-here::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--frame8f6d3-coral);
}

/* Promo roles get a coral tint even when inactive */
.frame8f6d3-bar-in a.frame8f6d3-bar-promo { color: var(--frame8f6d3-dim); }
.frame8f6d3-bar-in a.frame8f6d3-bar-promo .frame8f6d3-bico { color: var(--frame8f6d3-amethyst); }
.frame8f6d3-bar-in a.frame8f6d3-bar-promo:hover { color: var(--frame8f6d3-violet); }

/* --------------------------------------------------------------------------
   17. Progressive reveal (applied only when JS is alive)
   -------------------------------------------------------------------------- */
.frame8f6d3-pre {
  opacity: 0.001;
  transform: translateY(12px);
}
.frame8f6d3-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --------------------------------------------------------------------------
   18. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .frame8f6d3-pre { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Small helpers
   -------------------------------------------------------------------------- */
.frame8f6d3-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.frame8f6d3-seam {
  height: 1px;
  margin: 26px var(--frame8f6d3-gutter) 0;
  background: linear-gradient(90deg, transparent, rgba(238, 130, 238, 0.35), transparent);
}
