.service-menu-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;margin-left:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);flex-shrink:0}
.service-menu-button svg,.service-menu-links svg{width:22px;height:22px;flex-shrink:0}
.page-heading>.service-menu-button{margin-left:0}.page-heading>div:first-child{margin-right:auto}.preset-tools .service-menu-button{margin-left:2px}
.page-heading:has(.service-menu-button)>div:first-child{flex:1;margin-right:0}.page-heading:has(.service-menu-button)>.theme-toggle{order:10;margin-left:0}.page-heading>.service-menu-button{order:11}
#service-menu,#share-dialog{background:var(--paper);color:var(--ink)}
#service-menu{width:390px}#service-menu .dialog-head{padding:16px 20px}
.service-menu-links{display:grid;padding:8px 16px}.service-menu-links a{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px;border-radius:8px;font-size:17px}.service-menu-links a:hover{background:var(--surface-hover)}.service-menu-links a>span:last-child{margin-left:auto;color:var(--muted)}
.service-menu-foot{display:flex;justify-content:space-between;padding:18px 28px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}.service-menu-foot>a{min-height:30px;align-content:center}
.service-page{max-width:980px;margin:0 auto}.service-page .panel,.service-page .button{background:var(--paper);color:var(--ink)}.service-page .button.primary{background:var(--green);color:white}.service-page .button:hover{background:var(--surface-hover)}.service-page .button.primary:hover{background:var(--primary-hover)}
.service-page h2{font-size:20px}.service-note{font-size:14px;color:var(--muted);line-height:1.7;margin:14px 0}.service-loading{padding:24px 0;color:var(--muted)}
.service-empty{text-align:center;padding:45px 24px;grid-column:1/-1}.service-empty h2{margin:0 0 12px;font-size:20px}.service-empty p{color:var(--muted);font-size:16px}.service-empty .button{margin-top:12px}.service-empty small{display:block;color:var(--muted);font-size:14px}
.community-tools{display:flex;gap:16px;justify-content:space-between;align-items:center}.community-tools .segmented,.admin-tabs{background:var(--surface-subtle)}.community-tools .segmented .active,.admin-tabs .active{background:var(--paper);color:var(--accent-text)}.community-tools .segmented button{font-size:16px;min-height:44px}
.round-select select,.service-form select,.service-form input:not([type=checkbox]),.service-form textarea{width:100%;border:1px solid var(--line-active);background:var(--paper);color:var(--ink);border-radius:8px;font:inherit;font-size:16px;padding:12px;min-height:46px}.round-select select{min-width:110px}.community-caption{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);margin:18px 0}
.shared-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.shared-card{border:1px solid var(--line);background:var(--paper);padding:22px;border-radius:12px;min-width:0}.shared-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.shared-card-head strong{font-size:16px}.shared-card-head small{display:inline-block;margin-left:8px;font-size:14px;font-weight:400;color:var(--accent-text)}
.shared-rank{font-size:14px;color:var(--muted);white-space:nowrap}.shared-rank.is-hit{color:var(--accent-text);font-weight:700}.shared-balls{gap:8px;margin:24px 0 12px}.shared-balls .ball{width:40px;height:40px;font-size:17px}.shared-ball{display:inline-flex;border-radius:50%;padding:3px;border:2px solid transparent}.shared-ball.matched{border-color:var(--accent-text)}.shared-date{font-size:14px;color:var(--muted);margin:10px 0}
.shared-rules{border-top:1px solid var(--line);margin-top:16px;font-size:14px}.shared-rules summary{cursor:pointer;min-height:44px;align-content:center;font-size:16px}.shared-rules ul{padding:0;list-style:none;margin:4px 0 8px}.shared-rules li{display:grid;gap:4px;border-top:1px solid var(--line);padding:10px 0}.shared-rules li strong{font-size:14px}.shared-rules li span,.shared-rules p{color:var(--muted);line-height:1.6}.shared-import{margin-top:10px;width:100%;font-size:15px}.community-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:24px;font-size:14px}
.service-form{max-width:700px;margin:auto}.service-form>label:not(.service-check){display:block;font-weight:600;margin:22px 0 9px}.service-form>label:first-child{margin-top:0}.service-form textarea{resize:vertical;line-height:1.7;min-height:180px}.service-check{display:flex;gap:10px;align-items:center;min-height:44px;margin:12px 0}.service-check input{width:20px;height:20px}.service-form button{min-height:46px}.feedback-caption{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px;margin-top:8px}.form-status{font-size:15px;color:var(--accent-text);line-height:1.7;overflow-wrap:anywhere}.form-status:empty{display:none}.success-mark{display:inline-grid;place-items:center;background:var(--mint);color:var(--accent-text);font-size:25px;width:54px;height:54px;border-radius:50%;margin-bottom:20px}.feedback-success .button{display:block;margin:24px auto 0}
.notice-card{margin-bottom:12px;padding:0!important}.notice-card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;cursor:pointer;list-style:none}.notice-card>summary::-webkit-details-marker{display:none}.notice-card summary strong{font-size:17px;display:block;overflow-wrap:anywhere}.notice-card time{display:block;font-size:14px;color:var(--muted);margin-top:8px}.notice-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;border-top:1px solid var(--line);padding:22px;font-size:16px}
.support-panel{max-width:560px;margin:auto;text-align:center;padding:36px!important}.support-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--mint);color:var(--accent-text);margin:0 auto 20px}.support-symbol svg{width:29px;height:29px}.support-panel>p{font-size:16px;color:var(--muted)}.support-panel .service-note{font-size:14px}.support-network{display:flex;justify-content:center;align-items:center;gap:12px;margin:30px 0 16px;font-size:16px}.support-network strong{font-size:20px}.support-network span{border:1px solid var(--line-active);border-radius:6px;padding:5px 9px;background:var(--mint);color:var(--accent-text)}
#support-qr{width:220px;max-width:100%;aspect-ratio:1;background:#fff;margin:0 auto 24px;border-radius:10px;overflow:hidden}#support-qr svg{display:block;width:100%;height:100%}.support-address-label{display:block;text-align:left;color:var(--muted);font-size:14px;margin:8px 0}#support-address{display:block;width:100%;font-family:ui-monospace,Consolas,monospace;font-size:14px;letter-spacing:-.4px;background:var(--surface-subtle);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:14px 10px;min-height:48px;margin-bottom:12px}.support-transfer-note{font-size:15px!important;line-height:1.8}.support-pending{padding:30px 16px;margin-top:24px;border-top:1px solid var(--line);color:var(--muted)}
.admin-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.admin-tabs{flex-wrap:wrap}.admin-tabs button{font-size:15px;min-height:44px}.admin-login{max-width:480px}.admin-feedback,.admin-shared{margin-bottom:12px}.admin-feedback time{font-size:14px;color:var(--muted)}.private-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.admin-row-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-notice-list{display:grid;gap:10px;margin-top:20px}.admin-notice-item{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;width:100%}.admin-notice-item strong{display:block;font-size:16px}.admin-notice-item small{display:block;font-size:14px;color:var(--muted);margin-top:8px}.admin-shared .balls{margin:18px 0}.admin-shared .ball{width:36px;height:36px}
#share-dialog{width:520px}.share-limit{margin-top:0;color:var(--muted);font-size:14px}.share-nickname{display:flex;justify-content:space-between;gap:12px;margin:12px 0 24px}.share-nickname span{font-size:14px;color:var(--muted)}.nickname-choices,.share-number-choices{padding:0;border:0;margin:0 0 24px;min-width:0}.nickname-choices legend,.share-number-choices legend{font-size:16px;font-weight:600;margin-bottom:12px}.nickname-choices label{display:flex;gap:10px;align-items:center;min-height:48px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:8px 0}.nickname-choices label:has(:checked){background:var(--mint);border-color:var(--line-active)}.nickname-choices p{font-size:14px;color:var(--muted)}.nickname-choices input,.share-number-choices input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.share-number-choices{max-height:300px;overflow:auto}.share-number-choices label{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.share-number-choices .balls{gap:7px}.share-number-choices .ball{width:36px;height:36px;font-size:16px}.result-share-button{margin-left:auto;min-height:44px;color:var(--accent-text);white-space:nowrap;font-size:14px}.result-selection:has(.result-share-button){flex-wrap:wrap;gap:6px 12px}.record-share-button{margin-top:18px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shared-group-line{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.shared-line-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:var(--muted)}.shared-group .shared-balls{margin:12px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}.shared-group .shared-ball{justify-self:center}.shared-group>.shared-card-head{flex-wrap:wrap}.shared-group>.shared-card-head>span{font-size:14px;color:var(--muted)}.share-number-choices label>span{min-width:0}.share-number-choices small{display:block;margin-top:6px;color:var(--muted);font-size:14px}#share-count{font-weight:600;font-size:16px}#share-rules h3{font-size:16px;margin:18px 0 4px}
.admin-game-filter{display:grid;gap:8px;font-size:16px;margin-bottom:20px;max-width:440px}.admin-game-filter select{min-height:48px;width:100%;min-width:0;padding:10px;border:1px solid var(--line-active);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}.admin-number-pool>span{display:block;color:var(--muted);font-size:14px;margin-top:12px}.admin-number-pool .balls{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.admin-international .shared-card-head{flex-wrap:wrap}.admin-international .shared-card-head>span{font-size:14px;overflow-wrap:anywhere}.admin-international .shared-line-heading>span:last-child{overflow-wrap:anywhere;text-align:right}.admin-international .button{min-height:44px}.admin-special-pool{border-left:3px solid var(--accent-text);padding-left:10px}
@media(max-width:900px){
  .service-menu-button{margin-left:6px;width:40px;height:40px;padding:9px}.header-right{min-width:0}#data-round-label{font-size:14px;white-space:nowrap}
  .page-heading:has(#new-shared-number){flex-wrap:wrap;gap:10px}.page-heading #new-shared-number{order:20;flex-basis:100%}.page-heading:has(.service-menu-button){gap:10px}
  .service-page{width:100%}.shared-grid{grid-template-columns:1fr}.shared-card{padding:18px}.shared-balls{justify-content:space-between;gap:2px}.shared-balls .ball{width:36px;height:36px;font-size:16px}.community-tools{gap:8px}.community-tools .segmented button{font-size:14px;padding:7px 9px}.round-select select{min-width:90px;padding:10px 8px}.community-caption{font-size:14px;flex-wrap:wrap}
  .service-form{padding:18px}.service-form>button{width:100%}.support-panel{padding:24px 18px!important}.support-panel>p{font-size:16px}.admin-toolbar{gap:10px}.admin-tabs{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.admin-tabs button{padding:7px 4px;font-size:14px}.admin-toolbar>#admin-logout{margin-left:auto}.admin-feedback .shared-card-head{flex-wrap:wrap}
  .share-number-choices .ball{width:32px;height:32px;font-size:15px}.share-number-choices .balls{gap:5px}.share-number-choices label{gap:10px}#share-dialog .dialog-content{padding:18px}.service-page .button{font-size:16px}.service-page .community-pagination .button{font-size:14px}
}
@media(max-width:360px){.shared-balls .ball{width:31px;height:31px}.shared-card{padding:14px}.shared-card-head{gap:6px;flex-wrap:wrap}.share-number-choices .ball{width:28px;height:30px}.share-number-choices .balls{gap:3px}.share-number-choices label{gap:7px}#support-address{font-size:13px}.community-tools{flex-wrap:wrap}.round-select{margin-left:auto}}
#share-dialog .share-number-choices label{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:6px;min-height:48px}
#share-dialog .share-number-choices input{margin:0}
#share-dialog .share-number-choices .balls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));justify-items:center;width:100%}
@media(max-width:360px){#share-dialog .dialog-content{padding-left:12px;padding-right:12px}#share-dialog .share-number-choices .ball{width:30px;height:30px;font-size:15px}}
