.world-switch {
  padding: 54px 20px 12px;
  background: #120d18;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.world-switch .container { max-width: 1180px; }
.world-switch-head { text-align: center; margin-bottom: 26px; }
.world-switch-head span { color: #ff91c8; font: 700 12px/1.2 "Courier New", monospace; letter-spacing: .28em; text-transform: uppercase; }
.world-switch-head h2 { color: #fff; margin: 10px 0 0; font: 800 clamp(24px, 4vw, 40px)/1.1 Quicksand, sans-serif; letter-spacing: -.02em; }
.world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.world-card { position: relative; overflow: hidden; min-height: 210px; padding: 30px; border-radius: 18px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.world-card::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.world-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; }
.world-card-retro::before { background: linear-gradient(135deg, #ff71b6, #ad2c78 60%, #5a1647); }
.world-card-retro::after { background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,.08) 8px 9px); }
.world-card-cyber::before { background: linear-gradient(135deg, #102b2a, #0b1622 60%, #050a0f); }
.world-card-cyber::after { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(91,255,181,.06) 22px 23px); }
.world-card small { color: rgba(255,255,255,.78); font: 700 11px/1.2 "Courier New", monospace; letter-spacing: .22em; }
.world-card strong { color: #fff; font: 800 clamp(22px, 3vw, 32px)/1.1 Quicksand, sans-serif; margin: 10px 0; }
.world-card em { color: rgba(255,255,255,.82); font-style: normal; font-size: 14px; max-width: 430px; }
.world-card span { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; font: 700 11px/1 "Courier New", monospace; letter-spacing: .14em; }
.world-card-retro span { background: rgba(93,19,64,.35); }
.world-card-cyber span { border-color: #5bffb5; color: #9dffd1; background: rgba(9,45,33,.6); }

.cyber-arcade {
  position: relative;
  overflow: hidden;
  background: #0a1016;
  color: #d6e4e2;
  padding: 76px 0 90px;
  border-top: 1px solid rgba(91, 255, 181, .2);
  font-family: "Courier New", ui-monospace, monospace;
}

.cyber-arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 106, 117, .22), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(91, 255, 181, .08), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
}

.cyber-arcade .container { position: relative; z-index: 1; max-width: 1180px; }
.cyber-banner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 46px; align-items: center; margin-bottom: 42px; }
.cyber-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #5bffb5; font: 700 12px/1 "Courier New", monospace; letter-spacing: .24em; text-transform: uppercase; }
.cyber-eyebrow::before { content: ""; width: 9px; height: 9px; background: #5bffb5; box-shadow: 0 0 14px #5bffb5; }
.cyber-banner h2 { color: #f2fff9; font: 800 clamp(34px, 6vw, 68px)/.96 Quicksand, sans-serif; letter-spacing: -.04em; margin: 18px 0 18px; text-transform: uppercase; }
.cyber-banner h2 span { color: #5bffb5; text-shadow: 0 0 28px rgba(91,255,181,.25); }
.cyber-banner p { color: #9eb6b4; font: 400 16px/1.7 "Courier New", monospace; max-width: 680px; margin: 0 0 26px; }
.cyber-cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border: 1px solid #5bffb5; background: #5bffb5; color: #06231a; font: 800 12px/1 "Courier New", monospace; letter-spacing: .16em; text-decoration: none; box-shadow: 5px 5px 0 #153f36; transition: transform .15s ease, box-shadow .15s ease; }
.cyber-cta:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #153f36; }
.cyber-banner-art { position: relative; min-height: 280px; border: 1px solid rgba(91,255,181,.28); background: linear-gradient(160deg, #10252a, #071218); box-shadow: inset 0 0 0 6px rgba(4,12,16,.8), 12px 12px 0 rgba(20, 54, 62, .6); }
.cyber-banner-art::before { content: ""; position: absolute; left: 22px; top: 22px; width: 92px; height: 62px; background: #0b1720; border: 4px solid #38625f; box-shadow: inset 0 0 0 5px #0d2527, inset 14px 12px 0 -6px #5bffb5, inset 34px 12px 0 -6px #1d6d63; }
.cyber-banner-art::after { content: ""; position: absolute; right: 28px; bottom: 28px; width: 112px; height: 76px; background: linear-gradient(#2a4050, #182733); border: 4px solid #4e7180; box-shadow: inset 0 14px 0 #0a1a24, inset 18px 30px 0 -8px #5bffb5, inset 44px 30px 0 -8px #ffb454; }
.cyber-art-lines { position: absolute; left: 24px; right: 24px; top: 112px; color: #5bffb5; font: 700 12px/1.9 "Courier New", monospace; opacity: .85; }
.cyber-art-lines i { display: block; font-style: normal; }
.cyber-art-lines i:nth-child(2) { color: #79b8ff; }
.cyber-art-lines i:nth-child(3) { color: #ffb454; }
.cyber-art-sprite { position: absolute; left: 128px; bottom: 36px; width: 42px; height: 50px; background: #5bffb5; box-shadow: -8px 0 0 #2bbf85, 8px 0 0 #2bbf85, 0 -12px 0 #a8ffd6; clip-path: polygon(25% 0,75% 0,100% 25%,100% 100%,0 100%,0 25%); }

.cyber-safety { margin: 26px 0 0; color: #61837f; font-size: 10px; line-height: 1.7; letter-spacing: .05em; }

.cyber-shell { border: 1px solid rgba(91,255,181,.25); background: rgba(6, 15, 20, .92); box-shadow: 14px 14px 0 rgba(15, 41, 48, .55); }
.cyber-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(91,255,181,.2); background: #0d1e25; flex-wrap: wrap; }
.cyber-terminal { display: flex; align-items: center; gap: 10px; color: #7de9bd; font: 700 11px/1 "Courier New", monospace; letter-spacing: .12em; }
.term-dot { width: 8px; height: 8px; background: #5bffb5; box-shadow: 0 0 10px #5bffb5; }
.term-split { color: #3c7568; }
.cyber-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.cyber-mode-btn { border: 1px solid #355a5a; background: transparent; color: #7fa6a3; padding: 8px 12px; font: 700 10px/1 "Courier New", monospace; letter-spacing: .12em; cursor: pointer; }
.cyber-mode-btn.active { border-color: #5bffb5; background: #5bffb5; color: #06231a; }
.cyber-mode-note { margin: 0; padding: 10px 16px; color: #88a5a4; background: #0a171d; font-size: 11px; letter-spacing: .06em; border-bottom: 1px solid rgba(91,255,181,.12); }

.cyber-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; }
.cyber-side { padding: 18px; border-right: 1px solid rgba(91,255,181,.16); background: rgba(5, 13, 18, .72); display: flex; flex-direction: column; gap: 16px; }
.cyber-slot { min-width: 0; }
.cyber-main { padding: 18px; min-width: 0; }
.cyber-panel { border: 1px solid rgba(91,255,181,.2); background: #0c1a21; padding: 14px; }
.cyber-panel-head { display: flex; justify-content: space-between; gap: 8px; color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .12em; margin-bottom: 12px; }
.cyber-rank { color: #eafff6; font: 800 17px/1.2 Quicksand, sans-serif; }
.xp-track { height: 9px; margin: 12px 0 6px; background: #10272b; border: 1px solid #24534a; }
.xp-track i { display: block; height: 100%; background: linear-gradient(90deg, #2bbf85, #5bffb5); }
.xp-meta { display: flex; justify-content: space-between; gap: 8px; color: #779a98; font-size: 10px; }
.cyber-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.cyber-mini-grid div { padding: 8px 4px; text-align: center; background: #0a161b; border: 1px solid #1c3b3a; }
.cyber-mini-grid b { display: block; color: #f2fff9; font-size: 16px; }
.cyber-mini-grid span { display: block; margin-top: 4px; color: #648884; font-size: 8px; letter-spacing: .08em; }
.achievement-grid { display: grid; gap: 6px; }
.achievement-chip { display: flex; align-items: center; gap: 9px; padding: 7px 8px; background: #091519; border: 1px solid #1a3535; color: #5f7e7c; font-size: 10px; }
.achievement-chip b { width: 22px; height: 22px; display: grid; place-items: center; background: #12262a; color: #42615f; font-size: 9px; }
.achievement-chip.unlocked { color: #d8ffee; border-color: #2e8a6b; background: #0c2621; }
.achievement-chip.unlocked b { background: #5bffb5; color: #06231a; }
.score-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.score-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; color: #a7c4c1; font-size: 10px; }
.score-list li span { color: #5bffb5; }
.score-list li em { color: #ffb454; font-style: normal; }
.cyber-empty { color: #769490; font-size: 12px; margin: 0; }

.cyber-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.cyber-search, .cyber-select { min-width: 0; border: 1px solid #2b5050; background: #08171b; color: #d7eee8; padding: 11px 12px; font: 12px/1.2 "Courier New", monospace; }
.cyber-search { flex: 1; }
.cyber-select { width: 170px; }
.cyber-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: thin; }
.cyber-tab { flex: 0 0 auto; border: 1px solid #294846; background: #09171b; color: #7ba19e; padding: 9px 11px; font: 700 9px/1 "Courier New", monospace; letter-spacing: .08em; cursor: pointer; }
.cyber-tab.active { border-color: #5bffb5; background: #12332d; color: #b6ffe0; }
.cyber-daily-card { position: relative; overflow: hidden; padding: 18px; margin-bottom: 18px; border: 1px solid #3a725f; background: linear-gradient(120deg, #0d2c27, #0a171d 65%); }
.cyber-daily-card::after { content: ""; position: absolute; right: -20px; top: -30px; width: 120px; height: 120px; border: 16px solid rgba(91,255,181,.08); transform: rotate(25deg); }
.cyber-daily-tag { color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .14em; }
.cyber-daily-card h3 { color: #f1fff9; font: 800 22px/1.2 Quicksand, sans-serif; margin: 10px 0 6px; }
.cyber-daily-card p { color: #9dbbb7; font-size: 12px; margin: 0 0 10px; max-width: 620px; }
.cyber-daily-meta { color: #ffb454; font-size: 10px; letter-spacing: .1em; margin-bottom: 14px; }
.cyber-grid-head { display: flex; justify-content: space-between; align-items: center; color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .14em; margin-bottom: 10px; }
.cyber-grid-head b { color: #71918f; }
.cyber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cyber-game-card { position: relative; display: flex; flex-direction: column; min-height: 218px; padding: 14px; border: 1px solid #294a49; background: linear-gradient(155deg, #0e2026, #081319); transition: transform .15s ease, border-color .15s ease; }
.cyber-game-card:hover { transform: translateY(-3px); border-color: #5bffb5; }
.cyber-game-card.completed::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(91,255,181,.25); pointer-events: none; }
.cyber-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cyber-card-icon { width: 32px; height: 32px; display: grid; place-items: center; background: #12322d; border: 1px solid #2c6356; color: #5bffb5; font: 700 11px/1 "Courier New", monospace; text-transform: uppercase; }
.cyber-diff { padding: 5px 7px; border: 1px solid currentColor; font: 700 8px/1 "Courier New", monospace; letter-spacing: .1em; }
.cyber-diff-beginner { color: #5bffb5; }
.cyber-diff-intermediate { color: #ffb454; }
.cyber-diff-advanced { color: #ff7d9c; }
.cyber-game-card h4 { color: #e9fff7; margin: 0 0 8px; font: 800 16px/1.25 Quicksand, sans-serif; }
.cyber-game-card p { color: #87a6a3; font-size: 11px; line-height: 1.55; margin: 0 0 12px; flex: 1; }
.cyber-card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #668b88; font-size: 9px; letter-spacing: .06em; margin-bottom: 12px; }
.cyber-card-play { border: 1px solid #3a7c68; background: #102c28; color: #b4ffe0; padding: 9px 10px; font: 700 9px/1 "Courier New", monospace; letter-spacing: .12em; cursor: pointer; }
.cyber-card-play:hover { background: #5bffb5; color: #06231a; }
.cyber-card-status { margin-top: 8px; color: #5d8682; font-size: 9px; letter-spacing: .1em; }
.cyber-game-card.completed .cyber-card-status { color: #5bffb5; }

.cyber-screen { display: none; }
.cyber-screen.open { display: block; position: fixed; inset: 0; z-index: 2000; overflow-y: auto; background: rgba(3, 9, 12, .96); padding: 20px; }
.cyber-overlay { width: min(960px, 100%); margin: 0 auto; border: 1px solid #3c7a68; background: #08161b; box-shadow: 0 0 0 5px rgba(91,255,181,.06); }
.cyber-overlay.loading { padding: 60px 20px; text-align: center; color: #5bffb5; letter-spacing: .16em; }
.cyber-overlay-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #0e252a; color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .12em; }
.cyber-icon-btn { border: 1px solid #3c7568; background: transparent; color: #9fd8c4; padding: 7px 10px; font: 700 9px/1 "Courier New", monospace; cursor: pointer; }
.cyber-briefing-card, .cyber-complete-card { padding: 24px; }
.cyber-brief-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #244b46; color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .14em; }
.cyber-instructions { position: relative; padding-left: 16px; border-left: 3px solid #5bffb5; }
.cyber-instruction-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #9ab9b6; font-size: 11px; margin-bottom: 14px; }
.cyber-instruction-meta b { display: block; color: #5bffb5; font-size: 9px; letter-spacing: .12em; margin-bottom: 3px; }
.cyber-intro, .cyber-objective, .cyber-briefing { color: #b8d2cf; font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.cyber-objective { color: #ffcc7d; }
.cyber-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cyber-skills span { border: 1px solid #2c5a52; background: #0d2725; color: #8fd9bf; padding: 6px 8px; font-size: 9px; }
.cyber-rules { color: #8dabaa; font-size: 11px; border: 1px dashed #2a554f; padding: 10px; margin: 18px 0; }
.cyber-brief-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cyber-primary, .cyber-secondary, .cyber-ghost { padding: 12px 18px; border: 1px solid #5bffb5; font: 800 10px/1 "Courier New", monospace; letter-spacing: .12em; cursor: pointer; }
.cyber-primary { background: #5bffb5; color: #06231a; }
.cyber-secondary { background: #12332d; color: #b4ffe0; }
.cyber-ghost { background: transparent; color: #84aba7; border-color: #335a56; }
.cyber-play-hud { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid #224b46; color: #5bffb5; font: 700 10px/1 "Courier New", monospace; letter-spacing: .1em; }
.cyber-timer { color: #ffb454; }
.cyber-step-prompt { color: #f0fff9; font: 800 20px/1.3 Quicksand, sans-serif; margin: 22px 18px 14px; }
.cyber-evidence { white-space: pre-wrap; word-break: break-word; margin: 0 18px 16px; padding: 16px; border: 1px solid #294f4b; background: #071217; color: #bcd7d3; font: 12px/1.7 "Courier New", monospace; max-height: 320px; overflow: auto; }
.cyber-answer { padding: 0 18px; display: grid; gap: 8px; }
.cyber-option { width: 100%; text-align: left; border: 1px solid #2b5651; background: #0c2024; color: #c1ddd8; padding: 12px 14px; font: 12px/1.5 "Courier New", monospace; cursor: pointer; }
.cyber-option:hover { border-color: #5bffb5; background: #102e2a; }
.cyber-option:disabled { cursor: default; opacity: .75; }
.cyber-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #2b5651; background: #0c2024; color: #c1ddd8; font-size: 12px; line-height: 1.5; }
.cyber-check input { accent-color: #5bffb5; margin-top: 3px; }
.cyber-input { width: 100%; border: 1px solid #2b5651; background: #071217; color: #dff8f0; padding: 12px; font: 12px/1.4 "Courier New", monospace; }
.cyber-hint { margin: 16px 18px 0; padding: 12px; border: 1px dashed #2d5c53; background: #0a1c20; }
.cyber-hint-btn { border: 1px solid #3d7a68; background: transparent; color: #8fd9bf; padding: 7px 10px; font: 700 9px/1 "Courier New", monospace; letter-spacing: .1em; cursor: pointer; }
.cyber-hint-btn:disabled { opacity: .55; cursor: default; }
.cyber-hint-text { color: #ffcc7d; font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
.cyber-feedback-wrap { padding: 0 18px 22px; }
.cyber-feedback { margin-top: 16px; padding: 12px; font: 700 11px/1.5 "Courier New", monospace; letter-spacing: .06em; }
.cyber-feedback.good { border: 1px solid #5bffb5; background: #0d3027; color: #a8ffd9; }
.cyber-feedback.bad { border: 1px solid #ff7d9c; background: #33151f; color: #ffbdcc; }
.cyber-explanation { color: #9fbfbc; font-size: 11px; line-height: 1.6; margin: 10px 0 14px; }
.cyber-order { display: grid; gap: 6px; }
.cyber-order-row { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 8px; border: 1px solid #294f4b; background: #0a1c20; padding: 8px 10px; color: #c8e0dc; font-size: 11px; }
.cyber-order-row b { color: #5bffb5; }
.cyber-order-row button { width: 30px; height: 26px; border: 1px solid #355f59; background: #112b2b; color: #9fd8c4; cursor: pointer; }
.cyber-hotspots { display: flex; flex-wrap: wrap; gap: 6px; }
.cyber-token { border: 1px solid #2e5752; background: #0a1c20; color: #c3ded9; padding: 8px 10px; font: 11px/1.3 "Courier New", monospace; cursor: pointer; }
.cyber-token.marked { border-color: #ffb454; background: #382913; color: #ffd79a; }
.cyber-complete-mark { display: inline-block; padding: 8px 10px; background: #5bffb5; color: #06231a; font: 800 10px/1 "Courier New", monospace; letter-spacing: .16em; }
.cyber-complete-card h3 { color: #f1fff9; font: 800 30px/1.1 Quicksand, sans-serif; margin: 18px 0; }
.cyber-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cyber-result-grid div { border: 1px solid #2a5650; background: #0a1c20; padding: 14px; }
.cyber-result-grid b { display: block; color: #5bffb5; font: 800 24px/1 Quicksand, sans-serif; }
.cyber-result-grid span { display: block; margin-top: 6px; color: #739793; font-size: 9px; letter-spacing: .12em; }
.cyber-complete-card p { color: #a4c4c0; font-size: 12px; line-height: 1.6; }
.cyber-new-badges { margin-top: 12px; padding: 10px; border: 1px solid #ffb454; color: #ffd79a; font-size: 11px; }

@media (max-width: 1050px) {
  .cyber-banner { grid-template-columns: 1fr; gap: 26px; }
  .cyber-banner-art { min-height: 220px; }
  .cyber-layout { grid-template-columns: 1fr; }
  .cyber-side { border-right: 0; border-bottom: 1px solid rgba(91,255,181,.16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .world-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 180px; padding: 24px; }
  .cyber-arcade { padding: 54px 0 64px; }
  .cyber-side { grid-template-columns: 1fr; }
  .cyber-toolbar { flex-direction: column; }
  .cyber-select { width: 100%; }
  .cyber-grid { grid-template-columns: 1fr; }
  .cyber-screen.open { padding: 8px; }
  .cyber-briefing-card, .cyber-complete-card { padding: 16px; }
  .cyber-evidence, .cyber-step-prompt { margin-left: 12px; margin-right: 12px; }
  .cyber-answer, .cyber-feedback-wrap { padding-left: 12px; padding-right: 12px; }
  .cyber-hint { margin-left: 12px; margin-right: 12px; }
  .cyber-banner-art { display: none; }
}
