/* Çılgın Sayısal Loto — sadeleştirilmiş stil dosyası.
   Mevcut index.html ve app.js yapısına göre sadeleştirilmiştir.
   Kural öncelikleri, responsive eşikler ve etkileşim stilleri korunmuştur. */

/* Temel stiller ve başlık */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    color: #222c3c;
    background: #fff;
}

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
select:focus-visible {
    outline: 3px solid #7da7ff;
    outline-offset: 2px;
}

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px clamp(12px,2.6vw,30px) 40px;
}

.header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.brand-icon {
    height: 76px;
    width: 76px;
    object-fit: contain;
}

.header h1 {
    font-size: clamp(25px,3vw,36px);
    line-height: 1.2;
    margin: 0;
}

.subtitle,
.help,
.foot {
    color: #657184;
}

.subtitle {
    margin: 5px 0 0;
}

.section {
    border-top: 1px solid #e2e7ed;
    padding-top: 22px;
    margin-top: 25px;
}

.section h2 {
    font-size: 25px;
    margin: 0 0 14px;
}

.section h3 {
    font-size: 20px;
    margin: 18px 0 10px;
}

.summary {
    display: grid;
    gap: 15px;
}

.stat {
    background: #f4f7fa;
    border-radius: 12px;
    padding: 14px 18px;
}

.stat small {
    color: #637084;
    font-weight: 600;
}

.stat strong {
    font-size: 31px;
    display: block;
    line-height: 1.3;
}

.drawline {
    min-width: 0;
}

.drawtitle {
    font-weight: 700;
    margin-bottom: 10px;
}

.draw-balls {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,56px));
    gap: 6px;
    align-items: end;
}

.drawitem {
    text-align: center;
    min-width: 0;
}

/* Çekiliş topları ve ortak kontroller */
.round {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background: #e9163d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    margin: auto;
    border: 2px solid rgba(255,255,255,.65);
}

.round.joker {
    background: #139dd1;
}

.round.star {
    background: #f6c71d;
    color: #292314;
}

.cap {
    font-size: 10px;
    white-space: nowrap;
    line-height: 1.5;
    color: #657184;
}

.select {
    border: 1px solid #c8d1dd;
    border-radius: 10px;
    background: white;
    padding: 9px 11px;
}

.message.bad {
    background: #fff0f0;
    color: #a43737;
}

.choice {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.choice button {
    border: 1px solid #c8d3df;
    background: #f8fafc;
    border-radius: 9px;
    padding: 9px 12px;
    color: #3c5066;
    font-weight: 650;
}

.choice button.on {
    background: #2a5b9a;
    color: white;
    border-color: #2a5b9a;
}

.choice button:disabled {
    opacity: .55;
}

.num {
    border: 2px solid #c7ced7;
    background: white;
    color: #344052;
    font-weight: 750;
    padding: 0;
    text-align: center;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
}

.primary {
    background: #2865a4;
    color: #fff;
    border: 0;
    font-weight: 750;
}

.primary:hover {
    background: #1d5186;
}

.primary:disabled {
    opacity: .55;
    cursor: default;
}

.ticket-numbers {
    flex-wrap: wrap;
}

.copybtn {
    border: 1px solid #cdd6e1;
    background: white;
    color: #425979;
}

.copybtn:disabled {
    opacity: .6;
}

.foot {
    border-top: 1px solid #e3e7ec;
}

.small {
    font-size: 13px;
}

/* Diğer oyunlar (gizli bölüm dahil) */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 12px;
    margin: 15px 0;
}

.future {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d6dfe9;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    text-decoration: none;
    color: #303a4a;
}

.future img {
    width: 57px;
    height: 57px;
    object-fit: contain;
}

.future strong {
    display: block;
}

.future small {
    color: #738093;
}

.future.active {
    border-color: #92add0;
    background: #f5f9ff;
}

/* Mobil temel düzen */
@media (max-width: 700px) {

    .app {
        padding: 10px 12px 28px;
    }

    .header {
        gap: 8px;
    }

    .brand-icon {
        height: 53px;
        width: 53px;
    }

    .header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 12px;
    }

    .summary {
        gap: 12px;
    }

    .stat {
        padding: 10px 13px;
    }

    .stat strong {
        font-size: 26px;
    }

    .draw-balls {
        grid-template-columns: repeat(8,minmax(0,1fr));
        gap: 3px;
    }

    .drawitem .round {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        font-size: clamp(10px,3vw,14px);
        border-width: 1.5px;
    }

    .cap {
        font-size: 8px;
    }

    .section h2 {
        font-size: 22px;
    }

    .section h3 {
        font-size: 18px;
    }

    .ticket {
        grid-template-areas: "label copy" "numbers numbers";
    }

    .ticket-numbers {
        grid-area: numbers;
    }

    .copybtn {
        grid-area: copy;
    }

    .choice button {
        padding: 8px;
        font-size: 12px;
    }
}

