.theme-list{display:grid;gap:12px;padding:2px 10px 18px}
#main-root .study-topic-card{box-sizing:border-box;margin:0;padding:17px 16px 15px;border:1px solid #c4d8e9;border-radius:18px!important;background:linear-gradient(145deg,#fafdff,#edf5fc);box-shadow:0 3px 14px #264e720d;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.study-topic-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px}
.study-topic-number{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #b7cee4;border-radius:11px;background:#dfeefb;color:#2d608c;font:750 15px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
#main-root .study-topic-card .theme-title{flex:1;min-width:0;margin:1px 0 0;color:#233f5b;font:700 16px/1.42 system-ui,-apple-system,'Segoe UI',sans-serif;overflow-wrap:anywhere}
.study-topic-card .topic-badges{margin:0 0 13px;gap:5px}.study-topic-card .topic-badge{line-height:1.3;font-size:11px}
#main-root .study-topic-card .theme-btns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px;margin:0}
#main-root .study-topic-card .theme-btns.has-video-lesson{grid-template-columns:minmax(0,1.35fr) 44px minmax(0,1fr)}
#main-root .study-topic-card .theme-btns button{min-height:44px;min-width:0;padding:10px 8px;border:1px solid #34658f!important;border-radius:12px!important;background:#376b98!important;color:#fff!important;box-shadow:none!important;font:650 14px/1.3 system-ui,sans-serif;white-space:nowrap}
#main-root .study-topic-card .theme-btns .ghost{background:#e4eff9!important;color:#2c5e87!important;border-color:#b9cfe3!important}
#main-root .study-topic-card .theme-btns .topic-video-menu-button{min-width:44px;min-height:44px;padding:8px}
#main-root .study-topic-card button:focus-visible{outline:3px solid #80b7e5;outline-offset:2px}
#main-root .study-topic-card.locked{background:#f1f5f9;border-color:#d2dce6;box-shadow:none}
#main-root .study-topic-card.locked::after{content:none}
#main-root .study-topic-card.locked .theme-btns button{background:#e4ecf4!important;color:#526b83!important;border-color:#c8d5e2!important}
.study-topic-card.locked .study-topic-number{background:#e7eef5;color:#607c96}
body.search-editing #bottombar{display:none!important}
/* The viewport already ends above the system navigation area. */
.task24-page{padding-bottom:0!important}
/* Keep the circular frames; the illustration itself must retain its corners. */
#main-root .top-avatar-img,#profile-avatar-holder .avatar-img,#usercard-modal-bg img[src*="img/knights/"],.t-b-avatar img{border-radius:0!important;object-fit:contain!important;background:radial-gradient(circle closest-side,#fff 98%,transparent 100%)!important}
#main-root .top-avatar-img{border:0!important}
#knight-card-box img{border-radius:0!important;object-fit:contain!important;background:transparent!important}
.rank-avatar-wrap>div{border-radius:50%;background:#fff;box-shadow:0 1px 5px #62451d26,inset 0 0 0 1px #cdbd9c}
.rank-avatar-big{box-sizing:border-box;padding:0;border:0!important;border-radius:0!important;background:radial-gradient(circle closest-side,#fff 98%,transparent 100%)!important;box-shadow:none!important;object-fit:contain!important}
html.tournament-lobby-active,body.tournament-lobby-active{height:100%;overflow:hidden!important}
@media(min-height:541px){html.capacitor body.tournament-lobby-active #top-profile{padding-top:calc(32px + var(--cap-safe-top));padding-bottom:4px}}
body.tournament-lobby-active #main-content{overflow:hidden!important;padding-bottom:0!important;overscroll-behavior:none;scroll-behavior:auto}
body.tournament-lobby-active .tour-lobby-wrapper{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:18px;height:100%;min-height:0;padding:18px 20px 8px!important}
/* Reserve both actions before fitting the square into the remaining height. */
body.tournament-lobby-active .tour-lobby-hero{flex:0 1 auto;min-height:0;aspect-ratio:1;width:100%;max-width:520px;margin:0}
body.tournament-lobby-active .tour-lobby-hero img{display:block;width:auto;max-width:100%;height:100%;max-height:100%;aspect-ratio:1;object-fit:contain;object-position:center;margin:0 auto}
body.tournament-lobby-active .tour-lobby-buttons{flex:0 0 auto;min-height:0;width:min(236px,100%);margin:0!important;display:grid;gap:10px;overflow:visible}
#main-root .tour-lobby-buttons>button{position:relative;box-sizing:border-box;width:100%;max-width:none;min-height:36px;margin:0!important;padding:6px 12px!important;border:0!important;border-radius:999px!important;background:var(--btn)!important;color:#fff!important;font:600 1.05em/1.3 system-ui,-apple-system,'Segoe UI',sans-serif!important}
/* The visible reference pill is 36px; its transparent touch area is at least 44px. */
#main-root .tour-lobby-buttons>button::after{content:"";position:absolute;inset:-4px 0;border-radius:inherit}
body.tournament-lobby-active #tournament-lobby-content:empty{display:none}
@media(max-height:540px){body.tournament-lobby-active .tour-lobby-wrapper{gap:6px;padding:0 12px 8px!important}body.tournament-lobby-active .tour-lobby-buttons{gap:6px}}
@media(min-width:520px){#main-root .study-topic-card .theme-btns.has-video-lesson{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:350px){#main-root .study-topic-card{padding:14px 12px}.study-topic-heading{gap:10px}.study-topic-number{flex-basis:32px;width:32px;height:32px;font-size:14px}#main-root .study-topic-card .theme-title{font-size:15px}#main-root .study-topic-card .theme-btns button{font-size:13px}}
