#reviewDungeon{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #6a6551;border-radius:24px;background:#101b27;color:#edf3ed;box-shadow:0 30px 100px #000b;overflow:auto;font-family:inherit;inset:0;}
#reviewDungeon:not([open]){display:none!important}
#reviewDungeon[open]{display:block!important}
#reviewDungeon::backdrop{background:#050c16dc;backdrop-filter:blur(5px)}
#reviewDungeon *{box-sizing:border-box}
#reviewDungeon button{font-family:inherit;cursor:pointer;font-size:14px;min-height:44px;border-radius:12px;touch-action:manipulation}
#reviewDungeon button:focus-visible{outline:3px solid #8ce6c0;outline-offset:3px}
#reviewDungeon button:disabled{cursor:default;opacity:.48}
.rdHeader{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px;border-bottom:1px solid #e7c56e30;background:linear-gradient(120deg,#263323,#132439)}
.rdEyebrow{color:#ddc786;font-size:11px;letter-spacing:2px;font-weight:800}
#reviewDungeon h2{margin:4px 0 0;font-size:25px;color:#fbefd2}
.rdClose{width:44px;color:#e6edfa;background:#ffffff0d;border:1px solid #ffffff24;font-size:22px!important}
.rdBody{padding:22px 26px 26px}
.rdIntro{font-size:14px;line-height:1.75;color:#b9c7d6;margin:0 0 17px}
.rdStats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:19px}
.rdStat{background:#ffffff05;border:1px solid #aecac321;border-radius:15px;padding:14px 12px;color:#b9c7d6;font-size:12px}
.rdStat b{display:block;font-size:28px;line-height:1.3;color:#e8dfb9;margin-top:4px}
.rdStat:first-child b{color:#8ce6c0}
.rdFilters,.rdActions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rdFilters{margin:0 0 18px}
.rdFilters button{background:#ffffff08;border:1px solid #ffffff20;color:#b8c8d9;padding:7px 16px;flex:1;white-space:nowrap}
.rdFilters button[aria-pressed=true]{background:#355347;color:#d7ffe8;border-color:#73b38b}
.rdCard{padding:23px;border:1px solid #a8baca30;border-radius:19px;background:linear-gradient(160deg,#1d2c3c,#12202b);position:relative;overflow:hidden}
.rdKicker{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#d5c08e;margin-bottom:15px;line-height:1.7}
.rdSeals{display:flex;gap:7px;align-items:center;font-size:11px;color:#b1c4d5;white-space:nowrap}
.rdSeal{width:12px;height:12px;border:1px solid #779389;border-radius:50%;background:#182636}
.rdSeal.on{background:#87dfa9;box-shadow:0 0 13px #8debb94d}
.rdPrompt{font-size:clamp(22px,3.2vw,31px);font-weight:850;line-height:1.5;margin:6px 0 9px;overflow-wrap:anywhere;color:#fff7dc}
.rdHint{color:#bac8d4;font-size:13px;line-height:1.65;min-height:20px;margin:0 0 18px}
.rdChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#reviewDungeon .rdChoice{background:#203346;border:1px solid #657d9259;color:#f3f7f9;min-height:59px;text-align:left;padding:13px 16px;line-height:1.5;font-size:16px;overflow-wrap:anywhere}
#reviewDungeon .rdChoice:hover:not(:disabled){background:#2c4658;border-color:#b0c2ce}
#reviewDungeon .rdChoice.correct{border-color:#8ce6c0;background:#234f3e;color:#d6ffde;opacity:1}
#reviewDungeon .rdChoice.incorrect{border-color:#e99988;background:#58322f;opacity:1}
.rdSentence{display:flex;flex-wrap:wrap;gap:8px;min-height:80px;background:#081522;border:1px dashed #7c917c;border-radius:13px;padding:12px;margin-bottom:13px;align-items:center;color:#92a7b9}
.rdChunks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#reviewDungeon .rdChunk{background:#294358;border:1px solid #78919f66;color:#ecf5fc;padding:10px 14px;line-height:1.45;text-align:left;max-width:100%;overflow-wrap:anywhere}
.rdFoot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
#reviewDungeon .rdPrimary{background:linear-gradient(130deg,#ead49a,#c0a668);border:1px solid #f3e0a4;color:#152028;padding:10px 22px;font-weight:850}
#reviewDungeon .rdSecondary{background:#ffffff05;border:1px solid #647586;color:#c6d7e7;padding:10px 15px}
.rdFeedback{border-top:1px solid #ffffff1c;margin-top:19px;padding-top:17px;font-size:14px;line-height:1.8;color:#d2dfeb;white-space:pre-line;overflow-wrap:anywhere}
.rdFeedback.good{color:#a1e9ba}.rdFeedback.bad{color:#f5b9a7}
.rdSession{font-size:12px;color:#9aaebe;margin-top:16px;line-height:1.7}
.rdEmpty{text-align:center;padding:22px 8px 18px}
.rdEmpty img{width:66px;height:66px;object-fit:contain;margin:6px 0 12px;filter:drop-shadow(0 5px 13px #d7ae6933)}
.rdEmpty h3{font-size:22px;color:#f2ddb0;margin:0 0 13px}.rdEmpty p{color:#b9cada;line-height:1.8;margin:8px 0;font-size:14px}
.rdArchive{margin-top:16px;color:#b8c9d7;font-size:13px}.rdArchive summary{cursor:pointer;padding:10px 0}.rdArchiveRow{padding:12px 0;border-top:1px solid #ffffff13;line-height:1.65;overflow-wrap:anywhere}
.rdNoteProgress{color:#b4d1c0;font-size:12px;line-height:1.7;margin:10px 0 3px;border-top:1px solid #ffffff15;padding-top:8px}
.rdSaveWarning{background:#533225;border:1px solid #ffb99e;color:#ffdecb;padding:12px;border-radius:12px;margin-bottom:14px;font-size:13px;line-height:1.7}
#btnMenuDungeon{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:linear-gradient(120deg,#354330aa,#263746aa);border-color:#c6af7180;order:3}
#btnMenuDungeon small{display:block;color:#bfcdb7;font-size:11px;margin-top:4px}#rdMenuCount{color:#f2db94;font-weight:900;white-space:nowrap}
@media(max-width:520px){#reviewDungeon{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:18px}.rdHeader{padding:17px}.rdBody{padding:16px}.rdCard{padding:16px}.rdStats{gap:7px}.rdStat{padding:12px 9px}.rdStat b{font-size:25px}.rdFilters{gap:6px}.rdFilters button{padding:6px 9px!important;min-width:0}.rdChoices{grid-template-columns:1fr}.rdKicker{flex-wrap:wrap}.rdPrompt{font-size:25px}.rdFoot button{flex:1}.rdHint{margin-bottom:13px}}
@media(prefers-reduced-motion:no-preference){.rdCard.rdSuccess{animation:rdGlow .7s ease-out}@keyframes rdGlow{0%{box-shadow:inset 0 0 0 1px #9aefb4,0 0 35px #9aefb455}100%{box-shadow:none}}}
