.mobile-prize-summary{display:none}
@media(max-width:640px){
 body:has(.prediction-page) .header{height:68px}
 .breadcrumbs,.prediction-page .breadcrumbs{margin:14px 0;gap:8px;font-size:11px;flex-wrap:wrap}
 .inner-page,.prediction-page{padding-bottom:20px}
 .scenario-bar,.prediction-page .scenario-bar{display:block;padding:4px;border-style:solid;border-color:#263e4e;border-radius:10px}
 .scenario-bar>span{display:none}.scenario-bar>div,.prediction-page .scenario-bar>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:3px}
 .scenario-bar button,.prediction-page .scenario-bar button{min-height:44px;padding:6px 4px;font-size:10px;line-height:1.4;white-space:normal}
 .inner-heading,.prediction-page .hunt-heading{margin:0;padding:20px 0 16px;gap:10px}
 .inner-heading h1,.prediction-page .hunt-heading h1{font-size:28px;line-height:1.2;margin:8px 0 10px}
 .inner-heading p,.prediction-page .hunt-heading p{font-size:13px;line-height:1.65}
 .inner-heading>img,.prediction-page .hunt-heading>img{display:none}
 .prediction-page .hunt-meta{font-size:10px;gap:6px 12px}
 .prediction-page .hunt-progress{margin:0 0 14px;padding-bottom:12px;gap:10px}
 .prediction-page .hunt-progress li{font-size:10px;line-height:1.4;flex:1;flex-direction:column;align-items:flex-start;gap:7px}
 .mobile-prize-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#152d39;border:1px solid #2e4856;border-radius:10px;margin-bottom:12px}
 .mobile-prize-summary span{font-size:12px;color:#afc3ce}.mobile-prize-summary strong{font-size:22px;font-weight:600;color:#e6f1f6}
 .hunt-sidebar .prize-card{display:none}.hunt-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.hunt-sidebar{grid-template-columns:1fr;gap:14px}
 .prediction-page .hunt-main,.giveaway-main,.participation-info,.hunt-sidebar>.panel{padding:18px;border-radius:12px}
 .hunt-main h2,.prediction-page .hunt-main h2,.giveaway-main h2,.participation-info h2,.hunt-sidebar h2{font-size:19px;line-height:1.35;margin:0}
 .prediction-page .hunt-main>p,.giveaway-main>p{font-size:13px;line-height:1.65;margin:12px 0}
 .prediction-page .hunt-main .section-art{width:26px;height:26px}.prediction-page .hunt-main .panel-title{gap:9px}
 .prediction-page .hunt-main form{display:flex;flex-direction:column;gap:8px;margin-top:14px;max-width:none;width:100%}
 .prediction-page .hunt-main form label{font-size:12px}.prediction-page .guess-input{width:100%;min-height:48px;border-radius:10px}
 .prediction-page .guess-input input{font-size:20px;min-height:48px;padding:10px 12px}.prediction-page .guess-input input::placeholder{font-size:14px}
 .prediction-page #hunt-form>.button{min-height:48px;font-size:13px;margin:4px 0 0;width:100%;box-shadow:none}
 .prediction-page #guess-hint{font-size:10px;line-height:1.6}.prediction-page .hunt-main .demo-form-note{font-size:11px}
 .button,.giveaway-main>.button,.hunt-sidebar>.button{min-height:46px;white-space:normal;line-height:1.5;font-size:13px;box-shadow:none}
 .text-button{min-height:44px;padding:12px 0;font-size:12px;line-height:1.5}
 .closing-note,.prediction-page .closing-note{margin-top:16px;padding-top:14px;gap:6px}.closing-note strong{font-size:12px}.closing-note span{font-size:12px;line-height:1.65}
 .giveaway-main h2{margin:10px 0}.giveaway-count{padding:12px 0;margin:14px 0;gap:12px}.giveaway-count strong{font-size:30px}.giveaway-count span{font-size:11px}
 .giveaway-main>.button{width:100%;min-width:0}.giveaway-main .fine-print{font-size:10px!important;margin-top:12px}
 .selection-visual{margin:20px 0}.participation-info{margin-top:16px}.info-lines>div{margin-top:14px;padding-top:14px}.info-lines p{font-size:12px;line-height:1.65}
 .waiting-visual,.waiting-visual>img{width:52px;height:52px}.waiting-visual{margin-bottom:14px}
 .own-guess{padding:16px;margin:14px 0}.own-guess>strong{font-size:27px}.own-guess small{line-height:1.6}
 .winner-banner{padding:14px;gap:10px;margin:16px 0}.winner-banner>img{width:30px;height:30px}.winner-banner>div{min-width:0}.winner-banner>div>strong{font-size:19px;overflow-wrap:anywhere}.winner-banner .winner-prize strong{font-size:25px;white-space:nowrap}.winner-banner>div>span{font-size:10px}
 .result-stats{grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.result-stats>div{padding:12px}.result-stats strong{font-size:17px;overflow-wrap:anywhere}.result-stats span{font-size:10px;line-height:1.5}
 /* Convert prediction rows into readable cards; no sideways swiping for values. */
 .predictions-panel{padding:16px;margin-top:16px}.prediction-table-wrap{overflow:visible}.prediction-table{display:block}.prediction-table caption{display:block;padding:10px 0 12px;font-size:11px}.prediction-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .prediction-table tbody{display:grid;gap:9px}.prediction-table tbody tr{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:10px 8px;padding:12px;background:#132938;border:1px solid #263f4f;border-radius:10px}
 .prediction-table td,.prediction-table td:first-child,.prediction-table td:nth-child(n+3){padding:0;border:0;white-space:normal;font-size:12px;text-align:left;overflow-wrap:anywhere;min-width:0}
 .prediction-table td:first-child{grid-column:1;grid-row:1;color:#819cac;font-size:11px}.prediction-table td:nth-child(2){grid-column:2/4;grid-row:1;color:#e2edf3;font-weight:500}.prediction-table td:nth-child(3){grid-column:2;grid-row:2}.prediction-table td:nth-child(4){grid-column:3;grid-row:2}
 .prediction-table td:nth-child(n+3):before{content:attr(data-mobile-label);display:block;font-size:10px;color:#819eaf;margin-bottom:4px}.prediction-table .table-avatar{display:none}.prediction-table .winning-row{border-color:#527752}.prediction-table .winner-label{display:inline-block;margin-left:8px}
 .profile-heading{padding:14px 0 18px;margin:0 0 18px;gap:12px}.account-mark{margin-top:12px}.account-identity h1{font-size:22px}.account-identity p{font-size:12px}
 .profile-layout{gap:16px;margin-bottom:22px;grid-template-columns:minmax(0,1fr)}.profile-layout .panel{padding:18px}.profile-layout .panel-title{align-items:flex-start;flex-wrap:wrap;gap:8px}.profile-layout .panel-title h2{font-size:18px;line-height:1.4}.profile-chip{font-size:10px;padding:5px 8px}.profile-layout p{font-size:12px;line-height:1.65}.profile-layout .admin-form{gap:15px;margin-top:18px}
 .profile-layout input,.admin-form input,.admin-form select,.admin-form textarea,.history-search input,.users-controls input,.users-controls select{font-size:16px;min-height:48px;border-radius:9px}
 .profile-layout label{font-size:12px}.profile-layout label small{font-size:11px}.profile-actions{display:grid;grid-template-columns:1fr;gap:4px}.profile-actions .button{width:100%;min-height:48px;font-size:13px}.profile-actions .text-button{justify-self:center}.profile-layout #telegram-preview{font-size:12px;min-height:44px;display:flex;align-items:center;overflow-wrap:anywhere}.profile-layout aside{gap:16px}.profile-event{padding:16px 0;margin-bottom:6px}.profile-event span{font-size:12px}
 /* One predictable vertical scroll in dialogs; close remains easy to reach. */
 dialog,dialog.result-dialog,dialog.user-dialog{box-sizing:border-box;width:calc(100vw - 20px);max-width:none;max-height:calc(100dvh - 20px);margin:auto;padding:24px 16px 18px;border-radius:16px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:55px}
 dialog .close{position:sticky;top:0;float:right;margin:-14px -6px -30px 0;width:44px;height:44px;display:grid;place-items:center;border:1px solid #38505f;border-radius:11px;background:#152c3b;color:#dceaf2;font-size:26px;line-height:1;z-index:5}
 dialog h2{font-size:21px;line-height:1.35;padding-right:30px;margin-bottom:14px;overflow-wrap:anywhere}dialog p,dialog li{font-size:13px;line-height:1.7}dialog small{font-size:11px;line-height:1.6}dialog .button{min-height:48px;font-size:13px}dialog input{font-size:16px;min-height:48px}
 .result-dialog .result-modal-heading{padding-right:30px;gap:10px;margin:8px 0 16px}.result-dialog .result-modal-heading>img{width:32px;height:32px}.result-dialog .result-modal-heading h2{padding:0;font-size:20px}.result-dialog .result-stats{grid-template-columns:1fr 1fr;gap:8px}.result-dialog .result-stats strong{font-size:17px}.result-dialog .result-stats>div{padding:11px}.result-dialog .winner-banner{padding:13px;gap:8px}.result-dialog .winner-banner img{width:28px;height:28px}.result-dialog .winner-banner>div>strong{font-size:18px}.result-dialog .winner-banner .winner-prize strong{font-size:24px}.result-dialog .modal-table td,.result-dialog .modal-table th{font-size:11px;padding:12px 4px;white-space:normal;overflow-wrap:anywhere}.result-dialog .result-dates{display:grid;gap:6px;font-size:11px}.result-dialog .result-explanation,.result-dialog .result-method p,.result-dialog .payment-note p{font-size:12px;line-height:1.7}.result-method>img{width:28px;height:28px}
 .user-dialog .user-card-heading{padding-right:30px;gap:12px;margin:8px 0 18px}.user-dialog .user-card-heading h2{font-size:22px;padding:0}.user-card-mark{height:44px;width:44px;border-radius:11px}.user-metrics{padding:14px 0;gap:14px 0}.user-card-layout{grid-template-columns:1fr;gap:16px}.user-history-panel{height:auto;max-height:none;overflow:visible}.user-history-tabs{gap:0;display:grid;grid-template-columns:repeat(3,1fr)}.user-history-tabs button{min-height:46px;font-size:11px;padding:8px 2px}.user-history-empty{min-height:160px;padding:16px}.user-history-table th{position:static}.user-history-table td{overflow-wrap:anywhere}.user-history-table td:first-child{width:40%}.user-dialog .user-card-footnote{font-size:11px}.user-dialog .contact-note{font-size:11px}.user-contact a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
 .footer>div{flex-wrap:wrap;justify-content:flex-start;gap:10px 18px}.footer a,.footer button{min-height:44px;display:inline-flex;align-items:center}.page-demo-note{font-size:11px;margin-top:20px}
}
@media(max-width:640px){.profile-settings label:has(input[readonly]){display:none}.profile-heading .account-mark{margin-top:10px}.profile-layout .profile-actions{margin-top:0}.user-history-table th{font-size:9px}.user-history-table strong,.user-history-table a{font-size:11px}}
/* Calm mobile event cards: content and prize above one full-width action. */
@media(max-width:640px){
.events-section .event-row{grid-template-columns:minmax(0,1fr) auto;gap:16px 14px;padding:18px;background:#112635;border-color:#294251;border-radius:12px}
.events-section .event-row .art{display:none}
.events-section .event-row .event-copy{grid-column:1;grid-row:1;min-width:0}
.events-section .event-row .status{font-size:10px;margin:0 0 7px;color:#8fa8b8;line-height:1.4}
.events-section .event-row .event-copy h3{font-size:15px;line-height:1.4;margin:0 0 6px;font-weight:500}
.events-section .event-row .event-copy p{font-size:12px;line-height:1.5;margin:0;color:#91a8b8}
.events-section .event-row .prize{grid-column:2;grid-row:1;align-self:start;align-items:flex-end;padding:0;border:0;min-width:48px;gap:3px}
.events-section .event-row .prize small{font-size:10px;color:#8fa8b8}.events-section .event-row .prize strong{font-size:23px;line-height:1.3;color:#e9f1f5;font-weight:500}
.events-section .event-row .button{grid-column:1/-1;grid-row:2;min-height:46px;width:100%;margin:0;border-radius:9px;font-size:12px;box-shadow:none}
.events-section .event-list{gap:12px}
}
