:root {
      --background: #06040a;
      --surface: #0e0a16;
      --surface-elevated: #120d1d;
      --foreground: #f8f7fb;
      --muted-foreground: #a9a2b5;
      --primary: #8d35ef;
      --primary-glow: #bb5cff;
      --border: rgba(156, 75, 255, 0.35);
      --input: rgba(18, 12, 28, 0.72);
      --gradient-primary: linear-gradient(135deg, #7027e8, #b947ff);
      --shadow-glow: 0 0 40px rgba(141, 53, 239, 0.35);
      --shadow-glow-strong: 0 0 60px rgba(187, 92, 255, 0.50);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(96, 42, 167, 0.32), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(131, 44, 211, 0.18), transparent 70%),
        #050308;
      color: var(--foreground);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -30;
      background-color: var(--background);
      background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 38, 158, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(130, 44, 207, 0.28), transparent 70%),
        radial-gradient(ellipse 55% 45% at 10% 70%, rgba(105, 37, 179, 0.24), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(77, 32, 128, 0.28), transparent 65%);
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -25;
      pointer-events: none;
      opacity: 0.07;
      mix-blend-mode: screen;
      background-image:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 70% 60%, white, transparent),
        radial-gradient(1px 1px at 40% 80%, white, transparent),
        radial-gradient(1px 1px at 85% 15%, white, transparent),
        radial-gradient(1px 1px at 15% 75%, white, transparent);
      background-size: 600px 600px;
    }

    a, button { color: inherit; }
    a { text-decoration: none; }
    button, textarea { font: inherit; }
    button { cursor: pointer; }

    h1, h2, h3, h4 {
      font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
      letter-spacing: -0.02em;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding-left: 52px;
      padding-right: 52px;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(5, 3, 8, 0.70);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(104, 68, 151, 0.40);
    }

    .header-inner {
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
    }

    .logo img {
      width: 185px;
      height: 70px;
      object-fit: contain;
      display: block;
      margin-left: -8px;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 35px;
      margin-left: 70px;
    }

    .nav a {
      font-size: 14px;
      color: var(--muted-foreground);
      transition: color .2s ease;
      position: relative;
    }

    .nav a:hover, .nav a.active { color: var(--primary-glow); }
    .nav a.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -9px;
      height: 2px;
      border-radius: 999px;
      background: var(--primary-glow);
      box-shadow: 0 0 16px rgba(187, 92, 255, .85);
    }

    .actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

    .btn {
      border: 1px solid rgba(145, 76, 219, 0.62);
      background: transparent;
      border-radius: 8px;
      height: 44px;
      padding: 0 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 700;
      color: var(--foreground);
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .btn:hover { transform: translateY(-1px); background: rgba(124, 58, 237, 0.10); }

    .btn-primary {
      border: 0;
      background: var(--gradient-primary);
      color: white;
      box-shadow: var(--shadow-glow);
    }

    .btn-primary:hover { box-shadow: var(--shadow-glow-strong); }
    .btn-full { width: 100%; }

    .icon { width: 17px; height: 17px; flex: 0 0 auto; }
    .icon.big { width: 34px; height: 34px; }
    .icon.card-icon { width: 28px; height: 28px; }
    .purple { color: var(--primary-glow); }

    .text-gradient-primary {
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }

    .panel-glow {
      background: linear-gradient(180deg, rgba(28, 18, 42, 0.70), rgba(15, 10, 24, 0.70));
      border: 1px solid rgba(163, 82, 255, 0.40);
      border-radius: 16px;
      box-shadow: 0 0 30px rgba(129, 54, 214, 0.15), inset 0 1px 0 rgba(168, 85, 247, 0.10);
      backdrop-filter: blur(12px);
    }

    .hero {
      position: relative;
      overflow: hidden;
      min-height: 518px;
      isolation: isolate;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: -10;
      pointer-events: none;
      overflow: hidden;
      background:
        radial-gradient(ellipse 70% 55% at 75% 40%, rgba(122, 44, 198, 0.42), transparent 65%),
        radial-gradient(ellipse 60% 45% at 15% 70%, rgba(105, 37, 179, 0.30), transparent 70%),
        #050308;
    }

    .hero-art {
      position: absolute;
      left: -42px;
      bottom: -270px;
      width: 920px;
      height: 920px;
      object-fit: cover;
      object-position: center;
      opacity: 1;
      mix-blend-mode: screen;
      user-select: none;
      pointer-events: none;
      filter: saturate(1.42) contrast(1.28) brightness(1.32) drop-shadow(0 0 34px rgba(187,92,255,.42));
    }

    .hero-halo {
      position: absolute;
      right: 5%;
      top: 15%;
      width: 45%;
      aspect-ratio: 1;
      opacity: .56;
      filter: blur(46px);
      background: radial-gradient(circle, rgba(188, 82, 255, .55), transparent 60%);
    }

    .hero-fade-left {
      position: absolute;
      inset: 0 auto 0 0;
      width: 67%;
      background: linear-gradient(90deg, #050308, rgba(5, 3, 8, 0.70), transparent);
    }

    .hero-fade-bottom {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 192px;
      background: linear-gradient(180deg, transparent, #050308);
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: 96px;
      align-items: start;
      padding-top: 34px;
      padding-bottom: 44px;
    }

    .hero-copy { padding-top: 60px; }

    h1 {
      margin: 0;
      font-size: clamp(44px, 5.1vw, 72px);
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: -0.045em;
    }

    .lead {
      margin: 22px 0 0;
      color: var(--muted-foreground);
      max-width: 420px;
      font-size: 18px;
      line-height: 1.55;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
    .hero-actions .btn { height: 44px; min-width: 180px; }

    .chips {
      margin-top: 32px;
      display: flex;
      align-items: center;
      gap: 34px;
      flex-wrap: wrap;
      color: var(--muted-foreground);
      font-size: 14px;
    }

    .chip { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }

    .right-panels { display: grid; gap: 14px; }
    .panel-pad { padding: 18px; }

    .panel-title {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 4px;
    }

    .panel-title h3 { margin: 0; font-size: 16px; font-weight: 800; }
    .panel-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted-foreground); }

    .textarea-wrap { position: relative; }

    textarea {
      width: 100%;
      height: 92px;
      resize: none;
      border-radius: 9px;
      border: 1px solid rgba(137, 73, 211, 0.42);
      background: rgba(12, 8, 19, 0.48);
      color: var(--foreground);
      outline: 0;
      padding: 16px;
      font-size: 14px;
      line-height: 1.4;
    }

    textarea::placeholder { color: rgba(169, 162, 181, .78); }
    textarea:focus { border-color: var(--primary-glow); }

    .char-count {
      position: absolute;
      right: 14px;
      bottom: 10px;
      color: var(--muted-foreground);
      font-size: 12px;
    }

    .generate-wrap { display: flex; justify-content: center; margin-top: 14px; }
    .generate-wrap .btn { height: 40px; min-width: 174px; }

    .form-rows { display: grid; gap: 9px; margin-top: 18px; }
    .form-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 14px; }
    .form-label { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 14px; }
    .form-value {
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid rgba(104, 68, 151, 0.45);
      border-radius: 8px;
      background: rgba(18, 12, 28, 0.50);
      padding: 0 12px;
      font-size: 14px;
      color: rgba(248, 247, 251, .92);
    }

    .form-value .icon { width: 15px; height: 15px; transform: rotate(90deg); color: var(--muted-foreground); }

    .section { padding: 42px 0; }
    .categories { margin-top: -8px; }
    .section-head { text-align: center; margin-bottom: 18px; }
    .section-head h2 { margin: 0; font-size: 29px; line-height: 1.1; font-weight: 800; }
    .section-head p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 15px; }

    .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

    .card {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(28, 18, 42, 0.58), rgba(10, 7, 16, 0.80));
      border: 1px solid rgba(163, 82, 255, 0.42);
      border-radius: 9px;
      box-shadow: 0 0 30px rgba(129, 54, 214, 0.15), inset 0 1px 0 rgba(168, 85, 247, 0.08);
      transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-glow-strong);
      border-color: rgba(187, 92, 255, 0.7);
    }

    .card-img {
      width: 100%;
      aspect-ratio: 4 / 3;
      overflow: hidden;
      position: relative;
    }

    .ideas .card-img { aspect-ratio: 16 / 10; }

    .card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .5s ease;
    }

    .card:hover .card-img img { transform: scale(1.05); }

    .card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .card-icon-wrap { color: var(--primary-glow); margin-bottom: 14px; height: 30px; display: flex; align-items: center; }
    .card h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
    .card p { margin: 7px 0 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.45; }

    .card-bottom {
      margin-top: auto;
      padding-top: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .circle-arrow {
      margin-left: auto;
      width: 41px;
      height: 41px;
      border-radius: 999px;
      border: 1px solid rgba(187, 92, 255, 0.65);
      color: var(--primary-glow);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      transition: background .2s ease;
    }

    .circle-arrow:hover { background: rgba(124, 58, 237, .18); }
    .circle-arrow .icon { width: 18px; height: 18px; }

    .idea-tag {
      position: absolute;
      left: 14px;
      top: 14px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      padding: 5px 9px;
      border-radius: 6px;
      border: 1px solid rgba(187, 92, 255, .42);
      color: var(--primary-glow);
      background: rgba(5, 3, 8, .70);
      display: none;
    }

    .tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
    .tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(104, 68, 151, 0.45);
      border-radius: 7px;
      background: rgba(18, 12, 28, .50);
      color: var(--muted-foreground);
      font-size: 12px;
      padding: 6px 9px;
    }
    .tag .icon { width: 14px; height: 14px; color: var(--primary-glow); }

    .feature-strip { padding: 0 0 54px; }
    .feature-panel { padding: 24px 28px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
    .feature { display: flex; align-items: flex-start; gap: 16px; }
    .feature-icon {
      width: 45px;
      height: 45px;
      flex: 0 0 auto;
      color: var(--primary-glow);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .feature h4 { margin: 0; font-size: 14px; font-weight: 800; }
    .feature p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.35; }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      background: rgba(0,0,0,.72);
      backdrop-filter: blur(10px);
      padding: 20px;
    }
    .modal.active { display: flex; }
    .modal-card { width: min(420px, 100%); padding: 24px; }
    .modal-head { display:flex; justify-content:space-between; align-items:start; gap:16px; margin-bottom:18px; }
    .modal-head h3 { margin:0; font-size:24px; }
    .close { width:34px; height:34px; border-radius:999px; border:1px solid var(--border); background:transparent; color:white; }
    .input { width:100%; height:44px; background:rgba(12,8,19,.48); border:1px solid rgba(137,73,211,.42); color:white; border-radius:9px; padding:0 12px; margin-bottom:12px; }
    .hidden-section { display: none; }

    @media (max-width: 1050px) {
      .container { padding-left: 28px; padding-right: 28px; }
      .hero-grid { grid-template-columns: 1fr; gap: 24px; }
      .hero-copy { padding-top: 24px; }
      .right-panels { max-width: 520px; }
      .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .grid-3 { grid-template-columns: 1fr; }
      .feature-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .nav { display: none; }
      .hero { min-height: auto; }
    }

    @media (max-width: 640px) {
      .container { padding-left: 18px; padding-right: 18px; }
      .header-inner { height: auto; padding: 12px 0; align-items: flex-start; flex-wrap: wrap; }
      .logo img { width: 145px; height: auto; margin-left: 0; }
      .actions { width: 100%; gap: 10px; }
      .actions .btn { flex: 1; padding: 0 14px; }
      .hero-grid { padding-top: 18px; }
      h1 { font-size: 46px; }
      .lead { font-size: 16px; }
      .hero-actions .btn { min-width: 0; flex: 1; padding: 0 16px; }
      .chips { gap: 16px; }
      .grid-4, .feature-panel { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; gap: 6px; }
      .hero-art { width: 690px; height: 690px; left: -145px; bottom: -205px; opacity: .62; }
    }
  

    /* Single-file page system + restored prototype pages */
    .page { display: none; }
    .page.active { display: block; animation: fadeIn .18s ease both; }
    @keyframes fadeIn { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    .page-shell { max-width: 1280px; margin: 0 auto; padding: 54px 52px; }
    .page-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
    .page-head h1 { margin: 8px 0 0; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; }
    .page-head p { margin: 13px auto 0; color: var(--muted-foreground); font-size: 16px; line-height: 1.6; }
    .eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--primary-glow); font-size:14px; font-weight:700; }
    .two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items:start; }
    .setup-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .field { display:block; }
    .field span, .field-label { display:block; color:var(--muted-foreground); font-size:14px; margin-bottom:7px; }
    .field input, .field select, .search-input {
      width:100%; height:44px; border-radius:9px; border:1px solid rgba(137,73,211,.42);
      background:rgba(12,8,19,.48); color:var(--foreground); outline:0; padding:0 12px; font-size:14px;
    }
    .field input:focus, .field select:focus, .search-input:focus { border-color:var(--primary-glow); }
    .field.full { grid-column: 1 / -1; }
    .checks { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
    .check { border:1px solid rgba(104,68,151,.52); color:var(--muted-foreground); border-radius:9px; padding:10px 12px; display:flex; gap:8px; align-items:center; font-size:13px; cursor:pointer; background:rgba(18,12,28,.38); }
    .check input { accent-color: var(--primary); }
    .check:has(input:checked) { border-color: rgba(187,92,255,.78); background: rgba(141,53,239,.15); color:var(--foreground); }
    .library-search { max-width: 430px; margin: 22px auto 0; }
    .library-section { margin-top: 34px; }
    .library-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:14px; }
    .library-section-title h2 { margin:0; font-size:22px; }
    .library-section-title span { color:var(--muted-foreground); font-size:12px; }
    .game-tile { min-height:62px; padding:17px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .game-tile strong { font-size:14px; font-weight:700; }
    .price-card { padding: 28px; position:relative; }
    .price-card.highlight { outline:2px solid rgba(187,92,255,.72); box-shadow: var(--shadow-glow-strong); }
    .popular-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); padding:6px 12px; border-radius:999px; background:var(--gradient-primary); font-size:12px; font-weight:800; box-shadow:var(--shadow-glow); white-space:nowrap; }
    .price { margin:22px 0 4px; font-family:"Space Grotesk",Inter,sans-serif; font-size:42px; font-weight:800; }
    .price small { color:var(--muted-foreground); font-size:14px; font-family:Inter,sans-serif; }
    .feature-list { margin:22px 0 0; padding:0; list-style:none; display:grid; gap:11px; color:var(--foreground); font-size:14px; }
    .feature-list li { display:flex; gap:9px; align-items:flex-start; }
    .feature-list li::before { content:"✓"; color:var(--primary-glow); font-weight:900; }
    .step-list { display:grid; gap:18px; max-width: 880px; margin:0 auto; }
    .step-item { padding:24px; display:flex; gap:18px; align-items:flex-start; }
    .step-icon { width:48px; height:48px; border-radius:12px; border:1px solid rgba(187,92,255,.48); background:rgba(141,53,239,.15); color:var(--primary-glow); display:flex; align-items:center; justify-content:center; font-size:22px; flex:0 0 auto; }
    .step-item h2 { margin:2px 0 5px; font-size:21px; }
    .step-item p { margin:0; color:var(--muted-foreground); line-height:1.55; }
    .rec-meta { margin-top:22px; display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px 16px; font-size:13px; }
    .rec-meta dt { color:var(--muted-foreground); }
    .rec-meta dd { margin:2px 0 0; font-weight:700; }
    .host-top { padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
    .host-stats { display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
    .host-stat span { display:block; color:var(--muted-foreground); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
    .host-stat strong { display:block; margin-top:2px; }
    .timer-pill { display:flex; gap:8px; align-items:center; padding:9px 12px; border:1px solid rgba(187,92,255,.46); border-radius:10px; background:rgba(141,53,239,.12); font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-weight:800; }
    .host-grid { margin-top:24px; display:grid; grid-template-columns: 1fr 320px; gap:24px; align-items:start; }
    .host-main { min-height:360px; padding:48px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; position:relative; overflow:hidden; }
    .host-main::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(circle at 50% 30%, rgba(141,53,239,.24), transparent 70%); }
    .host-main p { font-family:"Space Grotesk",Inter,sans-serif; font-size:clamp(24px,3vw,34px); font-weight:700; line-height:1.25; max-width:740px; margin:0; }
    .host-actions { margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
    .side-list { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
    .side-list li { display:flex; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:8px; color:var(--muted-foreground); font-size:14px; }
    .side-list li:hover { background:rgba(18,12,28,.62); color:var(--foreground); }
    .toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); opacity:0; pointer-events:none; z-index:200; padding:12px 16px; border:1px solid rgba(187,92,255,.45); background:rgba(18,12,28,.92); border-radius:999px; box-shadow:var(--shadow-glow); color:var(--foreground); font-size:14px; transition:all .22s ease; }
    .toast.active { opacity:1; transform:translateX(-50%) translateY(0); }
    @media (max-width:1050px) { .page-shell { padding-left:28px; padding-right:28px; } .two-col,.host-grid { grid-template-columns:1fr; } .checks { grid-template-columns: repeat(2,minmax(0,1fr)); } }
    @media (max-width:640px) { .page-shell { padding-left:18px; padding-right:18px; } .setup-grid,.checks { grid-template-columns:1fr; } .host-main { padding:28px 18px; } }

  
    .host-tools { display:grid; gap:10px; }
    .host-tools textarea,
    .host-tools input,
    .host-tools select {
      width:100%; min-height:42px; border-radius:10px; border:1px solid rgba(187,92,255,.25);
      background:rgba(9,6,15,.65); color:var(--foreground); padding:10px 12px; outline:none;
      font-family:Inter,system-ui,sans-serif; font-size:13px;
    }
    .host-tools textarea { min-height:76px; resize:vertical; }
    .mini-label { color:var(--muted-foreground); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
    .secret-card { margin-top:22px; padding:16px 18px; border-radius:12px; border:1px solid rgba(187,92,255,.46); background:rgba(141,53,239,.16); text-align:left; color:var(--muted-foreground); font-weight:700; max-width:680px; }
    .secret-card strong { color:var(--foreground); }
    .secret-card .danger { color:#ff9acb; }
    .case-file { display:grid; gap:8px; color:var(--muted-foreground); font-size:13px; line-height:1.5; }
    .case-file div { padding:9px 10px; border-radius:8px; background:rgba(18,12,28,.62); border:1px solid rgba(187,92,255,.14); }
    .team-card { display:grid; gap:8px; }
    .team-card div { padding:9px 10px; border-radius:8px; background:rgba(18,12,28,.62); border:1px solid rgba(187,92,255,.14); color:var(--muted-foreground); font-size:13px; line-height:1.45; }
    .team-card strong { color:var(--foreground); }


    .setup-manager-box {
      grid-column: 1 / -1;
      padding: 14px;
      border-radius: 12px;
      border: 1px solid rgba(187,92,255,.22);
      background: rgba(9,6,15,.42);
    }
    .player-manager { display: grid; gap: 10px; }
    .player-manager input {
      min-height: 42px;
      border-radius: 10px;
      border: 1px solid rgba(187,92,255,.25);
      background: rgba(9,6,15,.65);
      color: var(--foreground);
      padding: 10px 12px;
      outline: none;
    }
    .player-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .player-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid rgba(187,92,255,.28);
      background: rgba(141,53,239,.12);
      color: var(--foreground);
      font-size: 13px;
      font-weight: 700;
    }
    .player-chip button {
      width: 18px;
      height: 18px;
      display: inline-grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: rgba(255,255,255,.09);
      color: var(--muted-foreground);
      cursor: pointer;
      line-height: 1;
    }
    .empty-note { color: var(--muted-foreground); font-size: 12px; line-height: 1.5; margin: 0; }
    .team-toggle {
      min-height: 40px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted-foreground);
      font-size: 13px;
      font-weight: 750;
      text-transform: none;
      letter-spacing: 0;
    }
    .team-toggle input { width: auto; min-height: auto; accent-color: var(--primary); }

  

    /* Clean host layout v4: game-specific setup, real player adding, proper private cards */
    .host-sidebar { display: grid; gap: 16px; }
    .side-panel-card { padding: 20px; }
    .side-panel-card h3 { margin: 0 0 12px; font-size: 17px; }
    .side-panel-card .panel-sub { margin-bottom: 12px; }
    .host-player-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; color:var(--muted-foreground); font-size:13px; }
    .player-list-clean { display:flex; flex-wrap:wrap; gap:8px; }
    .player-pill-clean { padding:8px 10px; border-radius:999px; border:1px solid rgba(187,92,255,.25); background:rgba(141,53,239,.10); color:var(--foreground); font-size:13px; font-weight:700; }
    .add-player-row { display:grid; grid-template-columns:1fr 42px; gap:8px; align-items:center; }
    .add-player-row input { min-height:42px; border-radius:12px; border:1px solid rgba(187,92,255,.25); background:rgba(9,6,15,.70); color:var(--foreground); padding:10px 12px; outline:none; }
    .add-player-row input:focus { border-color:rgba(187,92,255,.65); box-shadow:0 0 0 3px rgba(141,53,239,.16); }
    .plus-btn { width:42px; height:42px; border-radius:50%; border:1px solid rgba(187,92,255,.50); background:linear-gradient(135deg, rgba(112,39,232,.95), rgba(185,71,255,.95)); color:#fff; font-size:24px; line-height:1; display:grid; place-items:center; box-shadow:0 0 20px rgba(141,53,239,.30); transition:transform .18s ease, box-shadow .18s ease; }
    .plus-btn:hover { transform:translateY(-1px) scale(1.03); box-shadow:0 0 28px rgba(187,92,255,.45); }
    .player-chip .remove-mini { width:19px; height:19px; border:0; border-radius:50%; background:rgba(255,255,255,.10); color:var(--muted-foreground); display:grid; place-items:center; padding:0; }
    .game-specific-panel { padding:20px; }
    .setup-row { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:9px; background:rgba(18,12,28,.55); border:1px solid rgba(187,92,255,.13); color:var(--muted-foreground); font-size:13px; line-height:1.4; }
    .setup-row strong { color:var(--foreground); text-align:right; }
    .host-tools.clean-tools { display:grid; gap:10px; margin-top:12px; }
    .host-tools.clean-tools select, .host-tools.clean-tools input { min-height:42px; border-radius:10px; border:1px solid rgba(187,92,255,.25); background:rgba(9,6,15,.65); color:var(--foreground); padding:10px 12px; outline:none; }
    .private-card-shell { width:min(620px, 100%); text-align:center; padding:0; overflow:hidden; border-radius:18px; background:linear-gradient(180deg, rgba(141,53,239,.20), rgba(9,6,15,.78)); border:1px solid rgba(187,92,255,.46); box-shadow:0 0 40px rgba(141,53,239,.18); }
    .private-card-top { padding:12px 16px; border-bottom:1px solid rgba(187,92,255,.18); color:var(--muted-foreground); font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
    .private-card-body { padding:26px 22px; }
    .private-card-player { color:var(--foreground); font-family:"Space Grotesk",Inter,sans-serif; font-size:25px; font-weight:800; margin-bottom:10px; }
    .private-card-secret { font-family:"Space Grotesk",Inter,sans-serif; font-size:clamp(28px,4vw,44px); line-height:1.05; font-weight:900; color:var(--primary-glow); text-shadow:0 0 18px rgba(187,92,255,.35); }
    .private-card-secret.spy { color:#ff9acb; }
    .private-card-note { margin-top:14px; color:var(--muted-foreground); font-size:13px; line-height:1.55; font-weight:600; }
    .card-progress { margin-top:10px; color:var(--muted-foreground); font-size:12px; }
    .hidden-action { display:none !important; }
    .location-grid-mini { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:10px; }
    .location-chip-mini { padding:7px 8px; border-radius:999px; border:1px solid rgba(187,92,255,.18); background:rgba(141,53,239,.08); color:var(--muted-foreground); font-size:12px; text-align:center; }
    @media (max-width:640px){ .location-grid-mini { grid-template-columns:1fr; } .add-player-row { grid-template-columns:1fr 40px; } }



    /* v5: cleaner controls, authentic logo, smoother player add */
    .logo img { filter: none !important; opacity: .98 !important; }
    .host-sidebar { display: grid; gap: 14px; align-content: start; }
    .host-sidebar .side-panel-card:first-child { order: 1; }
    .host-sidebar .side-panel-card:nth-child(2) { order: 2; }
    #hostGameSetupPanel { order: 3; }
    #hostTeamsPanel { order: 4; }
    .host-sidebar .side-panel-card:has(#hostRules) { order: 5; }
    .host-sidebar .side-panel-card:last-child { order: 6; }
    .add-player-row { display: grid !important; grid-template-columns: 1fr 44px !important; gap: 10px !important; align-items: center; }
    .add-player-row input { height: 44px !important; border-radius: 14px !important; }
    .plus-btn {
      width: 44px !important; height: 44px !important; border-radius: 14px !important;
      display: inline-grid !important; place-items: center !important;
      font-size: 24px !important; font-weight: 800 !important; line-height: 1 !important;
      background: var(--gradient-primary) !important; color: #fff !important;
      border: 0 !important; box-shadow: 0 0 24px rgba(141,53,239,.35) !important;
      transition: transform .18s ease, box-shadow .18s ease !important;
    }
    .plus-btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 34px rgba(187,92,255,.45) !important; }
    .player-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .player-chip, .player-pill-clean {
      border-radius: 999px !important;
      background: rgba(187,92,255,.10) !important;
      border: 1px solid rgba(187,92,255,.28) !important;
      color: rgba(255,255,255,.88) !important;
    }
    .host-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .host-actions .btn { min-width: 128px; }
    .hidden-action { display: none !important; }
    .simple-nav-bar { padding:16px;margin-top:18px;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start; }
    .simple-nav-bar .btn { min-width: 112px; }
    .game-specific-panel h3 { text-transform: none; }
    .game-specific-panel .case-file { display: grid; gap: 8px; }
    .game-flow-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted-foreground); line-height: 1.65; font-size: 14px; }
    .option-count-pill {
      display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(187,92,255,.32);
      background:rgba(187,92,255,.10);border-radius:999px;padding:6px 10px;color:var(--primary-glow);
      font-size:12px;font-weight:700;margin-bottom:10px;
    }
    .private-card-secret.spy { color: #ffb4d7 !important; }

  

    /* v6 batch 1: cleaner host display, player adding, team setup */
    .host-main {
      min-height: 300px !important;
      padding: 30px 34px !important;
      align-items: stretch !important;
      justify-content: center !important;
      text-align: left !important;
    }
    #hostStageLabel {
      margin-bottom: 10px !important;
      font-size: 11px !important;
      letter-spacing: .12em !important;
      opacity: .86;
    }
    #hostPrompt {
      font-family: Inter, system-ui, sans-serif !important;
      font-size: clamp(16px, 2vw, 22px) !important;
      font-weight: 650 !important;
      line-height: 1.45 !important;
      max-width: 760px !important;
      white-space: pre-line;
      text-align: left !important;
    }
    .host-actions {
      margin-top: 20px !important;
      justify-content: flex-start !important;
      gap: 9px !important;
    }
    .host-actions .btn,
    .simple-nav-bar .btn {
      min-height: 38px !important;
      height: 38px !important;
      border-radius: 11px !important;
      padding: 0 13px !important;
      font-size: 13px !important;
      font-weight: 800 !important;
    }
    .simple-nav-bar {
      padding: 12px 14px !important;
      gap: 9px !important;
      justify-content: space-between !important;
    }
    .host-top { padding: 13px 16px !important; }
    #hostTitle { font-size: 16px !important; line-height: 1.25 !important; }
    .host-stat strong { font-size: 13px !important; }
    .timer-pill { padding: 7px 10px !important; font-size: 13px !important; }
    .host-sidebar { gap: 12px !important; }
    .side-panel-card,
    .game-specific-panel { padding: 16px !important; }
    .side-panel-card h3,
    .game-specific-panel h3 { font-size: 15px !important; margin-bottom: 10px !important; }

    .player-manager-v6 { display:grid; gap:10px; }
    .add-player-row-v6 { display:grid; grid-template-columns: 1fr 38px; gap:8px; align-items:center; }
    .add-player-row-v6 input {
      height: 38px !important;
      min-height: 38px !important;
      border-radius: 999px !important;
      padding: 0 13px !important;
      font-size: 13px !important;
      background: rgba(9,6,15,.68) !important;
      border: 1px solid rgba(187,92,255,.25) !important;
      color: var(--foreground) !important;
      outline: none;
    }
    .add-player-row-v6 input:focus { border-color: rgba(187,92,255,.65) !important; box-shadow: 0 0 0 3px rgba(141,53,239,.14); }
    .plus-btn-v6 {
      width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(187,92,255,.42);
      background: rgba(141,53,239,.18); color: var(--primary-glow); font-size: 22px; line-height: 1;
      display:grid; place-items:center; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
    }
    .plus-btn-v6:hover { transform: translateY(-1px); background: rgba(141,53,239,.28); box-shadow: 0 0 18px rgba(141,53,239,.24); }
    .player-chip-wrap-v6 { display:flex; flex-wrap:wrap; gap:7px; }
    .player-chip-v6 {
      display:inline-flex; align-items:center; gap:7px; min-height:30px; padding: 0 8px 0 10px;
      border-radius:999px; border:1px solid rgba(187,92,255,.24); background:rgba(141,53,239,.10);
      color: var(--foreground); font-size:12.5px; font-weight:750;
    }
    .player-chip-v6 button {
      width:18px; height:18px; border:0; border-radius:50%; background:rgba(255,255,255,.09);
      color:var(--muted-foreground); display:grid; place-items:center; padding:0; line-height:1;
    }
    .player-count-note-v6 { color:var(--muted-foreground); font-size:12px; line-height:1.45; margin:0; }

    .team-builder-v6 { display:grid; gap:12px; }
    .team-builder-head-v6 { display:flex; justify-content:space-between; gap:10px; align-items:center; color:var(--muted-foreground); font-size:12px; }
    .team-builder-actions-v6 { display:flex; flex-wrap:wrap; gap:8px; }
    .tiny-btn-v6 {
      min-height:30px; border-radius:999px; border:1px solid rgba(187,92,255,.25); background:rgba(255,255,255,.045);
      color:var(--muted-foreground); padding:0 10px; font-size:12px; font-weight:800;
    }
    .tiny-btn-v6:hover { color:var(--foreground); background:rgba(141,53,239,.14); }
    .team-grid-v6 { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
    .team-box-v6 { border:1px solid rgba(187,92,255,.17); border-radius:14px; background:rgba(9,6,15,.35); padding:10px; display:grid; gap:9px; }
    .team-name-input-v6 {
      width:100%; height:34px !important; min-height:34px !important; border-radius:10px !important;
      background:rgba(18,12,28,.74) !important; border:1px solid rgba(187,92,255,.22) !important;
      color:var(--foreground) !important; padding:0 10px !important; font-size:13px !important; font-weight:800;
    }
    .team-member-add-v6 { display:grid; grid-template-columns: 1fr 32px; gap:7px; }
    .team-member-add-v6 input { height:32px !important; min-height:32px !important; border-radius:999px !important; font-size:12px !important; padding:0 10px !important; }
    .team-member-add-v6 button { width:32px; height:32px; font-size:18px; }
    .team-members-v6 { display:flex; flex-wrap:wrap; gap:6px; min-height:26px; }
    .team-member-chip-v6 { display:inline-flex; align-items:center; gap:6px; min-height:26px; padding:0 7px 0 9px; border-radius:999px; background:rgba(141,53,239,.12); border:1px solid rgba(187,92,255,.18); font-size:12px; font-weight:750; }
    .team-member-chip-v6 button { width:16px; height:16px; border:0; border-radius:50%; background:rgba(255,255,255,.09); color:var(--muted-foreground); padding:0; line-height:1; }
    .team-empty-v6 { color:var(--muted-foreground); font-size:12px; line-height:1.4; }
    .team-warning-v6 { color:var(--muted-foreground); font-size:12px; line-height:1.45; padding:9px 10px; border-radius:12px; background:rgba(18,12,28,.46); border:1px solid rgba(187,92,255,.12); }
    @media (max-width:640px) {
      .host-main { padding: 22px 18px !important; min-height: 260px !important; }
      .team-grid-v6 { grid-template-columns:1fr; }
      .simple-nav-bar { justify-content:flex-start !important; }
    }


    /* v7: cleaner party-app host flow */
    #hostPrompt {
      font-size: clamp(15px, 1.7vw, 19px) !important;
      line-height: 1.55 !important;
      font-weight: 620 !important;
      letter-spacing: 0 !important;
      white-space: pre-line !important;
    }
    .truth-dare-choice-row {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px !important;
      width: min(520px, 100%);
      margin-top: 18px;
    }
    .truth-dare-choice {
      height: 76px !important;
      border-radius: 18px !important;
      font-size: 18px !important;
      font-weight: 900 !important;
      text-transform: lowercase;
      border: 1px solid rgba(187,92,255,.38) !important;
      background: rgba(141,53,239,.14) !important;
      color: var(--foreground) !important;
      box-shadow: 0 0 22px rgba(141,53,239,.12);
    }
    .truth-dare-choice:hover {
      background: rgba(141,53,239,.24) !important;
      transform: translateY(-1px);
    }
    .truth-dare-choice.dare {
      background: linear-gradient(135deg, rgba(141,53,239,.32), rgba(217,70,239,.20)) !important;
    }
    .single-start-row {
      display:flex !important;
      gap:10px !important;
      flex-wrap:wrap !important;
      margin-top:18px !important;
    }
    .single-start-row .btn {
      min-width: 150px !important;
    }
    .host-main .eyebrow#hostStageLabel {
      font-size: 11px !important;
      letter-spacing: .16em !important;
    }
    @media (max-width: 640px) {
      .truth-dare-choice-row { grid-template-columns: 1fr; }
      .truth-dare-choice { height: 62px !important; font-size: 17px !important; }
      #hostPrompt { font-size: 15.5px !important; }
    }

    .history-list {
      display: grid;
      gap: 10px;
      max-height: 52vh;
      overflow: auto;
      margin-top: 12px;
    }
    .history-row {
      display: grid;
      gap: 5px;
      padding: 12px;
      border: 1px solid rgba(187,92,255,.18);
      border-radius: 10px;
      background: rgba(255,255,255,.04);
    }
    .history-row strong {
      color: var(--foreground);
      font-size: 14px;
    }
    .history-row span,
    .history-row small {
      color: var(--muted-foreground);
      font-size: 12px;
      line-height: 1.4;
    }
