:root{font-family:ui-rounded,"Hiragino Maru Gothic ProN","Noto Sans JP",system-ui,sans-serif;color:#235180;background:#f2f7fc;font-size:16px;line-height:1.7;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:720px;margin:auto;padding:24px 18px 40px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.brand{font-size:26px;font-weight:850;text-decoration:none;color:#235180;line-height:1.3}.brand span{display:block;font-size:15px;color:#5c73b8}.tag{font-size:14px;color:#416c91;border:1px solid #bfd4e5;border-radius:20px;padding:4px 12px}.panel{background:white;border-radius:20px;padding:26px;margin:22px 0;border:1px solid #d7e4f0;box-shadow:0 5px 18px #23518008}.eyebrow{color:#6174b6;font-weight:700;font-size:14px;letter-spacing:.07em;margin-top:0}h1{font-size:clamp(24px,5vw,34px);line-height:1.5;margin:14px 0}h2{font-size:22px;margin:8px 0 16px}p{margin:12px 0}.accent{color:#a04c6d;font-weight:700}button,.store{font:inherit;font-weight:700;display:block;background:#235180;color:white;text-align:center;border:0;border-radius:12px;padding:14px 18px;cursor:pointer;text-decoration:none;width:100%;margin:14px 0;min-height:48px}button:hover,.store:hover{filter:brightness(1.1)}button:disabled{opacity:.45;cursor:wait}.quiet{background:#eaf1fb;color:#235180}.small,small,#rules{font-size:14px;color:#55718b}label{display:block;font-size:15px;margin:20px 0 8px}label small{display:block}input{font:inherit;display:block;width:100%;padding:12px;margin:8px 0;border:1px solid #b7cce0;border-radius:8px;color:#235180;background:#fff}input:focus,button:focus-visible,a:focus-visible{outline:3px solid #e2a2c7;outline-offset:3px}.play-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.play-heading h2{font-size:20px}#timer{font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap}#words{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;padding:12px;background:#235180;color:white;border-radius:12px;margin:14px 0}#words span.found{text-decoration:line-through;opacity:.5}#board{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;background:#fff;border:4px solid #d5e2f3;border-radius:14px;overflow:hidden;aspect-ratio:1;width:100%}#cells{display:grid;width:100%;height:100%}.cell{display:flex;align-items:center;justify-content:center;line-height:1;pointer-events:none}#lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#lines line{stroke-width:.65;stroke-linecap:round;opacity:.5}#lines .trace{stroke:#6174b6;opacity:.35}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}th{font-size:14px;color:#6174b6}td,th{padding:13px 7px;border-bottom:1px solid #e6edf5}td:last-child,th:last-child{text-align:right;white-space:nowrap}td:nth-child(2){overflow-wrap:anywhere}tr.me{background:#ecf5fc;font-weight:700}.you{display:inline-block;font-size:14px;color:#5b6db0;margin-left:6px}.table-wrap{max-height:520px;overflow:auto}#status{overflow-wrap:anywhere}.download h2{margin-bottom:8px}.store.secondary{background:#eaf1fb;color:#235180}summary{cursor:pointer;font-size:14px}footer{text-align:center;color:#6c8095;font-size:14px;margin-top:30px}footer a{color:inherit}#result-message{color:#9b426a;font-weight:700}@media(max-width:360px){main{padding:18px 12px}.panel{padding:20px 16px}.tag{padding:4px 8px;font-size:13px}.brand{font-size:23px}}@media(min-width:700px){#play{max-width:600px;margin:auto}}

.ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.ranking-heading h2{margin:0}.live-caption{font-size:14px;color:#657b91;white-space:nowrap}#closing:empty,#status:empty,#notify-help:empty{display:none}#my-actions{padding-top:18px}.name-field{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0 14px}.name-field label{font-size:14px;margin:0;white-space:nowrap}.name-field input{margin:0;border-color:#d0dfec;background:#f8fbfe;padding:10px 12px}.field-status{grid-column:2;font-size:14px;min-height:24px;color:#607991}.field-status.error{color:#a8435b}.share-button{display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,280px);margin:12px auto 18px;padding:13px 22px;border-radius:999px;font-size:18px;background:#235180}.share-button svg{width:23px;height:23px;flex:none}.notification-option{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;margin:0 auto;padding:8px 4px;min-height:44px;cursor:pointer;color:#526d86;font-size:14px}.notification-caption{display:flex;align-items:center;gap:8px}.notification-caption svg{width:19px;height:19px}.notification-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}.switch-track{position:relative;width:38px;height:23px;border-radius:99px;background:#c9d7e5;transition:background .15s;flex:none}.switch-track:after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #23518025;transition:transform .15s}.notification-option input:checked+.switch-track{background:#416c91}.notification-option input:checked+.switch-track:after{transform:translateX(15px)}.notification-option input:focus-visible+.switch-track{outline:3px solid #e2a2c7;outline-offset:3px}.notification-option:has(input:disabled){opacity:.55;cursor:wait}#notify-help{text-align:center;margin:8px 0 0}#result-message{font-size:18px;margin:14px 0}
/* Selected draft: the puzzle and its invitation precede the ranking. */
main{max-width:480px;padding:24px 22px 30px}header{margin-bottom:18px}.brand{font-size:24px;font-weight:750;letter-spacing:.025em}.app-promo{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:18px;margin-bottom:24px;border-bottom:1px solid #dce6f0;font-size:14px;color:#617c97}.download-controls{display:flex;align-items:center;gap:4px;flex-shrink:0}#download-app,#app-download summary{display:block;padding:7px 12px;border-radius:99px;background:#e9f2fc;color:#235180;text-decoration:none;font-size:14px;font-weight:600;list-style:none;min-height:36px}#app-download summary::-webkit-details-marker{display:none}#app-download{position:relative}#stores{position:absolute;right:0;top:42px;z-index:5;min-width:160px;background:white;border:1px solid #dce6f0;border-radius:12px;box-shadow:0 5px 20px #23518015;padding:6px}#stores a{display:block;text-decoration:none;color:#235180;padding:10px;font-size:14px}.problem-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dce6f0}.problem-info{display:flex;align-items:center;gap:16px}h1{font-size:21px;margin:0;line-height:1.4}#clear-time{margin:6px 0 0;font-size:16px}#puzzle-preview{display:grid;gap:2px;flex:0 0 76px;width:76px;aspect-ratio:1;padding:7px;border:1px solid #dce6f0;border-radius:10px;background:white;font-size:clamp(7px,2.3vw,12px);line-height:1.1;text-align:center;align-items:center;user-select:none}.share-button{border-radius:13px;width:100%;margin:18px 0 0;font-size:16px;min-height:49px}#results.panel{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:0}h2{font-size:19px}.ranking-heading{margin:0}.live-caption{font-size:13px}#result-message{font-size:16px;margin:12px 0 16px;color:#235180}table{table-layout:fixed;font-size:14px}th:first-child{width:48px}th:last-child{width:83px}td,th{padding:13px 8px}.name-editor{display:flex;align-items:center;gap:5px;margin:0;min-width:0}.name-editor input{font:inherit;font-weight:600;border:0;border-bottom:1px solid #bfd0e1;background:transparent;padding:2px 0;margin:0;min-width:0;border-radius:0;color:#235180}.name-editor input::placeholder{color:#235180;opacity:1}.name-editor span{font-size:15px;font-weight:400;color:#617c97;flex-shrink:0}.field-status{display:block;min-height:0;text-align:center}#my-actions{padding-top:8px}.notification-option{padding-top:12px}footer{margin-top:28px;font-size:12px}footer a{display:inline-block;margin-top:8px}#play{max-width:100%}@media(max-width:360px){main{padding:20px 16px}.brand{font-size:23px}.app-promo{font-size:13px}#download-app,#app-download summary{font-size:13px;padding:7px 10px}th:first-child{width:42px}th:last-child{width:76px}td,th{padding:12px 6px}}
/* A little color belongs to the ranking, while the main action stays navy. */
#results .table-wrap{background:#fff;border:1px solid #ded9ef;border-radius:14px}#results table{background:#fff}#results thead th{background:#e9e5f6;color:#67558f;border-bottom:0;font-weight:600}#results tbody td{border-color:#e7ecf0}#results tbody tr:last-child td{border-bottom:0}#results tr.me td{background:#e1f3eb}#results tr.me td:first-child{box-shadow:inset 3px 0 #7ab69e}#results .name-editor input{border-bottom-color:#a7cdbd}#results .name-editor span{color:#618e7b}
/* Brighter ranking colors: purple heading and a sunny current-player row. */
#results .table-wrap{border-color:#d3b9f1}#results thead th{background:#8240cf;color:#fff}#results tr.me td{background:#ffe66b;color:#235180}#results tr.me td:first-child{box-shadow:inset 4px 0 #f1ac00}#results .name-editor input{border-bottom-color:#c69a15}#results .name-editor span{color:#8a6500}

@font-face{font-family:KotobaTitle;src:url('/title.otf') format('opentype');font-display:swap}
:root{background:#fff7eb;color:#18354b}
.brand{font-family:KotobaTitle,sans-serif;font-weight:400;color:#18354b}
.app-promo-label{display:flex;align-items:center;gap:9px}
.app-promo-label img{border-radius:9px;flex:none}
#download-app,#app-download summary{background:#ffbd41;color:#18354b}
#share{background:#ff7f50;color:#18354b}
#results .table-wrap{border-color:#d8dfe7}
#results thead th{background:#173c60;color:#fff}
#results tr.me td{background:#ffbd41;color:#18354b}
#results tr.me td:first-child{box-shadow:none}
#results .name-editor input,#results .name-editor input::placeholder{color:#18354b}
#results .winner-name{display:inline-flex;align-items:center;gap:5px;max-width:100%}
#results .winner-name:has(.name-editor){width:100%}
#results .winner-name svg{width:16px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
