/* ===== Segera hadir: dua ruang baru (teaser, tidak bisa diklik) ===== */
.upcoming { padding-block: 0 110px; }
.upcoming .section-heading { margin-bottom: 40px; }
.upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upcoming-card { min-height: 560px; padding: 38px; display: flex; flex-direction: column; align-items: flex-start; border: 1.5px dashed rgba(21,25,20,.4); cursor: default; user-select: none; }
.upcoming-kata { background: #ece9ff; }
.upcoming-misi { background: #e3f5e8; }
.upcoming-badge { display: inline-flex; align-items: center; gap: 8px; margin: 46px 0 10px; padding: 7px 12px 7px 10px; border-radius: 99px; background: var(--ink); color: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.upcoming-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: soon-pulse 1.6s ease-in-out infinite; }
@keyframes soon-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.5); opacity: .45; } }
.upcoming-card h3 { max-width: 520px; font-size: clamp(30px, 3.2vw, 42px); }
.upcoming-card .product-tags { margin-bottom: 22px; }
.upcoming-visual { position: relative; width: 100%; margin-top: auto; }

/* --- kartu 04: kosakata bertumpuk --- */
.glyph-board { min-height: 262px; }
.glyph-tile { position: absolute; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: 63%; padding: 15px 17px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: 5px 6px 0 var(--ink); }
.glyph-tile b { display: block; font-size: 33px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.glyph-tile small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.glyph-tile small em { font-style: normal; color: var(--ink); }
.glyph-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); }
.glyph-play::before { content: ""; margin-left: 3px; border-left: 11px solid var(--acid); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.glyph-pen::before { content: "\270E"; margin: 0; border: 0; color: var(--acid); font-size: 19px; font-style: normal; line-height: 1; }
.glyph-wave { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 6px; }
.glyph-wave i { width: 4px; height: 12px; border-radius: 3px; background: var(--ink); animation: glyph-wave 1s ease-in-out infinite; }
.glyph-wave i:nth-child(2) { height: 24px; animation-delay: .15s; }.glyph-wave i:nth-child(3) { height: 32px; animation-delay: .3s; }.glyph-wave i:nth-child(4) { height: 20px; animation-delay: .45s; }.glyph-wave i:nth-child(5) { height: 10px; animation-delay: .6s; }
@keyframes glyph-wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
.glyph-zh { z-index: 1; left: 0; top: 0; background: var(--blue); transform: rotate(-4deg); }
.glyph-ja { z-index: 2; right: 0; top: 78px; transform: rotate(3deg); }
.glyph-ko { z-index: 3; left: 7%; bottom: 0; background: var(--acid); transform: rotate(-2deg); }

/* --- kartu 05: papan misi + blok perintah --- */
.quest-board { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.quest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px; border: 2px solid var(--ink); border-radius: 18px; background: #16281d; box-shadow: 5px 6px 0 var(--ink); }
.quest-grid i { position: relative; aspect-ratio: 1; border-radius: 9px; background: rgba(255,255,255,.07); }
.quest-grid .is-path { background: rgba(218,250,87,.32); }
.quest-grid .is-wall { background: rgba(255,255,255,.3); }
.quest-grid .is-bot { background: var(--acid); }
.quest-grid .is-bot::before, .quest-grid .is-bot::after { content: ""; position: absolute; top: 34%; width: 18%; height: 18%; border-radius: 50%; background: var(--ink); }
.quest-grid .is-bot::before { left: 24%; }.quest-grid .is-bot::after { right: 24%; }
.quest-grid .is-goal { background: var(--orange); }
.quest-grid .is-goal::after { content: "\2605"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 22px; font-style: normal; }
.quest-cmds { display: flex; flex-direction: column; gap: 7px; }
.quest-cmds span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 12px; font-weight: 800; box-shadow: 3px 4px 0 var(--ink); }
.quest-cmds span i { font-style: normal; font-size: 14px; }
.quest-cmds .cmd-loop { background: var(--violet); color: #fff; }
.quest-cmds .cmd-loop b { padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.2); font-size: 11px; }
.quest-cmds .cmd-run { margin-top: 5px; justify-content: center; background: var(--ink); color: var(--acid); }

/* --- footer --- */
.footer-soon { color: var(--muted); font-weight: 700; }
.footer-soon::before { content: "\2726  "; color: var(--violet); }

/* --- tema Editorial --- */
html[data-theme="editorial"] .upcoming-card { border: 1px dashed rgba(23,36,59,.55); }
html[data-theme="editorial"] .upcoming-kata { background: #e6e2ee; }
html[data-theme="editorial"] .upcoming-misi { background: #e1e8db; }
html[data-theme="editorial"] .upcoming-badge, html[data-theme="editorial"] .upcoming-badge i, html[data-theme="editorial"] .glyph-play, html[data-theme="editorial"] .quest-cmds .cmd-loop b { border-radius: 0; }
html[data-theme="editorial"] .glyph-tile, html[data-theme="editorial"] .quest-grid, html[data-theme="editorial"] .quest-cmds span { border-color: #17243b; border-radius: 0; transform: none; box-shadow: 7px 8px 0 rgba(23,36,59,.2); }
html[data-theme="editorial"] .quest-grid i { border-radius: 0; }
html[data-theme="editorial"] .glyph-tile b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
html[data-theme="editorial"] .glyph-zh { background: #dcecf4; }
html[data-theme="editorial"] .glyph-ja { background: #fffdf8; }
html[data-theme="editorial"] .glyph-ko { background: #e9d27b; }
html[data-theme="editorial"] .quest-grid { background: #17243b; }
html[data-theme="editorial"] .quest-grid .is-path { background: rgba(242,193,78,.35); }
html[data-theme="editorial"] .quest-cmds .cmd-loop { background: #a83f32; }
html[data-theme="editorial"] .quest-cmds .cmd-run { background: #17243b; color: #f2c14e; }
html[data-theme="editorial"] .footer-soon::before { color: #a83f32; }

@media (max-width: 1050px) {
  .upcoming-grid { grid-template-columns: 1fr; }
  .upcoming-card { min-height: 0; }
  .upcoming-visual { max-width: 620px; }
}
@media (max-width: 720px) {
  .upcoming { padding-bottom: 75px; }
  .upcoming-card { padding: 28px; border-radius: 26px; }
  .upcoming-badge { margin-top: 38px; }
  .upcoming-card h3 { font-size: 32px; }
  .glyph-board { min-height: 240px; }
  .glyph-tile { width: 70%; padding: 12px 14px; }.glyph-tile b { font-size: 27px; }.glyph-ja { top: 70px; }
  .quest-board { grid-template-columns: 1fr; }
  .quest-grid { gap: 4px; padding: 9px; }.quest-grid i { border-radius: 6px; }
  .quest-cmds { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .quest-cmds span { padding: 7px 10px; font-size: 11px; }.quest-cmds .cmd-run { margin: 0 0 0 auto; }
}
