/* games/github-30/style.css — « GitHub en 30 jours » : grille de 30 jours, terminal, quiz, trophée.
   Palette du site (bleu nuit, jaune, turquoise, rose), polices Bangers + IBM Plex. Responsive. */
.gh-shell { --y: #FFE14D; --t: #3FE0D0; --g: #3DDC97; --r: #FF4D5E; --line: #24315C; --mu: #B6C2E4; max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; display: grid; gap: 18px; }
.gh-head { display: grid; gap: 8px; }
.gh-k { margin: 0; font: 700 .74rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--t); }
.gh-head h2, .gh-card h2 { margin: 0; font: 400 clamp(1.9rem, 5vw, 2.8rem)/1 Bangers, sans-serif; letter-spacing: .03em; color: var(--y); text-shadow: 3px 3px 0 #000; }
.gh-lead { margin: 0; max-width: 62ch; color: var(--mu); line-height: 1.55; }
.gh-bar { height: 12px; border: 2px solid #000; border-radius: 99px; background: #0C1430; overflow: hidden; }
.gh-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--t), var(--y)); }
.gh-count { margin: 0; font: 700 .9rem "IBM Plex Mono", monospace; color: var(--y); }
.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gh-day { position: relative; display: grid; gap: 4px; align-content: start; min-height: 86px; padding: 10px 12px; border: 3px solid #000; border-radius: 12px; background: #0F1730; color: #EAF0FF; text-align: left; cursor: pointer; box-shadow: 4px 4px 0 #2F6BFF; transition: transform .15s; }
.gh-day b { font: 400 1.3rem/1 Bangers, sans-serif; letter-spacing: .04em; color: var(--y); }
.gh-day span { font-size: .84rem; line-height: 1.3; color: var(--mu); }
.gh-day:hover:not(:disabled) { transform: translate(-1px, -2px); }
.gh-day.is-open { box-shadow: 4px 4px 0 var(--y); }
.gh-day.is-open b::after { content: " •"; color: var(--r); }
.gh-day.is-done { background: #10301F; box-shadow: 4px 4px 0 var(--g); }
.gh-day.is-locked, .gh-day.is-tomorrow { opacity: .55; cursor: not-allowed; box-shadow: 3px 3px 0 #1A2550; }
.gh-ok { position: absolute; top: 8px; right: 10px; font-style: normal; font-weight: 700; color: var(--g); }
.gh-card { display: grid; gap: 12px; padding: clamp(16px, 3vw, 26px); border: 3px solid #000; border-radius: 16px; background: #0F1730; box-shadow: 6px 6px 0 #2F6BFF; }
.gh-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gh-back { padding: 6px 12px; border: 2px solid var(--line); border-radius: 8px; background: none; color: var(--mu); cursor: pointer; font: 600 .86rem "IBM Plex Sans", sans-serif; }
.gh-lesson { margin: 0; line-height: 1.6; color: #DCE3F5; }
.gh-q { margin: 0; font-weight: 700; color: #fff; }
.gh-term { border: 2px solid #000; border-radius: 10px; background: #05070F; font: 500 .9rem/1.5 "IBM Plex Mono", monospace; overflow: hidden; }
.gh-log { max-height: 220px; overflow-y: auto; padding: 8px 12px 10px; }
/* L'invite suit la dernière sortie, comme un vrai terminal Linux. */
.gh-log .gh-line { padding: 0; }
.gh-log .gh-line input { padding: 0; }
.gh-log p { margin: 0 0 4px; overflow-wrap: anywhere; }
.gh-cmd { color: #EAF0FF; }
.gh-res.ok { color: var(--g); }
.gh-res.no { color: #FF8E99; }
.gh-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.gh-ps { flex: none; color: var(--g); }
.gh-line input { flex: 1; min-width: 0; padding: 6px 4px; border: 0; background: none; color: #fff; font: 500 16px "IBM Plex Mono", monospace; outline: none; }
.gh-hint { justify-self: start; padding: 6px 12px; border: 2px dashed var(--line); border-radius: 8px; background: none; color: var(--mu); cursor: pointer; }
.gh-opts { display: grid; gap: 8px; }
.gh-opt { padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: #05070F; color: #EAF0FF; font: 500 .95rem/1.4 "IBM Plex Sans", sans-serif; text-align: left; cursor: pointer; }
.gh-opt:hover:not(:disabled) { border-color: var(--t); }
.gh-opt.is-ok { border-color: var(--g); background: rgba(61, 220, 151, .14); }
.gh-opt.is-no { border-color: var(--r); opacity: .55; }
.gh-tip { margin: 0; color: var(--y); }
.gh-win { padding: 12px 14px; border: 2px solid var(--g); border-radius: 10px; background: rgba(61, 220, 151, .1); }
.gh-win b { font: 400 1.4rem/1 Bangers, sans-serif; letter-spacing: .04em; color: var(--g); }
.gh-win p { margin: 6px 0 0; line-height: 1.5; }
.gh-next { color: var(--mu); font-size: .9rem; }
.gh-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 3px solid #000; border-radius: 10px; background: var(--y); color: #0A0E1A; font: 400 1.1rem/1 Bangers, sans-serif; letter-spacing: .06em; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 #000; justify-self: start; }
.gh-btn.ghost { background: #0F1730; color: var(--y); }
.gh-trophy { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 18px; border: 3px solid #000; border-radius: 14px; background: linear-gradient(135deg, #3A2A06, #1A1406); box-shadow: 5px 5px 0 #FFD45A; }
.gh-trophy svg { flex: none; filter: drop-shadow(0 0 10px rgba(255, 212, 90, .5)); }
.gh-trophy b { font: 400 1.6rem/1 Bangers, sans-serif; letter-spacing: .05em; color: #FFD45A; }
.gh-trophy p { margin: 6px 0 0; color: #F4E8C8; line-height: 1.5; }
@media (max-width: 520px) { .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gh-ps { font-size: .78rem; } }

/* ---------- Labos en ligne de commande (assets/js/termlab.js), partagés avec ccna-30 */
.tl-lab, .tl-exam { display: grid; gap: 12px; min-width: 0; }
.tl-title { margin: 0; font: 400 1.5rem/1.1 Bangers, sans-serif; letter-spacing: .04em; color: var(--t, #3FE0D0); }
.tl-intro { margin: 0; color: var(--mu, #B6C2E4); line-height: 1.5; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tl-side { display: grid; gap: 10px; min-width: 0; }
.tl-k { margin: 0; font: 700 .74rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--t, #3FE0D0); }
.tl-road { margin: 0; padding: 0; list-style: none; counter-reset: tl; display: grid; gap: 6px; }
.tl-road li { counter-increment: tl; position: relative; display: grid; gap: 6px; padding: 8px 10px 8px 38px; border: 2px solid #24315C; border-radius: 10px; background: #0F1730; line-height: 1.35; font-size: .92rem; }
.tl-road li::before { content: counter(tl); position: absolute; left: 9px; top: 8px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #24315C; color: #EAF0FF; font: 700 .78rem "IBM Plex Mono", monospace; }
.tl-road li.is-next { border-color: var(--y, #FFE14D); box-shadow: 3px 3px 0 #000; }
.tl-road li.is-next::before { background: var(--y, #FFE14D); color: #0A0E1A; }
.tl-road li.is-done { border-color: var(--g, #3DDC97); background: #10301F; }
.tl-road li.is-done::before { content: "\2713"; background: var(--g, #3DDC97); color: #0A0E1A; }
.tl-hint { justify-self: start; padding: 3px 10px; border: 2px solid #000; border-radius: 99px; background: #24315C; color: #EAF0FF; font: 600 .78rem "IBM Plex Sans", sans-serif; cursor: pointer; }
.tl-h[hidden] { display: none; }
.tl-h { display: block; padding: 6px 8px; border-radius: 6px; background: #060A18; color: var(--y, #FFE14D); font: .82rem/1.4 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.tl-term { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); min-width: 0; height: clamp(300px, 52vh, 460px); border: 3px solid #000; border-radius: 12px; background: #050913; box-shadow: 4px 4px 0 #2F6BFF; cursor: text; overflow: hidden; }
.tl-log { overflow-y: auto; padding: 10px 12px; font: .86rem/1.45 "IBM Plex Mono", monospace; color: #CFE3FF; overscroll-behavior: contain; }
.tl-log pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.tl-log pre:empty { min-height: 1.45em; }
.tl-cmd { color: #FFFFFF; margin-top: 6px !important; }
.tl-pe { color: var(--g, #3DDC97); font-weight: 700; }
.tl-why { margin: 4px 0 6px; padding: 3px 10px; border: 2px solid #000; border-radius: 99px; background: var(--p, #FF5FA2); color: #0A0E1A; font: 700 .76rem "IBM Plex Sans", sans-serif; cursor: pointer; }
.tl-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.tl-ps { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--g, #3DDC97); font: 700 .82rem "IBM Plex Mono", monospace; }
.tl-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #FFFFFF; font: 16px "IBM Plex Mono", monospace; caret-color: var(--y, #FFE14D); }
.tl-schema { width: 100%; height: auto; border: 2px solid #24315C; border-radius: 10px; background: #0B1230; }
.tl-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 2px dashed var(--t, #3FE0D0); border-radius: 12px; background: rgba(63, 224, 208, .07); }
.tl-ask p { flex: 1 1 260px; margin: 0; line-height: 1.45; font-size: .92rem; }
.tl-ask-btn, .v3d-ask { padding: 7px 14px; border: 2px solid #000; border-radius: 10px; background: var(--t, #3FE0D0); color: #0A0E1A; font: 400 1rem/1 Bangers, sans-serif; letter-spacing: .05em; cursor: pointer; box-shadow: 2px 2px 0 #000; }
.tl-timer { position: sticky; top: 8px; z-index: 5; justify-self: end; padding: 6px 14px; border: 3px solid #000; border-radius: 99px; background: var(--y, #FFE14D); color: #0A0E1A; font: 700 1rem "IBM Plex Mono", monospace; box-shadow: 3px 3px 0 #000; }
.tl-timer.low { background: var(--r, #FF4D5E); color: #FFF; }
.tl-qs { display: grid; gap: 10px; }
.tl-q { padding: 10px 12px; border: 2px solid #24315C; border-radius: 12px; background: #0F1730; }
.tl-result { padding: 14px 16px; border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; }
.tl-result b { font: 400 2.4rem/1 Bangers, sans-serif; }
.tl-result p { margin: 6px 0 0; line-height: 1.5; }
.tl-result.ok { background: #10301F; } .tl-result.ok b { color: var(--g, #3DDC97); }
.tl-result.no { background: #3A1018; } .tl-result.no b { color: var(--r, #FF4D5E); }
/* Petits schémas 3D (assets/js/viz3d.js) */
.v3d { margin: 0; display: grid; gap: 8px; min-width: 0; }
.v3d-cv { display: block; width: 100%; height: clamp(170px, 30vw, 240px); border: 2px solid #24315C; border-radius: 12px; background: #0B1230; touch-action: pan-y; outline: none; }
.v3d-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--mu, #B6C2E4); font-size: .9rem; line-height: 1.4; }
.v3d-cap span { flex: 1 1 220px; }
.v3d-ask { font-size: .9rem; padding: 5px 10px; }
.v3d-off .v3d-cv { display: none; }
.tl-side .v3d-cv { height: 200px; }
@media (max-width: 760px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } .tl-term { height: 340px; } }
