.duel-page, .duel-page *, .duel-page *::before, .duel-page *::after { box-sizing: border-box; letter-spacing: 0; }
.duel-page [hidden] { display: none !important; }
html body .duel-page { width: min(100%, 1360px); margin: 0 auto; padding: 32px 32px 64px; color: #e4edeb; font: 400 15px/1.6 Inter, Arial, sans-serif; }
html body .duel-page :is(h1,h2,h3) { font-family: Inter, Arial, sans-serif !important; font-weight: 600 !important; text-transform: none; text-shadow: none; }
.duel-page h1 { margin: 7px 0 0; font-size: 30px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.duel-page h2 { margin: 26px 0 12px; font-size: 21px; font-weight: 600; line-height: 1.4; }
.duel-page h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.duel-page p { margin: 0 0 18px; line-height: 1.65; }
.duel-page a { color: #94d8c9; text-decoration: none; }
.duel-page a:hover { text-decoration: underline; text-underline-offset: 3px; }
.duel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #34474c; }
.duel-heading > div, .duel-heading nav { min-width: 0; }
.duel-heading nav, .duel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.duel-heading nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; }
.duel-eyebrow { color: #94d8c9; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.duel-page .duel-lead { margin: 24px 0 16px; color: #f0f5f3; font-size: 20px; }
.duel-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 22px; }
.duel-facts span { display: inline-flex; gap: 8px; align-items: center; color: #b8c8c7; font-size: 13px; }
.duel-facts i { color: #f4d151; font-size: 19px; }
.duel-page .duel-button, .duel-page .duel-icon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid #40565d; border-radius: 5px; background: #16262b; color: #e4edeb; font: 500 14px/1.5 Inter, Arial, sans-serif; cursor: pointer; text-align: center; text-decoration: none; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.duel-page .duel-button:hover { background: #20363c; text-decoration: none; }
.duel-page .duel-button--gold { border-color: #ffdb45; background: #ffdb45; color: #121b1c; }
.duel-page .duel-button--gold:hover { background: #ffe779; }
.duel-page :is(a,button,input,textarea,summary):focus-visible { outline: 2px solid #9bdfce; outline-offset: 3px; }
.duel-page :is(input:not([type=hidden]):not([type=radio]), textarea) { display: block; width: 100%; min-width: 0; padding: 12px; border: 1px solid #40565d; border-radius: 5px; background: #0b171c; color: #e4edeb; font: 400 15px/1.5 Inter, Arial, sans-serif; box-shadow: none; }
.duel-page textarea { resize: vertical; }
.duel-page label { color: #c8d6d4; font-size: 14px; }
.duel-page .duel-muted { color: #a5b9b8; font-size: 13px; }
.duel-page .duel-error { margin-top: 20px; padding: 12px 16px; background: #3b2027; border-left: 3px solid #ed939c; color: #ffdee1; }
.duel-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.duel-quiz { min-width: 0; display: flex; flex-direction: column; border: 1px solid #34474c; border-radius: 6px; overflow: hidden; background: #101d22; }
.duel-cover { aspect-ratio: 16/10; overflow: hidden; background: #081215; }
.duel-cover img { width: 100%; height: 100%; object-fit: contain; }
.duel-quiz h2 { margin: 20px 18px 10px; }
.duel-quiz p, .duel-quiz > span { margin: 0 18px 18px; }
.duel-quiz .duel-button { margin: auto 18px 18px; }
.duel-empty { padding: 48px 16px; text-align: center; color: #a5b9b8; }
.duel-empty > i { color: #f4d151; font-size: 36px; }
.duel-create { max-width: 700px; }
.duel-create textarea { margin: 10px 0 20px; }
.duel-create label { display: block; margin-top: 24px; font-weight: 600; }
.duel-create p { margin-top: 8px; color: #a5b9b8; font-size: 14px; }
.duel-invitation, .duel-ready { max-width: 720px; margin: 36px auto; padding: 32px 0; text-align: center; }
.duel-invitation-icon { font-size: 44px; color: #f4d151; }
.duel-room-bar, .duel-game-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: 24px 0; color: #b8c8c7; font-size: 13px; }
.duel-play-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-block: 1px solid #34474c; }
.duel-play-entry h2 { margin: 0 0 4px; }
.duel-play-entry p { margin: 0; }
.duel-table-scroll { max-width: 100%; overflow-x: auto; margin: 14px 0 30px; border-top: 1px solid #34474c; }
.duel-page .duel-table { display: table; width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.duel-table th { padding: 14px 16px; background: #16262b; color: #b8c8c7; font-weight: 500; text-align: left; white-space: nowrap; }
.duel-table td { padding: 17px 16px; border-bottom: 1px solid #2a3c42; vertical-align: middle; }
.duel-table .is-me td { background: #152c28; }
.duel-table td strong { color: #f4d151; }
.duel-invites { border-top: 1px solid #34474c; margin-top: 32px; padding-top: 4px; }
.duel-invites > p { max-width: 780px; color: #a5b9b8; }
.duel-invite-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.duel-invite-item { min-width: 0; border: 1px solid #34474c; border-radius: 6px; padding: 20px; background: #101d22; }
.duel-invite-item .duel-actions { margin: 12px 0; gap: 8px; align-items: start; }
.duel-page .duel-invite-item input[readonly] { font-size: 12px; text-overflow: ellipsis; }
.duel-qr summary { cursor: pointer; padding: 10px 8px; min-height: 44px; color: #94d8c9; font-size: 14px; }
.duel-qr canvas { display: block; max-width: 100%; width: 180px; height: 180px; margin-top: 8px; border-radius: 3px; }
.duel-phone label { display: block; margin: 16px 0 7px; font-size: 12px; }
.duel-phone > div, .duel-add-invite > div { display: flex; gap: 8px; align-items: center; }
.duel-phone .duel-icon { flex: 0 0 44px; width: 44px; padding: 0; font-size: 22px; color: #94d8c9; }
.duel-page .duel-share-status { min-height: 20px; margin: 8px 0 0; color: #94d8c9; font-size: 12px; }
.duel-add-invite { max-width: 560px; margin: 24px 0; }
.duel-add-invite label { display: block; margin-bottom: 8px; }
.duel-add-invite button { flex-shrink: 0; }
.duel-review { margin-top: 24px; }
.duel-review details { padding: 16px 0; border-bottom: 1px solid #34474c; }
.duel-review summary { cursor: pointer; color: #c8d6d4; }
.duel-review details p { margin: 12px 0 0; max-width: 800px; }
.duel-review-image { display: block; max-height: 160px; max-width: 240px; object-fit: contain; }
.duel-progress { width: 100%; height: 5px; display: block; accent-color: #94d8c9; }
.duel-timer { display: flex; align-items: center; gap: 7px; color: #f4d151; font-size: 19px; margin: 24px 0; }
.duel-timer > span:last-child { color: #a5b9b8; font-size: 13px; }
.duel-page .duel-question { text-align: center; font-size: 23px; max-width: 960px; margin: 24px auto; }
.duel-media { width: 100%; height: 340px; background: #081215; display: flex; align-items: center; justify-content: center; margin: 20px 0; border-radius: 5px; overflow: hidden; }
.duel-media img, .duel-media video { width: 100%; height: 100%; object-fit: contain; }
.duel-answer-form fieldset { border: 0; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.duel-page .duel-answer { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border: 1px solid #34474c; border-radius: 5px; background: #142329; color: #e4edeb; cursor: pointer; }
.duel-answer:has(input:checked) { outline: 2px solid #94d8c9; outline-offset: -2px; }
.duel-answer input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #f4d151; }
.duel-answer-number { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 4px; background: #f4d151; color: #121b1c; font-weight: 600; }
.duel-answer img { max-width: min(100%,300px); max-height: 180px; object-fit: contain; min-width: 0; }
.duel-skip { margin: 14px 0; }
.duel-skip button { border: 0; background: none; padding: 10px 0; color: #a5b9b8; cursor: pointer; font: inherit; }
.duel-pagination { display: flex; align-items: center; gap: 20px; justify-content: center; }
.duel-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1000px) { .duel-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); } .duel-heading { flex-wrap: wrap; } }
@media (max-width: 640px) { html body .duel-page { padding: 24px 16px 100px; } .duel-page h1 { font-size: 26px; } .duel-catalog, .duel-invite-list { grid-template-columns: minmax(0,1fr); } .duel-media { height: 260px; } .duel-page .duel-question { font-size: 20px; } .duel-invite-item { padding: 16px; } .duel-add-invite > div { flex-wrap: wrap; } .duel-add-invite button { width: 100%; } .duel-heading { gap: 14px; } .duel-heading nav { gap: 4px 16px; } .duel-page .duel-answer { padding: 12px; gap: 10px; } }
