
  :root{
    --bg:#10131b;
    --bg-deep:#0a0c12;
    --surface:#1a2029;
    --surface-2:#212836;
    --border:#2b3444;
    --text:#eef1f6;
    --text-dim:#8f9bb0;
    --blue:#4ea8ff;
    --blue-deep:#2a72d8;
    --amber:#ffb238;
    --rec:#ff5a4e;
    --green:#3ddc9a;
    --stage-w:1280px;
    --stage-h:720px;
    --radius-lg:20px;
    --radius-md:12px;
    --radius-sm:8px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{
    width:100%; height:100%;
    background:var(--bg-deep);
    font-family:var(--sans);
    color:var(--text);
    overflow:hidden;
    -webkit-font-smoothing:antialiased;
  }
  #viewport{
    position:fixed; inset:0;
    display:flex; align-items:center; justify-content:center;
    background:
      radial-gradient(circle at 15% 20%, rgba(78,168,255,0.10), transparent 45%),
      radial-gradient(circle at 85% 80%, rgba(255,90,78,0.07), transparent 40%),
      var(--bg-deep);
  }
  #stage{
    width:var(--stage-w); height:var(--stage-h);
    position:relative;
    background:var(--bg);
    transform-origin:center center;
    overflow:hidden;
    border-radius:4px;
    box-shadow:0 30px 90px rgba(0,0,0,0.6);
  }
  #stage::before{
    content:"";
    position:absolute; inset:0;
    background-image:
      linear-gradient(rgba(78,168,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(78,168,255,0.045) 1px, transparent 1px);
    background-size:38px 38px;
    pointer-events:none;
    opacity:0.5;
    z-index:0;
  }

  .scene{
    position:absolute; inset:0;
    display:none;
    flex-direction:column;
    z-index:1;
  }
  .scene.active{ display:flex; }
  .fade-in{ animation:fadeIn .5s ease both; }
  @keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

  .topbar{
    height:54px; min-height:54px;
    display:flex; align-items:center; justify-content:space-between;
    padding:0 28px;
    border-bottom:1px solid var(--border);
    background:rgba(255,255,255,0.015);
    position:relative; z-index:2;
  }
  .crumb{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-dim); }
  .crumb b{ color:var(--text); font-weight:600; }
  .crumb .sep{ opacity:.4; }
  .brand{ display:flex; align-items:center; gap:9px; padding-right:16px; margin-right:16px; border-right:1px solid var(--border); }
  .brand-ic{
    width:26px; height:26px; border-radius:7px;
    background:linear-gradient(135deg, var(--blue), var(--blue-deep));
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .brand-ic svg{ width:14px; height:14px; color:#fff; }
  .brand-name{ font-size:12.5px; font-weight:700; color:var(--text); white-space:nowrap; }
  .topbar-left{ display:flex; align-items:center; }
  .topbar-actions{ display:flex; gap:10px; align-items:center; }
  .icon-btn{
    width:34px; height:34px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    background:var(--surface); border:1px solid var(--border);
    cursor:pointer; color:var(--text-dim);
    transition:all .15s ease;
  }
  .icon-btn:hover{ color:var(--blue); border-color:var(--blue); transform:translateY(-1px); box-shadow:0 4px 14px rgba(78,168,255,0.25); }
  .icon-btn svg{ width:16px; height:16px; }

  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:13px 26px; border-radius:12px; border:1px solid var(--border);
    background:var(--surface); color:var(--text);
    font-family:var(--sans); font-size:15px; font-weight:600;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    -webkit-tap-highlight-color:transparent;
  }
  .btn:hover{ transform:translateY(-2px); border-color:var(--blue); box-shadow:0 8px 24px rgba(78,168,255,0.25); }
  .btn:active{ transform:translateY(0); }
  .btn-primary{
    background:linear-gradient(135deg, var(--blue), var(--blue-deep));
    border:none; color:#fff; box-shadow:0 8px 22px rgba(42,114,216,0.35);
  }
  .btn-primary:hover{ box-shadow:0 10px 30px rgba(42,114,216,0.5); }
  .btn-ghost{ background:transparent; }
  .btn svg{ width:18px; height:18px; flex-shrink:0; }

  #scene-cover{ align-items:center; justify-content:center; padding:40px; }
  .cover-grid{
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:50px;
    align-items:center; width:100%; max-width:1120px;
  }
  .cover-eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:12.5px; letter-spacing:0.4px; color:var(--blue);
    background:rgba(78,168,255,0.1); border:1px solid rgba(78,168,255,0.3);
    padding:6px 14px; border-radius:999px; margin-bottom:22px; width:fit-content;
  }
  .cover-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--rec); animation:pulse 1.6s infinite; }
  @keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }
  .cover-title{ font-size:44px; line-height:1.12; font-weight:800; letter-spacing:-0.5px; margin-bottom:16px; }
  .cover-title .hl{
    background:linear-gradient(90deg, var(--blue), #8fd0ff);
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .cover-sub{ font-size:15.5px; color:var(--text-dim); line-height:1.6; margin-bottom:30px; max-width:440px; }
  .cover-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
  .meta-chip{ font-size:12.5px; color:var(--text-dim); border:1px solid var(--border); padding:6px 12px; border-radius:8px; background:var(--surface); }
  .cover-visual{ position:relative; display:flex; align-items:center; justify-content:center; height:420px; overflow:visible; }
  .bg-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.4; z-index:0; pointer-events:none; }
  .orbit-ring{ position:absolute; border-radius:50%; border:1px dashed rgba(78,168,255,0.18); }
  .orbit-ring.r1{ width:380px; height:380px; }
  .orbit-ring.r2{ width:300px; height:300px; }
  .studio-core{
    width:190px; height:190px; border-radius:28px;
    background:linear-gradient(160deg, var(--surface-2), var(--surface));
    border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
    box-shadow:0 0 0 1px rgba(78,168,255,0.06), 0 20px 60px rgba(0,0,0,0.4);
  }
  .studio-core svg{ width:96px; height:96px; color:var(--blue); }
  .orbit-icon{
    position:absolute; width:52px; height:52px; border-radius:14px;
    background:var(--surface); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--amber);
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
    cursor:pointer; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .orbit-icon:hover{
    transform:scale(1.12); border-color:var(--amber);
    box-shadow:0 12px 28px rgba(255,178,56,0.3);
  }
  .orbit-icon svg{ width:24px; height:24px; pointer-events:none; }
  .orbit-tip{
    position:absolute; bottom:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(4px);
    background:#ffffff; color:#161a22; font-size:11.5px; font-weight:700;
    padding:7px 12px; border-radius:8px; white-space:nowrap;
    box-shadow:0 10px 26px rgba(0,0,0,0.45);
    opacity:0; pointer-events:none; transition:all .18s ease; z-index:10;
  }
  .orbit-tip::after{
    content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%);
    border:5px solid transparent; border-top-color:#ffffff;
  }
  .orbit-icon:hover .orbit-tip{ opacity:1; transform:translateX(-50%) translateY(0); }
  .cover-footer-hint{ position:absolute; bottom:22px; left:28px; display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-dim); }
  .cover-footer-hint .kdot{ width:5px; height:5px; border-radius:50%; background:var(--amber); }

  #scene-guide .guide-body{
    flex:1; display:flex; flex-direction:column;
    padding:36px 60px; align-items:center; justify-content:center; position:relative; z-index:1;
  }
  .guide-head{ text-align:center; margin-bottom:30px; }
  .guide-head h1{ font-size:26px; font-weight:800; margin-bottom:8px; }
  .guide-head p{ color:var(--text-dim); font-size:14px; }
  .guide-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; width:100%; max-width:980px; }
  .guide-card{
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
    padding:20px 16px; display:flex; flex-direction:column; align-items:flex-start; gap:10px;
    animation:floaty 5s ease-in-out infinite;
  }
  .guide-card:nth-child(2){ animation-delay:.3s; }
  .guide-card:nth-child(3){ animation-delay:.6s; }
  .guide-card:nth-child(4){ animation-delay:.9s; }
  @keyframes floaty{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }
  .guide-ic{ width:38px; height:38px; border-radius:10px; background:rgba(78,168,255,0.12); color:var(--blue); display:flex; align-items:center; justify-content:center; }
  .guide-ic svg{ width:20px; height:20px; }
  .guide-card h3{ font-size:14.5px; font-weight:700; }
  .guide-card p{ font-size:12.5px; color:var(--text-dim); line-height:1.5; }
  .guide-actions{ margin-top:30px; display:flex; gap:14px; }

  #scene-menu{ padding:0; }
  .menu-body{ flex:1; display:flex; flex-direction:column; padding:24px 40px 30px; position:relative; z-index:1; overflow:hidden; }
  .menu-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
  .menu-greet h1{ font-size:22px; font-weight:800; }
  .menu-greet p{ font-size:13px; color:var(--text-dim); margin-top:3px; }
  .progress-wrap{
    display:flex; align-items:center; gap:12px;
    background:var(--surface); border:1px solid var(--border);
    padding:10px 16px; border-radius:12px; min-width:220px;
  }
  .progress-track{ flex:1; height:7px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
  .progress-fill{ height:100%; width:0%; border-radius:99px; background:linear-gradient(90deg, var(--blue), var(--green)); transition:width .6s ease; }
  .progress-label{ font-size:12px; color:var(--text-dim); white-space:nowrap; font-weight:600; }
  .progress-label b{ color:var(--text); }

  .menu-grid{ display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:1fr; gap:14px; flex:1; }
  .menu-card{
    position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
    padding:16px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; overflow:visible;
    transition:transform .18s cubic-bezier(.22,1,.36,1), border-color .18s ease, box-shadow .18s ease;
  }
  .menu-card:hover{ transform:translateY(-4px) scale(1.02); border-color:var(--blue); box-shadow:0 14px 30px rgba(78,168,255,0.18); }
  .menu-card:hover .menu-card-ic{ background:var(--blue); color:#fff; }
  .menu-card .num{ position:absolute; top:10px; right:14px; font-size:11px; color:var(--text-dim); font-weight:700; opacity:.5; }
  .menu-card-ic{
    width:38px; height:38px; border-radius:10px; background:var(--surface-2); color:var(--amber);
    display:flex; align-items:center; justify-content:center; transition:all .18s ease; margin-bottom:10px;
  }
  .menu-card-ic svg{ width:20px; height:20px; }
  .menu-card h3{ font-size:13.5px; font-weight:700; line-height:1.3; margin-bottom:4px; }
  .menu-card .tag{ font-size:10.5px; color:var(--text-dim); display:inline-flex; align-items:center; gap:5px; }
  .menu-card .tag .dot{ width:5px; height:5px; border-radius:50%; background:var(--border); }
  .menu-card.locked{ opacity:.55; cursor:not-allowed; }
  .menu-card.locked:hover{ transform:none; border-color:var(--border); box-shadow:none; }
  .menu-card.wide{ grid-column:span 2; }
  .menu-card.feature{ background:linear-gradient(135deg, rgba(78,168,255,0.14), rgba(42,114,216,0.06)); border-color:rgba(78,168,255,0.35); }

  .tooltip{
    position:absolute; bottom:calc(100% + 10px); left:12px; right:12px;
    background:#ffffff; color:#161a22; font-size:11.5px; font-weight:600; line-height:1.4;
    padding:9px 12px; border-radius:10px;
    box-shadow:0 12px 28px rgba(0,0,0,0.45);
    opacity:0; transform:translateY(6px); pointer-events:none;
    transition:all .18s ease; z-index:20;
  }
  .tooltip::after{
    content:''; position:absolute; top:100%; left:24px;
    border:6px solid transparent; border-top-color:#ffffff;
  }
  .menu-card:hover .tooltip{ opacity:1; transform:translateY(0); }

  #toast{
    position:absolute; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
    background:var(--surface-2); border:1px solid var(--border); padding:12px 20px; border-radius:12px;
    display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600;
    opacity:0; pointer-events:none; transition:all .3s cubic-bezier(.22,1,.36,1); z-index:50;
    box-shadow:0 12px 30px rgba(0,0,0,0.4);
  }
  #toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
  #toast svg{ width:16px; height:16px; color:var(--green); }
  .toast-clone{
    position:absolute; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
    background:var(--surface-2); border:1px solid var(--border); padding:12px 20px; border-radius:12px;
    display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600;
    opacity:0; pointer-events:none; transition:all .3s cubic-bezier(.22,1,.36,1); z-index:50;
    box-shadow:0 12px 30px rgba(0,0,0,0.4);
  }
  .toast-clone.show{ opacity:1; transform:translateX(-50%) translateY(0); }
  .toast-clone svg{ width:16px; height:16px; color:var(--green); }

  @media (max-width:480px){ .guide-cards{ grid-template-columns:1fr 1fr; } }

  /* ============ MATERI (accordion layout) ============ */
  .materi-body{ flex:1; display:flex; gap:28px; padding:22px 34px; overflow:hidden; position:relative; z-index:1; }
  .materi-left{ flex:1.15; display:flex; flex-direction:column; min-width:0; min-height:0; }
  .materi-right{ flex:0.85; display:flex; flex-direction:column; }
  .materi-title{ font-size:20px; font-weight:800; margin-bottom:4px; color:var(--text); flex-shrink:0; }
  .materi-desc{ font-size:13px; color:var(--text-dim); margin-bottom:16px; line-height:1.5; flex-shrink:0; }
  .accordion{ flex:1; min-height:0; display:flex; flex-direction:column; gap:8px; overflow-y:auto; padding-right:4px; }
  .accordion::-webkit-scrollbar{ width:6px; }
  .accordion::-webkit-scrollbar-thumb{ background:var(--border); border-radius:6px; }
  .acc-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; flex-shrink:0; }
  .acc-head{
    display:flex; align-items:center; gap:12px; padding:13px 16px; cursor:pointer;
    transition:color .15s ease; color:var(--text);
  }
  .acc-head:hover{ color:var(--blue); }
  .acc-num{
    width:24px; height:24px; border-radius:7px; background:var(--surface-2); color:var(--amber);
    display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; flex-shrink:0;
  }
  .acc-head span.t{ font-size:13.5px; font-weight:700; flex:1; }
  .acc-chevron{ width:16px; height:16px; color:var(--text-dim); transition:transform .25s ease; flex-shrink:0; }
  .acc-item.open .acc-chevron{ transform:rotate(180deg); }
  .acc-panel{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
  .acc-item.open .acc-panel{ max-height:320px; padding:0 12px 12px; }
  .acc-panel-in{
    padding:12px 14px; font-size:12.5px; color:var(--text-dim); line-height:1.6;
    background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1);
    border-radius:10px;
  }

  .materi-visual{
    flex:1; border-radius:var(--radius-md); border:1px solid var(--border);
    background:linear-gradient(160deg, var(--surface), var(--surface-2));
    display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  }
  .materi-visual svg{ width:60%; height:60%; color:var(--blue); opacity:.9; }
  .materi-badge{
    position:absolute; top:14px; left:14px; font-size:11px; color:var(--text-dim);
    background:rgba(0,0,0,0.3); border:1px solid var(--border); padding:5px 10px; border-radius:999px;
  }
  .materi-cta{
    margin-top:14px; padding:16px; border-radius:var(--radius-md);
    background:linear-gradient(135deg, rgba(78,168,255,0.14), rgba(42,114,216,0.05));
    border:1px solid rgba(78,168,255,0.3);
    display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .materi-cta div h4{ font-size:13px; font-weight:700; margin-bottom:2px; }
  .materi-cta div p{ font-size:11.5px; color:var(--text-dim); }
  .materi-footer{ padding:16px 34px; display:flex; justify-content:space-between; border-top:1px solid var(--border); position:relative; z-index:1; }

  /* ============ VIRTUAL ART STUDIO (simulation) ============ */
  .studio-body{ flex:1; display:flex; gap:18px; padding:18px 30px; overflow:hidden; position:relative; z-index:1; }
  .studio-stage-wrap{
    flex:1.4; border-radius:var(--radius-md); border:1px solid var(--border);
    background:
      linear-gradient(rgba(78,168,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(78,168,255,0.05) 1px, transparent 1px),
      linear-gradient(180deg, #232b3a, #171c26);
    background-size:24px 24px, 24px 24px, 100% 100%;
    position:relative; overflow:hidden;
  }
  .stage-floor{
    position:absolute; left:0; right:0; bottom:0; height:35%;
    background:linear-gradient(180deg, rgba(20,24,32,0), rgba(10,12,18,0.55));
    border-top:1px solid rgba(255,255,255,0.06);
  }
  .studio-hint{
    position:absolute; top:10px; left:10px; font-size:10.5px; font-weight:600; color:#eaf4ff;
    background:linear-gradient(135deg, rgba(78,168,255,0.28), rgba(42,114,216,0.16));
    padding:5px 10px; border-radius:999px; border:1px solid rgba(78,168,255,0.55);
    display:flex; align-items:center; gap:6px; z-index:5; width:fit-content; max-width:calc(100% - 20px);
    box-shadow:0 3px 12px rgba(78,168,255,0.2);
    animation:hintPulse 2.6s ease-in-out infinite;
  }
  .studio-hint svg{ flex-shrink:0; color:var(--blue); width:11px; height:11px; }
  @keyframes hintPulse{
    0%,100%{ box-shadow:0 3px 12px rgba(78,168,255,0.2); }
    50%{ box-shadow:0 3px 18px rgba(78,168,255,0.4); }
  }
  .placed-item{
    position:absolute; width:64px; height:64px; cursor:grab;
    display:flex; align-items:center; justify-content:center;
    color:var(--amber); filter:drop-shadow(0 8px 14px rgba(0,0,0,0.5));
    touch-action:none; user-select:none;
  }
  .placed-item:active{ cursor:grabbing; }
  .placed-item svg{ width:100%; height:100%; }
  .placed-item .del{
    position:absolute; top:-8px; right:-8px; width:18px; height:18px; border-radius:50%;
    background:var(--rec); color:#fff; display:none; align-items:center; justify-content:center;
    font-size:11px; font-weight:800; border:2px solid var(--bg);
  }
  .placed-item:hover .del{ display:flex; }

  .studio-panel{ flex:1; display:flex; flex-direction:column; gap:14px; min-width:0; overflow-y:auto; padding-right:2px; }
  .panel-block{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:14px; }
  .panel-block h4{ font-size:12.5px; font-weight:700; margin-bottom:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.4px; }
  .prop-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px 8px; }
  .prop-item{
    aspect-ratio:1; border-radius:10px; background:var(--surface-2); border:1px solid var(--border);
    display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--amber);
    cursor:grab; position:relative; touch-action:none; transition:transform .15s ease, border-color .15s ease;
    overflow:hidden;
  }
  .prop-item:hover{ border-color:var(--amber); transform:translateY(-2px); }
  .prop-item svg{ width:24px; height:24px; }
  .prop-item .item-thumb{
    display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  }
  .prop-item.has-img .item-fallback{ display:none; }
  .prop-item.has-img .item-thumb{ display:block; }
  .prop-item .plabel{
    position:relative; z-index:1; margin-top:4px; text-align:center; font-size:9.5px; color:var(--text-dim);
    font-weight:600;
  }
  .prop-item.has-img .plabel{
    position:absolute; z-index:2; bottom:0; left:0; right:0; margin:0; padding:3px 2px 4px;
    color:#fff; background:linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  }
  .palette-row{ display:flex; gap:8px; flex-wrap:wrap; }
  .palette-swatch{
    width:30px; height:30px; border-radius:9px; cursor:pointer; border:2px solid transparent;
    transition:transform .15s ease, border-color .15s ease;
  }
  .palette-swatch:hover{ transform:scale(1.1); }
  .palette-swatch.active{ border-color:#fff; }
  .studio-save-btn{ width:100%; justify-content:center; margin-top:2px; }
  .drag-ghost{
    position:fixed; width:56px; height:56px; pointer-events:none; z-index:999;
    color:var(--amber); filter:drop-shadow(0 8px 14px rgba(0,0,0,0.5)); opacity:.9;
  }
  .drag-ghost svg{ width:100%; height:100%; }

  /* ============ FLIP CARDS (Materi Layout) ============ */
  .flip-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; width:100%; max-width:980px; }
  .flip-card{ height:200px; }

  .materi-tip{
    margin-top:14px; padding:14px 16px; border-radius:var(--radius-md);
    background:linear-gradient(135deg, rgba(255,178,56,0.1), rgba(255,178,56,0.02));
    border:1px solid rgba(255,178,56,0.3);
    font-size:12px; color:var(--text-dim); line-height:1.6;
    display:flex; gap:10px; align-items:flex-start; max-width:980px; width:100%;
  }
  .materi-tip::before{ content:'💡'; font-size:15px; flex-shrink:0; }
  .materi-tip b{ color:var(--amber); }
  .flip-card{ perspective:1200px; height:230px; cursor:pointer; }
  .flip-inner{
    position:relative; width:100%; height:100%; transition:transform .55s cubic-bezier(.22,1,.36,1);
    transform-style:preserve-3d;
  }
  .flip-card.flipped .flip-inner{ transform:rotateY(180deg); }
  .flip-face{
    position:absolute; inset:0; backface-visibility:hidden; border-radius:var(--radius-md);
    border:1px solid var(--border); padding:20px; display:flex; flex-direction:column;
  }
  .flip-front{ background:var(--surface); align-items:flex-start; justify-content:space-between; }
  .flip-front .fc-ic{
    width:42px; height:42px; border-radius:11px; background:rgba(78,168,255,0.12); color:var(--blue);
    display:flex; align-items:center; justify-content:center;
  }
  .flip-front .fc-ic svg{ width:22px; height:22px; }
  .flip-front h3{ font-size:15px; font-weight:700; margin-top:10px; }
  .flip-front .fc-hint{ font-size:11px; color:var(--text-dim); display:flex; align-items:center; gap:5px; }
  .flip-back{
    background:linear-gradient(150deg, var(--surface-2), var(--surface));
    transform:rotateY(180deg); justify-content:center; border-color:rgba(78,168,255,0.35);
  }
  .flip-back h4{ font-size:13px; font-weight:700; margin-bottom:8px; color:var(--blue); }
  .flip-back p{ font-size:12px; color:var(--text-dim); line-height:1.55; }

  /* ============ MODAL (Uji Sudut Pandang) ============ */
  .modal-overlay{
    position:absolute; inset:0; background:rgba(6,8,12,0.72);
    display:none; align-items:center; justify-content:center; z-index:80;
    backdrop-filter:blur(2px);
  }
  .modal-overlay.show{ display:flex; }
  .modal-box{
    width:420px; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:22px; animation:fadeIn .25s ease both;
  }
  .modal-box h3{ font-size:15px; font-weight:700; margin-bottom:4px; }
  .modal-box p.sub{ font-size:12px; color:var(--text-dim); margin-bottom:16px; }
  .modal-viz{
    height:180px; border-radius:var(--radius-md); border:1px solid var(--border);
    background:linear-gradient(180deg,#1a2029,#12151c);
    display:flex; align-items:center; justify-content:center; margin-bottom:16px; position:relative; overflow:hidden;
  }
  .modal-viz svg{ width:80%; height:80%; }
  .modal-close-btn{ width:100%; justify-content:center; }

  /* ============ QUIZ (diagnostik & evaluasi) ============ */
  .quiz-wrap{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px 60px; position:relative; z-index:1; }
  .quiz-dots{ display:flex; gap:7px; margin-bottom:24px; }
  .quiz-dots span{ width:8px; height:8px; border-radius:50%; background:var(--border); transition:.2s; }
  .quiz-dots span.on{ background:var(--blue); }
  .quiz-dots span.done{ background:var(--green); }
  .quiz-card{ width:100%; max-width:640px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; }
  .quiz-qnum{ font-size:12px; color:var(--blue); font-weight:700; margin-bottom:10px; }
  .quiz-q{ font-size:19px; font-weight:700; margin-bottom:24px; line-height:1.4; }
  .quiz-opts{ display:flex; flex-direction:column; gap:10px; }
  .quiz-opt{
    display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:12px;
    border:1px solid var(--border); background:var(--surface-2); cursor:pointer;
    transition:transform .15s ease, border-color .15s ease, background .15s ease;
  }
  .quiz-opt:hover{ transform:translateX(4px); border-color:var(--blue); }
  .quiz-opt .letter{
    width:26px; height:26px; border-radius:8px; background:var(--bg); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0;
  }
  .quiz-opt span.txt{ font-size:14px; }
  .quiz-opt.correct{ border-color:var(--green); background:rgba(61,220,154,0.12); }
  .quiz-opt.wrong{ border-color:var(--rec); background:rgba(255,90,78,0.12); }
  .quiz-opt.disabled{ pointer-events:none; opacity:.75; }
  .quiz-result-box{ text-align:center; }
  .quiz-result-box .score{ font-size:46px; font-weight:800; color:var(--blue); margin:8px 0; }

  /* ============ TABS (Character Styling Studio) ============ */
  .tabs-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:10px; }
  .tab-btn{
    padding:8px 6px; border-radius:9px; border:1px solid var(--border); background:var(--surface-2);
    color:var(--text-dim); font-size:11px; font-weight:700; cursor:pointer; transition:all .15s ease;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    aspect-ratio:1; position:relative; overflow:hidden; text-align:center;
  }
  .tab-btn:hover{ color:var(--text); }
  .tab-btn.active{ background:var(--blue); color:#fff; border-color:var(--blue); }
  .tab-btn .item-thumb{ display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
  .tab-btn.has-img .item-thumb{ display:block; }
  .tab-btn .tab-label{ position:relative; z-index:1; }
  .tab-btn.has-img{ color:#fff; }
  .tab-btn.has-img .tab-label{
    position:absolute; z-index:2; bottom:0; left:0; right:0; margin:0; padding:4px 2px 5px; font-size:9.5px;
    background:linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  }
  .tab-btn.has-img.active{ background:var(--surface-2); box-shadow:0 0 0 3px var(--blue) inset; }
  .tab-btn.has-img.active::after{
    content:'✓'; position:absolute; top:4px; right:4px; z-index:3;
    width:16px; height:16px; border-radius:50%; background:var(--blue); color:#fff;
    font-size:10px; display:flex; align-items:center; justify-content:center; font-weight:900;
  }
  .char-stage{
    flex:1; border-radius:var(--radius-md); border:1px solid var(--border);
    background:linear-gradient(180deg,#1c2230,#12151c); display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
  }
  .char-stage svg{ height:78%; transition:filter .3s ease; }
  .char-breathe{ animation:breathe 3.4s ease-in-out infinite; }
  @keyframes breathe{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-4px);} }

  /* ============ TIMELINE (Video Editing Workspace) ============ */
  .edit-monitor{
    height:52%; border-radius:var(--radius-md); border:1px solid var(--border);
    background:linear-gradient(160deg,#1b2130,#11151d); display:flex; align-items:center; justify-content:center;
    margin-bottom:12px; position:relative;
  }
  .edit-monitor svg{ width:70px; height:70px; color:var(--text-dim); opacity:.5; }
  .play-btn{
    position:absolute; width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.08);
    border:1px solid var(--border); display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff;
  }
  .play-btn svg{ width:18px; height:18px; opacity:1; color:#fff; }
  .timeline-wrap{ flex:1; border-radius:var(--radius-md); border:1px solid var(--border); background:var(--surface); padding:14px; display:flex; flex-direction:column; }
  .timeline-track{ position:relative; height:64px; background:var(--surface-2); border-radius:9px; display:flex; align-items:center; padding:0 6px; gap:4px; overflow:hidden; }
  .clip{
    height:46px; border-radius:7px; background:linear-gradient(160deg,#3a6fb0,#254e82);
    display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#fff;
    cursor:pointer; border:2px solid transparent; flex-shrink:0; position:relative;
  }
  .clip.selected{ border-color:var(--amber); }
  .clip.playing-hl{ box-shadow:0 0 0 2px var(--green) inset; }
  .transition-slot{
    width:14px; height:46px; border-radius:5px; background:var(--surface); border:1px dashed var(--border);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; font-size:10px; color:var(--text-dim);
  }
  .transition-slot.filled{ background:var(--amber); border-style:solid; color:#231a00; }
  .playhead{ position:absolute; top:0; bottom:0; width:2px; background:var(--rec); left:6px; transition:left .05s linear; }
  .edit-controls{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
  .edit-controls .btn{ padding:9px 14px; font-size:12.5px; }
  .slider-row{ display:flex; align-items:center; gap:10px; margin-top:10px; font-size:11.5px; color:var(--text-dim); }
  .slider-row input[type=range]{ flex:1; accent-color:var(--blue); }
  .export-progress{ height:6px; border-radius:99px; background:var(--surface-2); margin-top:10px; overflow:hidden; display:none; }
  .export-progress.show{ display:block; }
  .export-progress-fill{ height:100%; width:0%; background:linear-gradient(90deg,var(--blue),var(--green)); border-radius:99px; transition:width .25s linear; }

  /* ============ FILE MANAGER ============ */
  .file-body{ flex:1; display:flex; gap:18px; padding:20px 30px; position:relative; z-index:1; overflow:hidden; }
  .folder-col{ flex:1.2; display:flex; gap:14px; }
  .folder-box{
    flex:1; border-radius:var(--radius-md); border:2px dashed var(--border); background:var(--surface);
    display:flex; flex-direction:column; align-items:center; padding:18px 10px; gap:10px; transition:all .15s ease;
  }
  .folder-box.dragover{ border-color:var(--blue); background:rgba(78,168,255,0.08); }
  .folder-box .fic{ width:40px; height:40px; color:var(--amber); }
  .folder-box h4{ font-size:12.5px; font-weight:700; }
  .folder-items{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
  .folder-items .fitem{ font-size:9.5px; background:var(--surface-2); border-radius:5px; padding:3px 6px; color:var(--green); }
  .asset-col{ flex:1; display:flex; flex-direction:column; gap:14px; }
  .asset-list{ display:flex; flex-direction:column; gap:8px; }
  .asset-chip{
    display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px;
    background:var(--surface-2); border:1px solid var(--border); cursor:grab; touch-action:none;
    font-size:12.5px; transition:opacity .15s ease;
  }
  .asset-chip .aic{ width:16px; height:16px; color:var(--blue); flex-shrink:0; }
  .asset-chip .asize{ margin-left:auto; font-size:10px; color:var(--text-dim); }
  .asset-chip.placed{ display:none; }

  /* ============ CHALLENGE (matching) ============ */
  .challenge-body{ flex:1; display:flex; gap:36px; padding:24px 60px; align-items:center; position:relative; z-index:1; }
  .challenge-col{ flex:1; display:flex; flex-direction:column; gap:14px; }
  .challenge-card{
    padding:16px 18px; border-radius:12px; background:var(--surface); border:1px solid var(--border);
    font-size:13.5px; font-weight:700; cursor:grab; touch-action:none; transition:opacity .15s ease, border-color .2s ease;
  }
  .challenge-card.matched{ opacity:0; pointer-events:none; }
  .challenge-target{
    padding:16px 18px; border-radius:12px; border:2px dashed var(--border); font-size:12px; color:var(--text-dim);
    min-height:56px; display:flex; align-items:center; transition:all .2s ease;
  }
  .challenge-target.filled{ border-style:solid; border-color:var(--green); background:rgba(61,220,154,0.08); color:var(--text); }
  .challenge-target.wrong-flash{ border-color:var(--rec); background:rgba(255,90,78,0.1); }

  /* ============ HASIL DASHBOARD ============ */
  .hasil-body{ flex:1; display:flex; align-items:center; justify-content:center; gap:50px; padding:20px 60px; position:relative; z-index:1; }
  .score-ring-wrap{ position:relative; width:190px; height:190px; flex-shrink:0; }
  .score-ring-wrap svg{ width:100%; height:100%; transform:rotate(-90deg); }
  .score-ring-bg{ fill:none; stroke:var(--surface-2); stroke-width:10; }
  .score-ring-fill{ fill:none; stroke:url(#ringGrad); stroke-width:10; stroke-linecap:round; transition:stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1); }
  .score-ring-text{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
  .score-ring-text .num{ font-size:38px; font-weight:800; }
  .score-ring-text .lbl{ font-size:11px; color:var(--text-dim); }
  .hasil-bars{ flex:1; max-width:420px; }
  .hasil-bars h3{ font-size:15px; font-weight:700; margin-bottom:14px; }
  .hbar-row{ margin-bottom:12px; }
  .hbar-row .hlabel{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--text-dim); margin-bottom:5px; }
  .hbar-track{ height:8px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
  .hbar-fill{ height:100%; border-radius:99px; background:linear-gradient(90deg,var(--blue),var(--green)); width:0%; transition:width 1s ease; }
  .hasil-actions{ margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }
  .hasil-note{ font-size:12px; color:var(--text-dim); margin-top:14px; line-height:1.6; padding:12px 14px; border-radius:10px; background:var(--surface); border:1px solid var(--border); }

  /* ============ SERTIFIKAT ============ */
  .cert-body{ flex:1; display:flex; align-items:center; justify-content:center; gap:40px; padding:20px 60px; position:relative; z-index:1; }
  .cert-canvas-wrap{ border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); box-shadow:0 20px 50px rgba(0,0,0,0.5); }
  .cert-canvas-wrap canvas{ display:block; width:440px; height:auto; }
  .cert-form{ width:260px; display:flex; flex-direction:column; gap:12px; }
  .cert-form label{ font-size:11.5px; color:var(--text-dim); font-weight:600; }
  .cert-form input{
    padding:11px 13px; border-radius:10px; background:var(--surface); border:1px solid var(--border);
    color:var(--text); font-size:13px; font-family:var(--sans);
  }
  .cert-form input:focus{ outline:none; border-color:var(--blue); }
  .cert-credit{ position:absolute; bottom:16px; right:24px; font-size:10.5px; color:var(--text-dim); opacity:.7; z-index:2; }

  /* ============ B-FLIX WORDMARK & COVER ENTRANCE ============ */
  .bflix-wordmark{
    font-size:34px; font-weight:800; letter-spacing:1.5px; line-height:1;
    background:linear-gradient(90deg, #ff5a4e, #ffb238 55%, #4ea8ff);
    -webkit-background-clip:text; background-clip:text; color:transparent;
    margin-bottom:14px; filter:drop-shadow(0 4px 18px rgba(255,90,78,0.25));
  }
  .cv-anim{
    opacity:0; transform:translateY(16px);
    animation:cvIn .6s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay:calc(var(--d) * 90ms);
  }
  @keyframes cvIn{ to{ opacity:1; transform:translateY(0); } }
  .spin-in{
    opacity:0; transform:scale(.4) rotate(-30deg);
    animation: spinIn .55s cubic-bezier(.22,1.4,.36,1) forwards, iconFloat 3.6s ease-in-out infinite;
    animation-delay: calc(700ms + var(--od)), calc(1300ms + var(--od));
  }
  @keyframes spinIn{ to{ opacity:1; transform:scale(1) rotate(0); } }
  @keyframes iconFloat{ 0%,100%{ margin-top:0px; } 50%{ margin-top:-7px; } }
  #scene-cover.active .cv-anim,
  #scene-cover.active .spin-in{ animation-play-state:running; }

  /* ============ MENU ENTRANCE (staggered) ============ */
  .fade-in .menu-card{
    opacity:0; transform:translateY(18px) scale(.97);
    animation:menuCardIn .5s cubic-bezier(.22,1,.36,1) forwards;
  }
  .fade-in .menu-card:nth-child(1){ animation-delay:.03s; }
  .fade-in .menu-card:nth-child(2){ animation-delay:.09s; }
  .fade-in .menu-card:nth-child(3){ animation-delay:.15s; }
  .fade-in .menu-card:nth-child(4){ animation-delay:.21s; }
  .fade-in .menu-card:nth-child(5){ animation-delay:.27s; }
  .fade-in .menu-card:nth-child(6){ animation-delay:.33s; }
  .fade-in .menu-card:nth-child(7){ animation-delay:.39s; }
  .fade-in .menu-card:nth-child(8){ animation-delay:.45s; }
  @keyframes menuCardIn{ to{ opacity:1; transform:translateY(0) scale(1); } }
  .fade-in .menu-head{
    opacity:0; transform:translateX(-14px);
    animation:menuHeadIn .5s cubic-bezier(.22,1,.36,1) forwards;
  }
  @keyframes menuHeadIn{ to{ opacity:1; transform:translateX(0); } }
  .fade-in .progress-wrap{
    opacity:0; animation:menuHeadIn .5s cubic-bezier(.22,1,.36,1) forwards; animation-delay:.1s;
  }
  .menu-card{ will-change:transform, opacity; }
  .menu-card:hover{ box-shadow:0 16px 34px rgba(78,168,255,0.22), 0 0 0 1px rgba(78,168,255,0.15) inset; }

  /* soundwave icon used on sound toggle */
  .soundwave-bars{ display:flex; align-items:center; gap:2px; height:14px; }
  .soundwave-bars span{ width:2.5px; background:var(--blue); border-radius:2px; animation:wavePulse 0.9s ease-in-out infinite; }
  .soundwave-bars span:nth-child(1){ height:5px; animation-delay:0s; }
  .soundwave-bars span:nth-child(2){ height:12px; animation-delay:.15s; }
  .soundwave-bars span:nth-child(3){ height:8px; animation-delay:.3s; }
  @keyframes wavePulse{ 0%,100%{ transform:scaleY(0.5);} 50%{ transform:scaleY(1);} }
  .soundwave-bars.muted span{ animation:none; height:2px !important; background:var(--text-dim); }
  #globalSoundToggle{ position:absolute; bottom:16px; right:16px; top:auto; z-index:60; background:rgba(16,19,27,0.7); backdrop-filter:blur(4px); }

/* =====================================================================
   TAMBAHAN: KARTU "CONTOH VIDEO" (Materi Tata Artistik & Materi Editing)
   -----------------------------------------------------------------------
   Blok CSS ini murni tambahan — tidak mengubah aturan/kelas yang sudah
   ada di atas.
===================================================================== */
.materi-video-card{
  margin-top:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:16px;
}
.materi-video-card h4{
  font-size:13.5px;
  color:var(--text);
  margin:0 0 4px;
  display:flex;
  align-items:center;
}
.materi-video-card p{
  font-size:12px;
  color:var(--text-dim);
  margin:0 0 12px;
  line-height:1.5;
}
.video-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:10px;
  overflow:hidden;
  background:#0c0f16;
  border:1px solid var(--border);
}
.video-frame video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#000;
}
.video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding:20px;
  color:var(--text-dim);
  background:linear-gradient(180deg, rgba(78,168,255,0.06), rgba(0,0,0,0.15));
}
.video-placeholder svg{ color:var(--blue); opacity:.8; }
.video-placeholder span{ font-size:11.5px; line-height:1.6; }
.video-placeholder code{
  background:rgba(78,168,255,0.12);
  color:var(--blue);
  padding:1px 6px;
  border-radius:5px;
  font-size:11px;
}

/* =====================================================================
   TAMBAHAN: BACKGROUND FOTO KHUSUS HALAMAN COVER
   -----------------------------------------------------------------------
   Hanya scene-cover yang memakai foto latar sungguhan; scene lain tetap
   memakai placeholder SVG bawaan template.
===================================================================== */
.cover-bg-photo{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
  opacity:0.55;
}
.cover-bg-overlay{
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(10,12,18,0.92) 0%, rgba(10,12,18,0.72) 42%, rgba(10,12,18,0.35) 75%, rgba(10,12,18,0.15) 100%),
    linear-gradient(180deg, rgba(10,12,18,0.25) 0%, rgba(10,12,18,0.55) 100%);
}
#scene-cover .cover-grid{ position:relative; z-index:1; }

/* =====================================================================
   TAMBAHAN: FOTO KAMERA ASLI DI COVER (menggantikan ikon SVG jika tersedia)
===================================================================== */
#coverCameraImg{
  width:96%; height:96%;
  object-fit:contain;
  filter:drop-shadow(0 8px 24px rgba(78,168,255,0.35));
}
.studio-core.has-photo{
  background:none; border:none; box-shadow:none;
}