.ticket-workspace {
    width: 100%;
}

/* Kupon tercihleri ve sonuç kartları */
.ticket-preferences {
    border: 1px solid #dce5eb;
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
}

.ticket-preferences h3 {
    margin: 0 0 14px;
    font-size: 19px;
}

.ticket-preferences .num-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 15px 0 10px;
}

.ticket-preferences .num {
    width: 100%;
    max-width: 42px;
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(10px, 1vw, 13px);
    border-radius: 50%;
    min-width: 0;
}

.ticket-preferences .num.ban {
    background: #e4424f;
    color: #ffffff;
    border-color: #c52634;
}

.ticket-controls #methoddesc {
    margin: 10px 0 16px;
}

.ticket-controls .options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 17px;
}

.ticket-controls #tickets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-controls #tickets .ticket {
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px;
    border-radius: 11px;
}

#tickets .ticket-numbers {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: start;
    gap: 3px;
    width: 100%;
    min-width: 0;
}

#tickets .ticket-ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
}

#tickets .ticket-ball .round {
    box-sizing: border-box;
    width: min(100%, 37px);
    max-width: 37px;
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 750;
    border-radius: 50%;
    margin: 0 auto;
}

#tickets .ticket-ball .round.star {
    background: #f6c71d;
    color: #292314;
    outline: none;
}

#tickets .ticket-ball .cap {
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    min-height: 10px;
}

#tickets .copybtn {
    min-width: 0;
    border-radius: 8px;
    justify-self: end;
}

.stats-panel .stats .statnum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 3px;
    min-width: 0;
    border: 1px solid #e4eaf0;
    border-radius: 11px;
    background: #f7f9fb;
    text-align: center;
}

.stats-panel .stats .statnum .round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    max-width: 100%;
    border-radius: 50%;
    margin: 0 auto;
    background: #59768a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    border: 0;
}

.ticket-workspace,
.stats-panels,
.ticket-controls,
.ticket-preferences {
    min-width: 0;
}

@media (max-width: 900px) {

    .ticket-preferences {
        padding: 13px;
    }
}

@media (max-width: 700px) {

    .ticket-preferences .num {
        max-width: 42px;
        font-size: 12px;
    }

    .coupon-qty-row b {
        display: block;
    }

    #tickets .ticket-numbers {
        gap: 2px;
    }

    #tickets .ticket-ball .round {
        width: min(100%, 36px);
        height: auto;
        font-size: clamp(9px, 3vw, 13px);
    }

    #tickets .ticket-ball .cap {
        font-size: 7px;
    }
}

@media (max-width: 390px) {

    .stats-panel .stats .statnum {
        padding: 7px 2px;
    }
}

#status.bad {
    background: #fff0f0;
    border-color: #eecaca;
}

/* Veri durumu */
#status {
    background: #f3f8f7;
    border: 1px solid #d9e8e4;
    border-radius: 11px;
    padding: 13px 15px;
    margin: 15px 0;
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    color: #245950 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
}

#status #status-text,
#status #updated {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

#status #updated {
    margin-left: 0.35em !important;
}

@media (max-width: 700px) {

    #status {
        white-space: normal !important;
    }
}

/* Kupon oluşturma kontrolleri */
.ticket-controls .coupon-action-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    justify-content: stretch !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 16px !important;
}

.ticket-controls .coupon-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

.ticket-controls .coupon-qty-row b {
    font-size: 12px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.ticket-controls .coupon-qty-row #qty {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: auto !important;
    min-width: 0 !important;
}

.ticket-controls .coupon-qty-row #qty button {
    box-sizing: border-box !important;
    width: 29px !important;
    min-width: 29px !important;
    height: 37px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    flex: 0 0 29px !important;
}

.ticket-controls #generate {
    grid-column: 2 !important;
    align-self: end !important;
    justify-self: end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 37px !important;
    height: 37px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
}

.ticket-controls #tickets {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 13px !important;
}

@media (min-width: 701px) {

    .ticket-controls .coupon-qty-row {
        flex-direction: row !important;
        align-items: center !important;
    }
}

