@charset "UTF-8";
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: #0e1a2b url("bg.svg") center / cover no-repeat fixed; }
body { margin: 0; font-family: system-ui, Segoe UI, Arial, sans-serif; background: transparent; color: #e8eef7; display: flex; flex-direction: column; overflow: hidden; }
header { flex: none; padding: 12px max(20px, calc((100% - 960px) / 2 + 12px)); background: #091221ee; border-bottom: 2px solid #2f80ed; display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; }
header h1 { margin: 0; font-size: 1.4rem; white-space: nowrap; }
#helpDlg { max-width: 600px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; background: #16263e; color: #e8eef7; border: 1px solid #3a5380; border-radius: 10px; }
#helpDlg::backdrop { background: #000a; }
#helpDlg h3 { margin: 14px 0 4px; font-size: 1rem; color: #5ab0ff; }
#helpDlg p, #helpDlg li { line-height: 1.45; }
.brand { color: #5ab0ff; font-weight: 800; }
@media (max-width: 420px) { header h1 { font-size: 1.1rem; } }
#menuWrap { position: relative; margin-left: auto; flex: none; }
#menuBtn { font-size: 1.3rem; line-height: 1; padding: 6px 12px; }
#menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #16263e; border: 1px solid #3a5380; border-radius: 8px; box-shadow: 0 4px 16px #000a; z-index: 10; display: flex; flex-direction: column; overflow: hidden; }
#menu > * { display: block; padding: 10px 14px; text-align: left; background: none; border: 0; border-radius: 0; color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
#menu > *:hover { background: #2c4a76; }
.sub { color: #9db2cf; font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .sub { display: none; } }
main { flex: 1; min-height: 0; overflow-y: auto; width: 100%; box-sizing: border-box; padding: 12px max(12px, calc((100% - 960px) / 2 + 12px)); scrollbar-gutter: stable; }
main.card { --g: max(0px, calc((100vw - 960px) / 2)); padding: 12px calc(var(--g) + 12px); background: linear-gradient(#16263e, #16263e) var(--g) 0 / calc(100% - 2 * var(--g)) 100% no-repeat; box-shadow: none; border-radius: 0; }
#game { display: grid; grid-template-columns: 1fr 260px; grid-template-rows: minmax(0, 1fr); gap: 12px; overflow: hidden; }
#radioPanel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
#side { min-height: 0; overflow-y: auto; }
@media (max-width: 600px) { #game { grid-template-columns: 1fr; grid-template-rows: none; overflow-y: auto; } #radioPanel { overflow: visible; } }
.card { background: #16263e; border-radius: 10px; padding: 12px; box-shadow: 0 2px 8px #0006; }
.hidden { display: none !important; }
.emTimer { padding: 8px 12px; border-radius: 6px; margin-bottom: 8px; font-weight: 700; }
.emTimer.em-ok { background: #3a1a1a; border: 2px solid #ef5350; color: #ffb4b0; }
.emTimer.em-warn { background: #3d3216; border: 2px solid #f2c94c; color: #f2c94c; }
.emTimer.em-late { background: #5a1414; border: 2px solid #ef5350; color: #fff; }
table.cov { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 8px 0; }
table.cov th, table.cov td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #2a3f63; }
.cov-ok { color: #6ee7a0; } .cov-warn { color: #f2c94c; } .cov-none { color: #9db2cf; }
#aideDlg ul { margin: 4px 0 8px; columns: 2; }
label { display: block; margin: 10px 0; }
select, textarea { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #3a5380; background: #0e1a2b; color: inherit; font: inherit; }
.cfg { border: 1px solid #3a5380; border-radius: 8px; padding: 4px 14px 8px; margin: 10px 0; }
.cfgHead, .cfgRow { display: grid; grid-template-columns: 110px 1fr 2fr; gap: 8px; align-items: center; margin: 6px 0; }
.cfgHead { font-size: .8rem; color: #9fb4d6; }
.cfgRow input[type=text] { padding: 6px 8px; border-radius: 6px; border: 1px solid #3a5380; background: #0e1a2b; color: inherit; font: inherit; min-width: 0; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radios label { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.cfg.auto .radios { opacity: .6; }
@media (max-width: 560px) { .cfgHead { display: none; } .cfgRow { grid-template-columns: 1fr; } }
.cfg legend { padding: 0 6px; font-weight: 700; color: #ffd84a; }
textarea { resize: vertical; }
button { padding: 8px 14px; border-radius: 6px; border: 1px solid #3a5380; background: #22385a; color: inherit; cursor: pointer; font: inherit; }
button:hover { background: #2c4a76; }
button.primary { background: #2f80ed; border-color: #2f80ed; }
button:disabled { opacity: .5; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { padding: 3px 9px; font-size: 12px; border-radius: 12px; border: 1px solid #5a7fa8; background: #14263d; color: #cfe2ff; cursor: pointer; }
.chip:hover { background: #1f3a5c; }
.note { color: #9db2cf; font-size: .85rem; }
#strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
#strip div { background: #0e1a2b; border-radius: 6px; padding: 4px 8px; font-size: .85rem; overflow-wrap: anywhere; }
#strip small { display: block; color: #9db2cf; font-size: .7rem; text-transform: uppercase; }
#stFreq { color: #6ee7a0; font-family: Consolas, monospace; }
#briefing { background: #1d3354; border-left: 4px solid #f2c94c; padding: 10px; border-radius: 6px; margin-bottom: 10px; }
#briefing:not(.exam) { background: #1f4a7a; border: 2px solid #f2c94c; border-left-width: 8px; box-shadow: 0 0 10px rgba(242,201,76,.3); padding: 12px 14px; }
.taskTag { display: inline-block; background: #f2c94c; color: #1a1a1a; font-weight: 800; font-size: .75rem; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; }
.taskText { font-size: 1.15rem; font-weight: 600; margin-top: 6px; line-height: 1.35; }
#briefing.exam { background: #4a2a6b; border: 2px solid #f2c94c; border-left-width: 8px; box-shadow: 0 0 12px rgba(242,201,76,.4); }
.examTag { background: #f2c94c; color: #222; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: .8rem; letter-spacing: .05em; }
.examQ { font-size: 1.25rem; font-weight: 600; margin-top: 8px; }
#log { flex: 1 1 90px; min-height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.msg { padding: 7px 10px; border-radius: 8px; max-width: 90%; }
.msg b { display: block; font-size: .7rem; text-transform: uppercase; opacity: .75; }
.msg.atc { background: #35507a; align-self: flex-start; }
.msg.pilot { background: #1f6f4a; align-self: flex-end; }
.msg.speaking { outline: 3px solid #f2c94c; outline-offset: 1px; box-shadow: 0 0 12px rgba(242,201,76,.7); animation: speakPulse 1s ease-in-out infinite; }
@keyframes speakPulse { 50% { outline-color: #fff3b0; box-shadow: 0 0 18px rgba(242,201,76,1); } }
.msg.sys { background: #3a3a1a; align-self: center; font-size: .85rem; }
#feedback { margin-bottom: 8px; }
#feedback .ok { color: #6ee7a0; }
#feedback .bad { color: #ff8b8b; }
#feedback ul { margin: 4px 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.hint { color: #f2c94c; }
.model { background: #0e1a2b; padding: 8px; border-radius: 6px; font-family: Consolas, monospace; }
#elements { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
#elements li { padding: 3px 0; color: #9db2cf; }
#elements li.done { color: #6ee7a0; }
#elements li.done::before { content: "\2714  "; }
#elements li::before { content: "\25CB  "; }
#elements li.lost { color: #f2c94c; }
#elements li.lost::before { content: "\2757  "; }
#elements li.progress { color: #7cc4ff; }
.infoBtn { margin-top: 6px; background: #2f6fb0; }
.infoBox { margin-top: 6px; padding: 10px; background: #0e1a2b; border-left: 4px solid #2f80ed; border-radius: 6px; }
.opt { display: block; width: 100%; text-align: left; margin: 6px 0; }
.opt.right { background: #1f6f4a; }
.opt.wrong { background: #7a2b2b; }
table { border-collapse: collapse; width: 100%; }
td, th { border-bottom: 1px solid #2c4166; padding: 5px 8px; text-align: left; }
