@import url('./game-skins.css');
:root{font-family:system-ui,sans-serif;color:#214e4b;background:#dcebe6;--sage:#a6b598;--cream:#fff9e9;--ink:#214e4b}*{box-sizing:border-box}body{margin:0}header{max-width:1200px;margin:auto;padding:24px 28px;display:flex;gap:16px;align-items:center;justify-content:space-between}header a{font:700 26px Georgia,serif;color:var(--ink);text-decoration:none}header span{font-size:13px;color:#526c64}main{max-width:1144px;margin:0 auto;padding:0 20px 60px}h1,h2{font-family:Georgia,serif}h1{font-size:clamp(29px,4vw,42px);margin:0 0 16px}h2{margin-top:0}p{line-height:1.55}.panel{background:var(--cream);border:2px solid #b1ba9c;border-radius:26px;padding:28px;margin-bottom:20px;box-shadow:0 6px 0 #b9cbb880}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.muted{color:#62776a;font-size:15px}.tabs{margin-bottom:24px}button,.file{font:700 16px system-ui;cursor:pointer;border:2px solid #93a78a;border-radius:15px;background:#edf0df;color:var(--ink);padding:13px 20px;min-height:48px;box-shadow:0 3px 0 #9aaa8980;transition:transform .15s}button:hover,.file:hover{transform:translateY(-2px)}button:active{transform:translateY(1px)}button.primary{background:#245f59;color:#fff9e9;border-color:#6f927d}button.subtle{background:transparent;box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d99c31;outline-offset:3px}button:disabled{opacity:.6;cursor:default}label{display:block;font-weight:650;margin:16px 0 8px}input:not([type=radio]):not([type=checkbox]),textarea,select{font:inherit;color:inherit;background:#fffef8;border:1.5px solid #a7b59e;border-radius:12px;padding:13px;width:100%;min-width:0}textarea{line-height:1.5;resize:vertical}details{margin:20px 0}summary{cursor:pointer;font-weight:650}details p{max-width:750px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:18px}.card{border:1px solid #c7ceb8;background:#fffdf3;border-radius:18px;padding:22px;margin-bottom:16px}.question-card{border-left:5px solid #a6b598}.question-card.warn{border-left-color:#d49b37}.answer-edit{display:flex;align-items:center;gap:10px;margin:8px 0}.answer-edit input[type=radio]{width:23px;height:23px;flex-shrink:0;accent-color:#245f59}.answer-edit button{font-size:14px;padding:7px 12px}.warning{background:#faecc8;border-radius:10px;padding:12px;line-height:1.5}.check{display:flex;gap:12px;align-items:center}.check input{width:22px;height:22px}#status{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);max-width:90vw;background:#214e4b;color:white;border-radius:12px;padding:10px 20px;z-index:10;pointer-events:none}#status:empty{display:none}.journey{background:#d9e8de url('/rakodo/oszi-rakodo.webp') center/cover;padding:24px;border:5px solid #fff6dc;border-radius:32px;box-shadow:0 8px 0 #9bb3a080}.journey .panel{background:#fff9e9f2}.map{overflow-x:auto;padding:32px 18px 20px;margin-bottom:22px;background:#dceae3e8;border:2px solid #b7c7aa;border-radius:24px;scroll-behavior:smooth}.route{display:flex;align-items:center;gap:22px;min-width:max-content;padding-top:62px}.stop{width:120px;position:relative;text-align:center;flex-shrink:0}.stop:not(:last-child):after{content:'';position:absolute;left:94px;top:28px;width:54px;border-top:4px dashed #789986}.island{margin:auto;width:70px;height:56px;border-radius:50% 45% 35% 40%;background:#b4c88d;border:3px solid #8b9e70;box-shadow:0 7px 0 #83aaa7}.stop.future .island{background:#d5ded4;border-color:#c4d0c8;box-shadow:0 7px 0 #b7ccc8}.stop.future{color:#6d8178}.stop.current .island{background:#ead28e;border-color:#b69345}.stop img{position:absolute;width:90px;height:80px;object-fit:contain;top:-70px;left:15px;filter:drop-shadow(0 5px 3px #365b4940)}.stop span{display:block;font-weight:700;margin-top:16px}.fog{position:absolute;inset:-15px -8px 25px;background:radial-gradient(ellipse,#edf3eceb,transparent 74%);pointer-events:none}.question-panel{min-height:260px;display:flex;flex-direction:column;justify-content:center}.question-panel h2{font-family:system-ui;font-size:clamp(24px,3.5vw,34px);line-height:1.4}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.choices button{font-size:22px;text-align:left;padding:22px}.toolbar{margin-top:20px}.celebrate{text-align:center;padding:40px 20px}.celebrate img{width:180px;height:150px;object-fit:contain}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.preview-stop{display:inline-block;background:#e4e9d6;border-radius:14px;padding:10px 14px;margin:4px}.empty{padding:35px 0}.file input{display:none}@media(max-width:650px){header{align-items:flex-start;flex-direction:column;padding:20px}main{padding:0 12px 40px}.panel{padding:20px;border-radius:20px}.split{grid-template-columns:1fr}.journey{padding:12px}.choices{grid-template-columns:1fr}.choices button{font-size:20px}.answer-edit{gap:6px}.answer-edit button{padding:6px}.row button{flex-grow:1}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.journey>.between{background:#fff9e9ed;border:1px solid #bdc6a9;border-radius:20px;padding:18px;margin-bottom:18px}.journey>.between h1{font-size:clamp(24px,3vw,34px);margin:0}.journey>.between button{background:#eef0df} .question-panel .primary{align-self:flex-start}
@media(max-width:650px){header a{font-size:22px}header{padding:16px 20px}header span{font-size:12px}.journey>.between{padding:14px;gap:10px}.journey>.between button{padding:10px 12px;font-size:14px;min-height:44px}.map{padding:16px 12px 14px;margin-bottom:16px}.route{padding-top:54px;gap:16px}.stop{width:100px}.stop:not(:last-child):after{left:82px;width:38px}.stop img{width:80px;height:70px;top:-58px;left:10px}.stop span{margin-top:12px;font-size:14px}.island{height:44px;width:60px}.question-panel{min-height:220px}.question-panel h2{font-size:24px}}

pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;font:15px/1.5 system-ui;background:#f0efdf;padding:16px;border-radius:12px}.draft-shelf .row{padding:10px 0;border-top:1px solid #d4dcc8}

.choices button.selected{background:#d4e0be;border-color:#547f62;box-shadow:inset 0 0 0 2px #547f62}.selection-help{font-weight:650}.choices+button{margin-top:18px}.answer-edit input[type=checkbox]{width:23px;height:23px;flex-shrink:0;accent-color:#245f59}

[hidden]{display:none!important}.teacher-site-nav,.teacher-save-panel{max-width:1144px;margin:0 auto 20px;padding:0 20px}.teacher-site-nav{display:flex;gap:24px;flex-wrap:wrap}.teacher-site-nav a,.entry-link{color:var(--ink);font-weight:650}.teacher-save-panel p:empty{display:none}.teacher-save-panel p{background:var(--cream);border-radius:12px;padding:12px}.teacher-save-panel button{margin:4px}.entry-link{display:inline-block;padding:14px;border:2px solid var(--sage);border-radius:12px}.game-info-footer{max-width:1144px;margin:auto}
.memory-card{background:#f4efd7;border:2px solid #a6b598;text-align:center;overflow-wrap:anywhere}.memory-card img{object-fit:contain}.memory-card h2{font-size:24px}.memory-card h3{font-size:20px}.memory-card time{color:#62776a;font-size:14px}

/* The simple quiz shares answer controls, without the journey map. */
.quiz-game{padding:clamp(12px,3vw,32px);max-width:1100px;margin:auto}.quiz-game .question-panel{margin-top:24px}.quiz-game .question-panel h2{font-size:clamp(1.5rem,4vw,2.8rem)}

.import-notice{background:#e9edda;border-left:4px solid #93a78a;border-radius:12px;padding:10px 16px;margin:16px 0}.import-notice p,.warning p{margin:6px 0}.review-summary{font-weight:700}details li{line-height:1.6;margin:10px 0}

.file:focus-visible{outline:3px solid #d99c31;outline-offset:3px}

.question-selection .question-pick{align-items:flex-start;padding:10px 0;border-bottom:1px solid #d4dcc8;font-weight:500;overflow-wrap:anywhere}.question-pick input{flex-shrink:0;accent-color:#245f59}.selection-count{font-weight:700}

.library-search{margin-top:24px}.library-search p{margin:8px 0}.copy-notice{background:#e9edda;border-radius:12px;padding:12px 16px}

.word-grid-scroll{overflow:auto;max-width:100%;margin:20px 0;padding:4px}.teacher-word-grid{display:grid;width:max-content;gap:3px}.teacher-word-cell{width:48px;height:48px;background:#e8efdc;border:1px solid #a9b697;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;position:relative}.teacher-word-cell.empty{visibility:hidden}.teacher-word-cell.final-cell{background:#f7d98a;border:2px solid #b48124}.teacher-word-cell small{position:absolute;top:0;left:3px;font-size:12px}
.wordsearch-play{touch-action:none;user-select:none;-webkit-user-select:none}.wordsearch-play .teacher-word-cell{padding:0}.wordsearch-play .word-selecting{background:#f4ce77;outline:2px solid #a9762c}.wordsearch-play .word-found{background:#cadbb9}.word-found-label{text-decoration:line-through}

.crossword-letters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;max-width:720px}.crossword-letters button{min-width:48px;min-height:48px;padding:8px;font-size:24px}.crossword-letters button[aria-pressed="true"]{background:#cadbb9;outline:2px solid #718461}.crossword-selection{display:block;min-height:48px;font-size:26px;font-weight:700;margin:12px 0}.crossword-play button.teacher-word-cell{padding:0}.crossword-play .word-found{background:#cadbb9}.crossword-play .word-selecting{outline:2px solid #b48124;outline-offset:-2px}

/* Neutral functional shell; artwork will be integrated from the separate skin workshop. */
.pair-matching-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pair-column{display:flex;flex-direction:column;gap:10px;min-width:0}.pair-play button{white-space:normal;overflow-wrap:anywhere;min-height:48px}.pair-memory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.pair-memory-grid button{min-height:100px}.pair-play .matched{opacity:.65;background:#d8efda;color:#1c4528}.pair-play .selected{outline:3px solid #315c86;outline-offset:2px}@media(max-width:480px){.pair-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pair-memory-grid button{padding:8px;font-size:1rem}.pair-matching-grid{gap:10px}}

.word-learning-play{max-width:100%;overflow-wrap:anywhere}.word-learning-picture{display:block;object-fit:contain;margin:16px auto;width:160px;height:160px}.word-learning-model,.word-learning-selection{font-size:clamp(22px,4vw,34px);font-weight:700;overflow-wrap:anywhere}.word-learning-letters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.word-learning-letters button{min-width:48px;min-height:48px;padding:8px;font-size:22px}.word-learning-letters [aria-pressed=true]{background:#cadbb9;outline:2px solid #718461}.word-learning-play>button{margin:4px}.word-learning-play input{text-transform:uppercase}

.adventure-scene{margin:16px auto;padding:16px;border-radius:20px;background:#fff9e9;max-width:860px;color:#214e4b}.adventure-scene h2{margin-bottom:8px}.adventure-scene p{margin:8px 0}.adventure-art{position:relative;width:100%;max-width:720px;margin:auto;aspect-ratio:3/2;overflow:hidden;border-radius:16px;isolation:isolate}.adventure-art>img:first-child{display:block;width:100%;height:100%;object-fit:cover}.adventure-art .adventure-furnishing{position:absolute;object-fit:contain;pointer-events:none}.adventure-cover{position:absolute;inset:0;display:grid;z-index:5;pointer-events:none}.adventure-part{background:#325f65;border:1px solid #b0c6b0;min-height:0}.adventure-cover.sail-tears{inset:0 86% 61% 0;clip-path:polygon(0 0,82% 0,92% 25%,80% 40%,100% 70%,85% 84%,0 100%)}.sail-tears .adventure-part{background:#b9d7d3;border:3px dashed #eee0b6}.adventure-scene progress{display:block;width:100%;height:16px;margin:12px 0;accent-color:#245f59}.memory-card .adventure-scene{padding:8px}.memory-card .adventure-scene h2,.memory-card .adventure-scene>p,.memory-card .adventure-scene progress{display:none}.memory-card .adventure-scene img{width:100%;height:100%}@media(max-width:650px){.adventure-scene{padding:10px}.adventure-art{max-height:none}}

.material-workspace{overflow-wrap:anywhere}.material-workspace .check{font-weight:500;align-items:flex-start;padding:8px 0}.material-workspace .check input{flex-shrink:0;accent-color:#245f59}.material-workspace>button{margin:8px 8px 8px 0}.material-workspace input[type=file]{max-width:100%}.material-workspace details{padding:12px;border:1px solid #c7ceb8;border-radius:12px}

/* Teacher and learner names, descriptions and answers may be unbroken strings. */
:is(#app, #homeworkApp, #childApp) > .panel,
#app .dashboard-results > :is(.dashboard-material, .dashboard-record),
#app .dashboard-draft > strong {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  #app .answer-edit > button {
    min-inline-size: 44px;
    flex-shrink: 0;
  }

  #app > .panel > a[href="/csatlakozas"] {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    inline-size: fit-content;
    max-inline-size: 100%;
  }

  #homeworkApp .question-panel > details > summary {
    min-block-size: 44px;
    padding-block: 11px;
  }

  #childApp form > button[type="submit"] {
    inline-size: 100%;
    margin-block-start: 16px;
  }

  #childApp form > p:empty {
    display: none;
  }

  :is(#app, #homeworkApp, #childApp) > .panel :is(.card, .split > *) {
    min-inline-size: 0;
  }

  #app > .panel .card > input[readonly] + button,
  :is(#homeworkApp, #childApp) > .panel > button + button {
    margin-block-start: 8px;
  }
}

/* WORDSEARCH PHONE: pan the full-size grid without intercepting a page swipe. */
.wordsearch-scroll {
  overscroll-behavior-x: contain;
}

.wordsearch-scroll > .wordsearch-play {
  touch-action: manipulation;
}

button.book-lesson-cover {
 display:grid; justify-items:center; align-content:center; gap:.6rem; width:100%; min-height:11rem;
 padding:1rem 1rem 1rem 1.4rem; border:3px double #cda55d; border-left:9px ridge #92764d;
 border-radius:.3rem .85rem .85rem .3rem; background:linear-gradient(125deg,#224d50,#356662 65%,#234a49);
 color:#fff1cf; box-shadow:2px 3px 0 #d9c7a2; font: bold 1.35rem Georgia,serif; overflow-wrap:anywhere;
}
.book-lesson-cover img {width:5.8rem;height:5.8rem;object-fit:contain}