@media (max-width: 700px) {

    .ticket-controls .coupon-qty-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    .ticket-controls .coupon-qty-row #qty {
        align-self: flex-start !important;
    }

    .ticket-controls #generate {
        font-size: 12px !important;
        padding: 0 9px !important;
    }
}

@media (max-width: 360px) {

    .ticket-controls .coupon-action-row {
        gap: 5px !important;
    }

    .ticket-controls .coupon-qty-row #qty {
        gap: 2px !important;
    }

    .ticket-controls .coupon-qty-row #qty button {
        width: 27px !important;
        min-width: 27px !important;
        flex-basis: 27px !important;
    }

    .ticket-controls #generate {
        font-size: 11px !important;
        padding: 0 7px !important;
    }
}

/* Banko seçimi ve klavye odağı */
.ticket-preferences #numbergrid .num.bank {
    box-sizing: border-box !important;
    width: 100%;
    aspect-ratio: 1;
    background: #0F766E !important;
    color: #FFFFFF !important;
    border: 2px solid #0D5F58 !important;
    border-radius: 50% !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    background-clip: border-box !important;
    appearance: none;
    -webkit-appearance: none;
}

.ticket-preferences #numbergrid .num.bank:focus-visible {
    outline: 3px solid #7da7ff !important;
    outline-offset: 3px !important;
}

@media (max-width: 700px) {

    .ticket-workspace {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .ticket-workspace > .ticket-controls {
        display: contents !important;
    }

    .ticket-controls > #methods {
        order: 1;
    }

    .ticket-controls > #methoddesc {
        order: 2;
    }

    .ticket-workspace > .ticket-preferences {
        order: 3;
        width: 100%;
        min-width: 0;
        margin: 5px 0 17px !important;
    }

    .ticket-controls > .options {
        order: 4;
        width: 100%;
        margin: 5px 0 16px !important;
    }

    .ticket-controls > .coupon-action-row {
        order: 5;
        margin-top: 4px !important;
    }

    .ticket-controls > #tickets {
        order: 6;
        margin-top: 13px !important;
    }

    .ticket-controls > #notice {
        order: 7;
    }

    .ticket-preferences #numbergrid {
        display: grid !important;
        grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

.stats-panel .stats .statnum small {
    display: block;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #596f80 !important;
}

.ticket-controls #tickets .ticket {
    display: grid;
    align-items: center;
    min-width: 0;
    border: 1px solid #dce5eb;
    background: #ffffff;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr) 82px !important;
}

.ticket-controls #tickets .copybtn {
    width: 82px !important;
    min-height: 35px !important;
    padding: 7px 4px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.foot {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: #657184 !important;
    margin-top: 22px !important;
    padding-top: 14px !important;
    margin-bottom: 0 !important;
}

main.app {
    padding-bottom: 12px !important;
}

@media (max-width: 700px) {

    .ticket-controls #tickets .ticket {
        gap: 4px;
        padding: 7px 5px;
        grid-template-columns: minmax(0, 1fr) 68px !important;
    }

    .ticket-controls #tickets .copybtn {
        width: 68px !important;
        min-height: 34px !important;
        padding: 5px 2px !important;
        font-size: 10.5px !important;
    }

    .stats-panel .stats .statnum small {
        font-size: 11px !important;
    }

    .foot {
        font-size: 13px !important;
    }

    main.app {
        padding-bottom: 10px !important;
    }
}

.summary {
    grid-template-columns: 200px minmax(0,1fr) !important;
    align-items: start !important;
}

/* Son çekiliş ve analiz dönemi */
.summary .drawline {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 150px !important;
    align-items: start !important;
    gap: 14px !important;
}

.summary .draw-info {
    min-width: 0;
}

.summary .overview-period {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-self: end !important;
    gap: 6px !important;
    width: 150px;
}

.summary .overview-period label {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.summary .overview-period #period {
    width: 150px;
    min-width: 0 !important;
}

