/* Three difficulty levels and sequential conversations, v27. */
body.game-theme .home-rules {padding:18px 0;margin:20px 0;border-top:1px solid #74647b;border-bottom:1px solid #74647b}
body.game-theme .home-rules h2 {font-size:24px;margin-bottom:12px}
body.game-theme .home-rules p {font-size:14px;margin:0 0 12px;line-height:1.55}
body.game-theme .home-rules p:last-child {margin:14px 0 0}
body.game-theme .home-rules ol {display:grid;gap:12px;padding-left:22px;margin:0}
body.game-theme .home-rules li {padding-left:4px;color:#f2c36f;font-size:14px;line-height:1.5}
body.game-theme .home-rules b {color:#fff}
body.game-theme .home-rules li span {display:block;color:#d4ccd9;font-size:13px}
body.game-theme.work .levels-workspace,body.game-theme.work .level-task {max-width:1050px}
body.game-theme.work .level-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.game-theme.work .level-card {position:relative;display:flex;flex-direction:column;padding:22px;background:#211b29;border:2px solid #74647b;box-shadow:4px 4px 0 #08070c;min-width:0}
body.game-theme.work .level-card h3 {margin:10px 0 14px;font-family:var(--gta-title)!important;font-size:26px!important}
body.game-theme.work .level-card p {font-size:15px!important;line-height:1.55!important;flex:1;margin:0 0 20px}
body.game-theme.work .level-card .tag {align-self:flex-start;margin:0}
body.game-theme.work .level-number {font-family:var(--gta-title)!important;font-size:48px!important;line-height:1!important;color:#f2c36f;margin-bottom:22px;text-shadow:3px 3px 0 #000}
body.game-theme.work .level-complete {border-color:#87b79a}
body.game-theme.work .level-done {color:#bce5ce;margin-bottom:15px;display:block}
body.game-theme.work .level-task .step-count {white-space:nowrap}
body.game-theme.work .rebus-task {max-width:690px;margin:auto}
body.game-theme.work .rebus-board {display:flex;align-items:center;justify-content:center;gap:28px;border:2px solid #74647b;background:#0c0b10;padding:25px;margin-bottom:24px}
body.game-theme.work .rebus-piece {display:flex;flex-direction:column;align-items:center;gap:12px;flex:1;min-width:0}
body.game-theme.work .rebus-piece svg {width:min(100%,145px);height:145px;filter:drop-shadow(3px 3px 0 #08070c)}
body.game-theme.work .rebus-piece strong {font-family:var(--gta-title)!important;font-size:36px!important;line-height:1.1!important;letter-spacing:.025em!important;color:#fff}
body.game-theme.work .rebus-remove {font-family:var(--gta-title)!important;font-size:25px!important;line-height:1.2!important;color:#f2c36f;background:#211b29;border:1px solid #74647b;padding:5px 12px}
body.game-theme.work .rebus-plus {font-size:46px!important;color:#fff}
body.game-theme.work .rebus-form {display:grid;gap:10px;max-width:440px;margin:auto}
body.game-theme.work .rebus-form .actions {margin:8px 0 0}
body.game-theme.work .rebus-form button {width:100%}
body.game-theme.work .rebus-task>.text-link {display:block;margin:15px auto 0}
body.game-theme.work .level-success {max-width:700px;margin:auto;background:#211b29;border:2px solid #87b79a;padding:25px}
body.game-theme.work .level-success p {font-size:16px!important;line-height:1.6!important}
body.game-theme.work .level-success .hoodie-card {justify-content:center;margin-bottom:20px}
body.game-theme.work .process-rule {font-size:15px!important;line-height:1.6!important;border-left:4px solid #f2c36f;padding:12px 16px;background:#211b29;margin-bottom:22px}
body.game-theme.work .process-pool {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 28px}
body.game-theme.work button.process-option {background:#211b29!important;border-color:#a89bac!important;text-transform:none;text-align:left;display:grid;gap:6px;padding:15px;letter-spacing:0!important;min-width:0}
body.game-theme.work .process-option b {font-size:15px!important;line-height:1.35!important;color:#fff}
body.game-theme.work .process-option small {font-size:13px!important;line-height:1.5!important;color:#d4ccd9;letter-spacing:0;margin:0}
body.game-theme.work .process-option:disabled {opacity:.35}
body.game-theme.work .process-sequence {list-style:none;display:grid;gap:9px;padding:0;margin:0 0 22px}
body.game-theme.work .process-sequence li {display:flex;align-items:center;gap:15px;padding:12px 15px;border:1px dashed #74647b;min-height:66px;background:#0c0b10;color:#c9c0cf}
body.game-theme.work .process-sequence li.is-filled {border-style:solid;border-color:#a89bac;color:#fff;background:#211b29}
body.game-theme.work .process-sequence li>span:nth-child(2) {flex:1;min-width:0;line-height:1.5!important}
body.game-theme.work .sequence-number {display:grid;place-items:center;flex:0 0 32px;height:32px;background:#17131e;border:1px solid #f2c36f;color:#f2c36f;font-family:var(--gta-title)!important;font-size:21px!important}
body.game-theme.work .sequence-controls {display:flex;gap:7px;flex-shrink:0}
body.game-theme.work .sequence-controls button {min-height:36px;min-width:36px;padding:4px 8px;font-size:20px!important;line-height:1!important;border-width:1px!important;box-shadow:none!important}
body.game-theme.work .process-finished {padding-left:24px;display:grid;gap:13px;margin:0 0 25px;line-height:1.5}
body.game-theme.work .process-finished li::marker {color:#bce5ce;font-weight:700}
/* One reading direction and one continuation button per conversation. */
body.game-theme.work .team-scene.sequential-conversation {display:block!important;max-width:860px;margin:auto}
body.game-theme.work .conversation-position {font-family:var(--gta-title)!important;color:#f2c36f;margin-bottom:20px;font-size:18px;text-transform:uppercase}
body.game-theme.work .sequential-conversation .team-dialogues {display:grid;gap:18px;margin-bottom:22px}
body.game-theme.work .sequential-conversation .team-person {display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:14px}
body.game-theme.work .sequential-conversation .team-avatar {border-radius:0;width:52px;height:52px;display:grid;place-items:center;background:#f2c36f;color:#211b29;border:2px solid #08070c;box-shadow:3px 3px 0 #08070c;font-family:var(--gta-title)!important;font-size:28px!important}
body.game-theme.work .sequential-conversation .team-bubble {border:2px solid #74647b!important;border-radius:0!important;background:#211b29!important;padding:18px 20px;box-shadow:3px 3px 0 #08070c!important}
body.game-theme.work .sequential-conversation .team-bubble b {font-family:var(--gta-title)!important;color:#f2c36f;font-size:19px!important;display:block;margin-bottom:8px}
body.game-theme.work .sequential-conversation .team-bubble p {color:#fff;margin:0;font-size:16px!important;line-height:1.65!important}
body.game-theme.work .sequential-conversation .player-thought {background:#0c0b10!important;border:1px solid #74647b!important;border-left:4px solid #f2c36f!important;border-radius:0!important;box-shadow:none;padding:18px 20px}
body.game-theme.work .sequential-conversation .player-thought span {font-family:var(--gta-title)!important;color:#f2c36f;font-size:17px!important;text-transform:uppercase;margin-bottom:8px}
body.game-theme.work .sequential-conversation .player-thought p {font-size:15px!important;line-height:1.65!important;margin:0;color:#e8e1ec}
body.game-theme.work .sequential-conversation>.actions {margin:22px 0 0;justify-content:flex-end}
body.game-theme.work .sequential-conversation>.actions button {width:auto;min-width:240px}
@media(max-width:800px) {
  body.game-theme.work .level-grid {grid-template-columns:1fr}
  body.game-theme.work .level-number {font-size:36px!important;margin-bottom:16px}
  body.game-theme.work .process-pool {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px) {
  body.game-theme.work .rebus-board {padding:18px 10px;gap:12px}
  body.game-theme.work .rebus-piece svg {height:100px}
  body.game-theme.work .rebus-piece strong {font-size:28px!important}
  body.game-theme.work .rebus-remove {font-size:20px!important;padding:4px 8px}
  body.game-theme.work .rebus-plus {font-size:30px!important}
  body.game-theme.work .level-success {padding:18px}
  body.game-theme.work .process-sequence li {flex-wrap:wrap;gap:10px;padding:12px}
  body.game-theme.work .sequence-controls {width:100%;padding-left:42px}
  body.game-theme.work .sequence-controls button {min-height:44px;min-width:44px}
  body.game-theme.work .sequential-conversation .team-person {grid-template-columns:38px minmax(0,1fr);gap:10px}
  body.game-theme.work .sequential-conversation .team-avatar {width:38px;height:38px;font-size:22px!important}
  body.game-theme.work .sequential-conversation .team-bubble {padding:15px}
  body.game-theme.work .sequential-conversation .team-bubble p {font-size:15px!important}
  body.game-theme.work .sequential-conversation>.actions button {width:100%;min-width:0}
}
/* v28: one company problem and one function at a time. */
body.game-theme.work .feature-lesson {max-width:720px;margin:0 auto}
body.game-theme.work .lesson-position {color:#f2c36f;font-family:var(--gta-title)!important;font-size:18px!important;margin:0 0 14px;text-transform:uppercase}
body.game-theme.work .lesson-problem {padding:18px 20px;background:#211b29;border:1px solid #74647b}
body.game-theme.work .lesson-problem .visual-kicker {font-size:13px!important;margin:0 0 8px;display:block}
body.game-theme.work .lesson-problem h3 {font-size:23px!important;margin:0 0 10px}
body.game-theme.work .lesson-problem p {font-size:16px!important;line-height:1.6!important;margin:0;color:#f7f4f8}
body.game-theme.work .lesson-question {font-size:21px!important;line-height:1.4!important;margin:22px 0 14px}
body.game-theme.work .lesson-options {display:grid;gap:10px}
body.game-theme.work button.lesson-option {display:flex;align-items:center;gap:14px;width:100%;padding:14px 17px;background:#17131e!important;border:2px solid #74647b!important;box-shadow:3px 3px 0 #08070c!important;text-align:left;text-transform:none;letter-spacing:0!important}
body.game-theme.work .lesson-option>span:first-of-type {flex:1;min-width:0}
body.game-theme.work .lesson-option .ui-icon {width:26px;height:26px;flex:0 0 26px;color:#f2c36f}
body.game-theme.work .lesson-option b {display:block;font-size:16px!important;line-height:1.4!important;color:#fff;margin-bottom:3px}
body.game-theme.work .lesson-option small {display:block;font-size:14px!important;line-height:1.5!important;color:#d4ccd9;letter-spacing:0}
body.game-theme.work .lesson-choice {font-size:24px!important;line-height:1!important;color:#f2c36f;flex-shrink:0}
body.game-theme.work button.lesson-option.selected {background:#322b20!important;border-color:#f2c36f!important}
body.game-theme.work button.lesson-option:hover,body.game-theme.work button.lesson-option:focus-visible {border-color:#f2c36f!important}
body.game-theme.work .lesson-effect {margin-top:18px;padding:16px 20px;border:1px solid #87b79a;background:#1d3026}
body.game-theme.work .lesson-effect .visual-kicker {color:#bce5ce;display:block;margin-bottom:8px}
body.game-theme.work .lesson-effect p {display:flex;gap:16px;margin:6px 0;font-size:15px!important;line-height:1.5!important}
body.game-theme.work .lesson-effect p>span {flex:0 0 115px;color:#c9c0cf;font-size:14px!important}
body.game-theme.work .lesson-effect b {color:#bce5ce;font-size:15px!important}
body.game-theme.work .feature-lesson>.actions {justify-content:flex-end;margin:20px 0 0}
body.game-theme.work .feature-lesson>.actions button {min-width:250px}
body.game-theme.work .level-success .hoodie-card:has(+h3) {gap:0}
@media(max-width:600px) {
  body.game-theme.work .lesson-problem {padding:15px}
  body.game-theme.work .lesson-problem p {font-size:15px!important}
  body.game-theme.work .lesson-question {font-size:19px!important}
  body.game-theme.work button.lesson-option {padding:13px 12px;gap:10px}
  body.game-theme.work .lesson-option small {font-size:13px!important}
  body.game-theme.work .lesson-effect {padding:14px}
  body.game-theme.work .lesson-effect p {display:block;margin:10px 0}
  body.game-theme.work .lesson-effect p>span {display:block;margin-bottom:3px}
  body.game-theme.work .feature-lesson>.actions button {width:100%;min-width:0}
}
