.memory-lobby{margin-bottom:5vh;background:#fff;padding:20px 0 32px}.memory-lobby__shell{max-width:640px;margin-left:auto;margin-right:auto}.memory-lobby__hero{text-align:center;padding:8px 12px 24px}.memory-lobby__title{margin:0;font-size:clamp(22px,4vw,26px);font-weight:800;color:#2d2d2d;line-height:1.25}.memory-lobby__lead{margin:10px 0 0;font-size:15px;line-height:1.45;color:#6b6b6b}.memory-lobby__alert{max-width:640px;margin:0 auto 16px}.memory-lobby__panel{background:#fff;border:1px solid #e8e0db;border-radius:20px;padding:24px 20px 28px;box-shadow:0 4px 20px #2d2d2d0f}.memory-lobby__panel--empty{text-align:center}.memory-lobby__empty-text{margin:0;font-size:16px;color:#6b6b6b}.memory-lobby__form{margin:0}.memory-lobby__section{border:none;margin:0 0 28px;padding:0;min-width:0}.memory-lobby__section-title{display:block;font-size:17px;font-weight:700;color:#2d2d2d;margin:0 0 14px;padding:0;border:none;width:100%}.memory-lobby__themes-scroll{margin:0 -4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:4px}.memory-lobby__themes{display:flex;flex-wrap:nowrap;gap:12px;padding:2px 4px 8px}.memory-lobby__theme-card{position:relative;flex:0 0 104px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:118px;padding:12px 10px;border:1px solid #e8e0db;border-radius:16px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .12s;box-shadow:0 2px 8px #0000000d}.memory-lobby__theme-card:hover{transform:translateY(-1px)}.memory-lobby__theme-card:has(input:checked){border:2.5px solid #ff723e;box-shadow:0 0 0 1px #ff723e26}.memory-lobby__theme-card input{position:absolute;opacity:0;pointer-events:none}.memory-lobby__theme-emoji{font-size:44px;line-height:1;margin-bottom:8px}.memory-lobby__theme-name{font-size:13px;font-weight:600;text-align:center;color:#2d2d2d;line-height:1.25;max-width:100%}.memory-lobby__levels{display:grid;grid-template-columns:repeat(var(--level-cols, 3),minmax(0,1fr));gap:12px}.memory-lobby__level{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:88px;padding:10px 8px;border:1px solid #e8e0db;border-radius:16px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;box-shadow:0 2px 6px #0000000a}.memory-lobby__level:has(input:checked){border-color:#ff723e;background:#ff723e;box-shadow:0 4px 12px #ff723e59}.memory-lobby__level input{position:absolute;opacity:0;pointer-events:none}.memory-lobby__level-dot{display:block;width:22px;height:22px;border-radius:50%;background:var(--level-dot, #43a047);border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 6px #0000001f;margin-bottom:4px}.memory-lobby__level:has(input:checked) .memory-lobby__level-dot{border-color:#fff;box-shadow:0 0 0 2px #ffffff59}.memory-lobby__level-badge{font-size:14px;font-weight:700;color:#2d2d2d;line-height:1.2}.memory-lobby__level:has(input:checked) .memory-lobby__level-badge,.memory-lobby__level:has(input:checked) .memory-lobby__level-meta{color:#fff}.memory-lobby__level-meta{font-size:12px;font-weight:500;color:#6b6b6b;margin-top:2px}.memory-lobby__actions{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:4px}.memory-lobby__guide-btn{display:inline-flex;align-items:center;gap:8px;border:none;background:transparent;color:#6b6b6b;font-size:13px;font-weight:500;padding:6px 10px;cursor:pointer;border-radius:8px}.memory-lobby__guide-btn:hover{color:#2d2d2d;background:#0000000a}.memory-lobby__guide-icon{font-size:17px;line-height:1}.memory-lobby__start-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:none;background:#ff723e;color:#fff;font-size:17px;font-weight:700;padding:16px 24px;border-radius:16px;cursor:pointer;text-decoration:none;box-shadow:0 4px 14px #ff723e59;transition:background .15s,transform .12s}.memory-lobby__start-btn:hover,.memory-lobby__start-btn:focus{background:#e85f2a;color:#fff;text-decoration:none;transform:translateY(-1px)}.memory-lobby__start-icon{font-size:14px;line-height:1}@media(min-width:768px){.memory-lobby{padding:28px 0 48px}.memory-lobby__shell{max-width:720px}.memory-lobby__panel{padding:32px 32px 36px}.memory-lobby__themes{flex-wrap:wrap;justify-content:center}.memory-lobby__themes-scroll{overflow-x:visible}}html.reader-night .memory-lobby{background:#1e1e1e}html.reader-night .memory-lobby__title{color:#f0f0f0}html.reader-night .memory-lobby__lead,html.reader-night .memory-lobby__empty-text{color:#b0b0b0}html.reader-night .memory-lobby__panel{background:#2a2a2a;border-color:#444}html.reader-night .memory-lobby__section-title{color:#f0f0f0}html.reader-night .memory-lobby__theme-card,html.reader-night .memory-lobby__level:not(:has(input:checked)){background:#333;border-color:#555}html.reader-night .memory-lobby__theme-name,html.reader-night .memory-lobby__level-badge{color:#e5e7eb}html.reader-night .memory-lobby__level-meta{color:#9ca3af}html.reader-night .memory-lobby__guide-btn{color:#b0b0b0}.memory-play{--memory-tile: 96px;--memory-gap: 12px;--memory-cols: 4;margin-bottom:4vh;position:relative}.memory-play__wrap{max-width:960px}.memory-play__header-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}.memory-play__header-bar .memory-play__title{flex:1 1 auto;margin:0;min-width:0}.memory-play__back{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:#555;text-decoration:none;white-space:nowrap;flex-shrink:0}.memory-play__back:hover{color:#ff723e;text-decoration:none}.memory-play__back-icon{font-size:16px;line-height:1}.memory-play__body{display:flex;flex-direction:column;min-height:min(70vh,720px)}.memory-play__hint{font-size:16px;color:#555;margin:0 0 16px;line-height:1.5;text-align:center}.memory-play__stats{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:20px}.memory-play__stat-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px;padding:12px 24px;background:#fff;border-radius:10px;border:1px solid #eee;box-shadow:0 1px 2px #0000000a}.memory-play__stat-label{font-size:13px;font-weight:600;color:#666;margin-bottom:4px}.memory-play__stat-value{font-size:24px;font-weight:800;color:#111;line-height:1.1}.memory-play__board-stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:280px;padding:8px 0 12px}.memory-play__board{display:grid;gap:var(--memory-gap);grid-template-columns:repeat(var(--memory-cols),var(--memory-tile));grid-auto-rows:var(--memory-tile);width:max-content;max-width:100%;margin:0 auto;justify-content:center;justify-items:stretch}.memory-card{position:relative;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:none;border-radius:16px;overflow:hidden;cursor:pointer;box-sizing:border-box;background:linear-gradient(145deg,#02b875,#028f5e);box-shadow:0 4px 14px #02b87540;transition:transform .15s ease,box-shadow .15s ease;-webkit-appearance:none;appearance:none;line-height:1;font:inherit}.memory-card:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 20px #02b87559}.memory-card:disabled{cursor:default}.memory-card__back,.memory-card__front{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:12px;box-sizing:border-box}.memory-card__back{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#02b875,#028f5e);color:#fff;font-size:clamp(28px,4vw,42px);font-weight:700;z-index:1}.memory-card__front{display:none;background:#fff;z-index:2}.memory-card__front img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.memory-card.is-face-up .memory-card__back{display:none}.memory-card.is-face-up .memory-card__front{display:block}.memory-card.is-matched{box-shadow:0 0 0 3px #02b87580;opacity:.95}.memory-win[hidden]{display:none!important}.memory-win{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:10050;padding:16px}.memory-win__card{background:#fff;border-radius:16px;padding:28px 24px;max-width:360px;width:100%;text-align:center;box-shadow:0 12px 40px #0003}.memory-win__card h2{margin:0 0 12px;font-size:24px;color:#2d2d2d}.memory-win__card p{margin:0 0 20px;font-size:16px;color:#555}.memory-win__btn{width:100%}@media(min-width:768px){.memory-play{--memory-gap: 14px}.memory-play__body{min-height:min(75vh,780px)}.memory-play__stat-card{min-width:120px;padding:14px 28px}.memory-play__stat-value{font-size:28px}}html.reader-night .memory-play__title{color:#f0f0f0}html.reader-night .memory-play__back{color:#b0b0b0}html.reader-night .memory-play__back:hover{color:#ff723e}html.reader-night .memory-play__stat-card{background:#333;border-color:#444}html.reader-night .memory-play__hint,html.reader-night .memory-play__stat-label{color:#b0b0b0}html.reader-night .memory-play__stat-value{color:#f0f0f0}html.reader-night .memory-win__card{background:#2a2a2a;color:#f0f0f0}html.reader-night .memory-win__card h2,html.reader-night .memory-win__card p{color:#e5e7eb}