@media (max-width: 900px) {

    .summary {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .summary .drawline {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 12px !important;
    }

    .summary .overview-period {
        align-self: flex-end !important;
    }
}

@media (max-width: 700px) {

    .summary .drawline {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .summary .draw-info {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .summary .overview-period {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        align-self: stretch !important;
        justify-self: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
        margin-top: 3px !important;
    }

    .summary .overview-period label {
        display: inline !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        white-space: nowrap !important;
        text-align: right !important;
    }

    .summary .overview-period label::after {
        content: ":";
    }

    .summary .overview-period #period {
        display: block !important;
        width: 130px !important;
        min-width: 0 !important;
        max-width: 130px !important;
        flex: 0 0 130px !important;
        margin: 0 !important;
    }
}

/* Ekran boyutuna göre alt başlık */
.header .subtitle-desktop {
    display: inline;
}

.header .subtitle-mobile {
    display: none;
}

@media (max-width: 700px) {

    .header > div {
        min-width: 0;
    }

    .header .subtitle-desktop {
        display: none;
    }

    .header .subtitle-mobile {
        display: block;
        white-space: nowrap;
        font-size: clamp(10px, 2.8vw, 12px);
        letter-spacing: -0.1px;
        line-height: 1.4;
    }
}

*,
::before,
::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
}

.ticket-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: start;
    gap: clamp(16px, 2.5vw, 30px);
}

.ticket-controls,
.ticket-preferences {
    max-width: 100%;
    min-width: 0;
}

.coupon-action-row {
    flex-wrap: wrap;
}

.coupon-qty-row {
    flex-wrap: wrap;
}

.coupon-qty-row b {
    flex-shrink: 0;
}

.coupon-qty-row #qty button {
    text-align: center;
}

.ticket-controls #tickets {
    max-width: 100%;
}

#tickets .ticket-ball .round:not(.star):not(.joker) {
    background: #0F766E;
    color: #fff;
}

#tickets .ticket-ball .round.fixed {
    outline: 3px solid #0D5F58;
    outline-offset: 2px;
}

/* İstatistik panelleri */
.stats-panels {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 16px;
}

.stats-panel {
    min-width: 0;
    border: 1px solid #dce5e9;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(20, 42, 57, 0.035);
}

.stats-panel h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 5px;
    color: #243746;
}

.stats-description {
    font-size: 12px;
    line-height: 1.5;
    color: #71808b;
    margin: 0 0 14px;
}

.stats-panel .stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.stats-panel .stats > * {
    margin: 0 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 1050px) {

    .stats-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .ticket-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {

    .stats-panels {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stats-panel {
        padding: 14px;
    }

    .stats-panel .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .stats-panel h3 {
        font-size: 15px;
    }
}

@media (max-width: 390px) {

    .stats-panel .stats {
        gap: 5px;
    }
}

/* Model ve sayı tercihi düğmeleri */
#methods.choice,
#pickmode.choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

#methods.choice > button,
#pickmode.choice > button {
    box-sizing: border-box;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #D7E0E9;
    border-radius: 7px;
    background: #F8FAFC;
    color: #3C5066;
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color .15s,
                border-color .15s;
}

#methods.choice > button:hover:not(.on),
#pickmode.choice > button:hover:not(.on) {
    background: #EDF2F6;
    border-color: #B9C8D6;
}

#methods.choice > button.on {
    background: #2A5B9A;
    border-color: #2A5B9A;
    color: #FFFFFF;
    font-weight: 600;
}

#pickmode.choice > button[data-mode="bank"].on {
    background: #0F766E;
    border-color: #0D5F58;
    color: #FFFFFF;
    font-weight: 600;
}

#pickmode.choice > button[data-mode="ban"].on {
    background: #D93C49;
    border-color: #B52D3A;
    color: #FFFFFF;
    font-weight: 600;
}

#methods.choice > button:focus-visible,
#pickmode.choice > button:focus-visible {
    outline: 3px solid #7DA7FF;
    outline-offset: 2px;
}

@media (max-width: 700px) {

    #methods.choice,
    #pickmode.choice {
        gap: 4px;
    }

    #methods.choice > button,
    #pickmode.choice > button {
        height: 34px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
}
/* Logo boyutlari - Super Loto ile esit */
.header img.brand-icon {
    width: 86px;
    height: 86px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .header img.brand-icon {
        width: 60px;
        height: 60px;
    }
}

.selection-summary {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 9px;
}

.selection-summary #selected {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.selection-summary #transfer-notice {
    flex: 0 1 auto;
    max-width: 48%;
    min-width: 0;
    margin-left: auto;
    color: #607182;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.selection-summary #transfer-notice:empty {
    display: none;
}


#pickmode {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

#pickmode button {
    white-space: nowrap;
}

#pickmode #clear-selections {
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid #d0d8e1;
    border-radius: 9px;
    background: #f7f9fb;
    color: #425466;
    font-weight: 500;
}

#pickmode #clear-selections:hover {
    background: #e9eef3;
}

@media (max-width: 400px) {
    #pickmode {
        gap: 4px;
    }

    #pickmode #clear-selections {
        padding: 7px 8px;
    }
}


.coupon-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.coupon-buttons #clear-tickets {
    padding: 9px 11px;
    min-height: 36px;
    border: 1px solid #d0d8e1;
    border-radius: 9px;
    background: #f7f9fb;
    color: #425466;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.coupon-buttons #clear-tickets:hover {
    background: #e9eef3;
}

.coupon-buttons #clear-tickets[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .coupon-buttons {
        gap: 4px;
    }

    .coupon-buttons #clear-tickets {
        padding: 8px 7px;
        font-size: 11px;
    }
}


/* ADALETTEKNO_LOTO_TABS_V1 */

:root{
    --loto-color:#e9163d;
}

[id^="loto-panel-"][hidden]{
    display:none!important;
}

.loto-navigation{
    border-top:1px solid #dce5eb;
    margin:24px 0 18px;
    padding-top:20px;
}

.loto-navigation h2{
    font-size:25px;
    margin:0 0 14px;
}

.loto-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.loto-tabs button,
.loto-pagination button{
    font:inherit;
    font-size:14px;
    font-weight:600;
    color:#3c5066;
    border:1px solid #d7e0e9;
    background:#f8fafc;
    border-radius:8px;
    padding:9px 12px;
    min-height:42px;
    cursor:pointer;
}

.loto-tabs button[aria-selected="true"]{
    background:#2a5b9a;
    border-color:#2a5b9a;
    color:#fff;
}

.loto-tabs button:focus-visible{
    outline:3px solid #7da7ff;
    outline-offset:2px;
}

.loto-panel{
    min-width:0;
    margin:18px 0 24px;
}

.loto-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.loto-summary>div{
    border:1px solid #e4eaf0;
    background:#f4f7fa;
    border-radius:12px;
    padding:14px;
}

.loto-summary span{
    font-size:13px;
    color:#657184;
    display:block;
}

.loto-summary strong{
    display:block;
    font-size:26px;
    margin-top:4px;
}

.loto-surface{
    border:1px solid #dce5eb;
    border-radius:16px;
    background:#fff;
    padding:18px;
    min-width:0;
}

.loto-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.loto-toolbar h3,
#loto-extra-frequencies h3{
    font-size:19px;
    margin:0 0 6px;
}

.loto-toolbar p,
#loto-extra-frequencies p{
    font-size:13px;
    color:#657184;
    margin:0 0 12px;
}

.loto-filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.loto-toolbar select,
.loto-toolbar input{
    box-sizing:border-box;
    max-width:100%;
    min-width:0;
    padding:9px 11px;
    border:1px solid #c8d1dd;
    background:white;
    border-radius:9px;
    min-height:42px;
    font:inherit;
    font-size:13px;
}

.loto-frequency-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px 24px;
}

.loto-frequency-row{
    display:grid;
    grid-template-columns:25px minmax(0,1fr) 40px;
    align-items:center;
    gap:8px;
    font-size:13px;
}

.loto-frequency-row>span{
    text-align:right;
    font-variant-numeric:tabular-nums;
}

.loto-track{
    height:9px;
    border-radius:8px;
    background:#edf1f5;
    overflow:hidden;
}

.loto-track>div{
    height:100%;
    border-radius:8px;
    background:var(--loto-color);
}

.loto-frequency-joker .loto-track>div{
    background:#139dd1;
}

.loto-frequency-star .loto-track>div{
    background:#f6c71d;
}

#loto-extra-frequencies h3{
    border-top:1px solid #dce5eb;
    padding-top:18px;
    margin-top:24px;
}

.loto-table-wrap{
    overflow-x:auto;
    width:100%;
}

.loto-table{
    border-collapse:collapse;
    width:100%;
    table-layout:fixed;
    font-size:14px;
}

.loto-table th,
.loto-table td{
    border-bottom:1px solid #dce5eb;
    padding:12px 10px;
    text-align:left;
    vertical-align:middle;
}

.loto-table th{
    background:#f4f7fa;
    font-size:13px;
}

.loto-table th:nth-child(1){width:15%}
.loto-table th:nth-child(2){width:10%}
.loto-table th:nth-child(3){width:45%}
.loto-table th:nth-child(n+4){width:10%}

.loto-table td:first-child{
    white-space:nowrap;
    font-weight:600;
}

.loto-table th:nth-child(2),
.loto-table td:nth-child(2),
.loto-table .loto-analysis{
    text-align:center;
}

.loto-table td.loto-analysis{
    font-weight:600;
    font-variant-numeric:tabular-nums;
}

.loto-table tbody tr:nth-child(even){
    background:#f8fafc;
}

.loto-table tbody tr:hover{
    background:#f0f4f8;
}

.loto-balls{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
}

.loto-ball{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:none;
    width:32px;
    height:32px;
    border-radius:50%;
    color:white;
    background:var(--loto-color);
    font-size:13px;
    font-weight:750;
}

.loto-ball.loto-joker{
    background:#139dd1;
}

.loto-ball.loto-star{
    background:#f6c71d;
    color:#292314;
}

.loto-special{
    display:flex;
    align-items:center;
    flex-direction:column;
    gap:3px;
    min-width:32px;
}

.loto-special small{
    color:#657184;
    font-size:9px;
}

.loto-archive-note{
    color:#657184;
    font-size:12px;
    margin-bottom:10px;
}

.loto-archive-note:empty{
    display:none;
}

.loto-pagination{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    font-size:13px;
    padding-top:14px;
}

.loto-pagination button:disabled{
    opacity:.45;
    cursor:default;
}

/* On Numara: 22 top daha kompakt gösterilir. */
#nn-app .loto-balls{
    gap:4px;
}

#nn-app .loto-ball{
    width:25px;
    height:25px;
    font-size:11px;
}

@media(max-width:900px){
    .loto-frequency-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:800px){
    .loto-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .loto-table .loto-analysis{
        display:none;
    }

    .loto-table th:nth-child(1){width:29%}
    .loto-table th:nth-child(2){width:16%}
    .loto-table th:nth-child(3){width:55%}
}

@media(max-width:560px){
    .loto-navigation h2{
        font-size:22px;
    }

    .loto-tabs{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:4px;
    }

    .loto-tabs button{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        font-size:12px;
        padding:7px 3px;
    }

    .loto-summary strong{
        font-size:22px;
    }

    .loto-surface{
        padding:12px;
    }

    .loto-frequency-grid{
        gap:9px 10px;
    }

    .loto-frequency-row{
        grid-template-columns:20px minmax(0,1fr) 32px;
        gap:4px;
        font-size:12px;
    }

    .loto-table th,
    .loto-table td{
        padding:10px 4px;
        font-size:11px;
    }

    .loto-balls{
        gap:3px;
    }

    .loto-ball,
    #nn-app .loto-ball{
        width:22px;
        height:22px;
        font-size:10px;
    }

    .loto-special{
        min-width:22px;
    }

    .loto-special small{
        font-size:8px;
    }
}

/* BEGIN ADALETTEKNO_YERLESIM_V1 */

#status.message {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
}

#status.message #status-text {
    display: block !important;
    flex: 1 1 300px;
    min-width: 0;
    margin: 0 !important;
    text-align: left;
}

#status.message #updated {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    #status.message {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    #status.message #status-text,
    #status.message #updated {
        display: block !important;
        flex: none;
        width: 100%;
        margin: 0 !important;
        text-align: left;
        white-space: normal;
    }
}

/* END ADALETTEKNO_YERLESIM_V1 */


/* CSL-MOBIL-TOP-HIZALAMA */

@media (max-width: 700px) {

    body[data-loto-game="csl"] .app #tickets .ticket {
        align-items: center !important;
        align-content: center !important;
    }

    body[data-loto-game="csl"] .app #tickets .ticket-numbers {
        align-items: center !important;
        align-self: center !important;
        margin-block: 0 !important;
        padding-block: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    body[data-loto-game="csl"] .app #tickets .ticket-ball {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        margin-block: 0 !important;
        padding-block: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    body[data-loto-game="csl"] .app #tickets .ticket-ball .round {
        margin: 0 auto !important;
        align-self: center !important;
        flex-shrink: 0 !important;
    }

    /* SüperStar etiketi topun merkezini kaydırmasın */

    body[data-loto-game="csl"] .app #tickets
    .ticket-ball:has(> .round) > :not(.round) {
        position: absolute !important;
        top: calc(100% + 2px) !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    body[data-loto-game="csl"] .app #tickets
    .ticket:has(.ticket-ball > :not(.round):not(:empty)) {
        min-height: 64px !important;
    }

    body[data-loto-game="csl"] .app #tickets .copybtn {
        align-self: center !important;
    }
}

/* CSL-MOBIL-TOP-HIZALAMA-SON */
