:root{
    --bg:#060b12;
    --panel:#0d1622;
    --line:#1d3550;
    --cyan:#00e5ff;
    --green:#00ff9c;
    --red:#ff4d6d;
    --text:#d8f7ff;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;

    background:
    radial-gradient(
        circle at top,
        #0f2238 0%,
        #060b12 55%
    );

    color:var(--text);

    font-family:
    "Segoe UI",
    "Yu Gothic UI",
    sans-serif;

    overflow-x:hidden;
}

body::before{
    content:"";

    position:fixed;
    inset:0;

    pointer-events:none;

    background:
    repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,.02),
        rgba(255,255,255,.02) 1px,
        transparent 1px,
        transparent 4px
    );

    opacity:.3;
}

header{
    text-align:center;
    padding:30px 20px 10px;
}

header h1{

    margin:0;

    font-size:42px;

    color:var(--cyan);

    font-family:
    'Orbitron',
    sans-serif;

    text-shadow:
    0 0 10px var(--cyan),
    0 0 30px rgba(0,229,255,.5);

}

header p{
    margin-top:10px;
    color:#89b7c4;
}

.layout{

    display:grid;

    grid-template-columns:
    300px 1fr 340px;

    gap:20px;

    padding:20px;

    max-width:1700px;

    margin:auto;
}

.panel{

    background:
    rgba(13,22,34,.9);

    border:
    1px solid var(--line);

    border-radius:18px;

    padding:18px;

    box-shadow:
    0 0 20px rgba(0,229,255,.06),
    inset 0 0 20px rgba(255,255,255,.02);

}

.panel h2{

    margin-top:0;

    color:var(--cyan);

    font-size:18px;

    font-family:
    'Orbitron',
    sans-serif;
}

.status-item{
    margin-bottom:18px;
}

.label{

    font-size:13px;

    color:#6ea9b9;

    margin-bottom:6px;
}

.value{

    font-size:28px;

    font-weight:bold;

    color:var(--green);

    font-family:
    'Orbitron',
    sans-serif;
}

.center-area{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;
}

.mouse-wrap{

    position:relative;

    width:240px;

    height:380px;

    margin-top:10px;
}

.mouse{

    position:absolute;

    inset:0;

    border-radius:180px;

    background:
    linear-gradient(
        180deg,
        #1f2d3d,
        #111926
    );

    border:
    2px solid #2e4c6e;

    box-shadow:
    0 0 30px rgba(0,229,255,.12),
    inset 0 0 30px rgba(255,255,255,.04);
}

.mouse::before{

    content:"";

    position:absolute;

    top:0;

    left:50%;

    transform:
    translateX(-50%);

    width:4px;

    height:100%;

    background:#223f5a;
}

.btn{
    position:absolute;

    transition:.08s;

    border:
    1px solid rgba(255,255,255,.06);
}

.btn.active{

    background:
    rgba(0,229,255,.45);

    transform:scale(.98);

    box-shadow:
    0 0 20px var(--cyan),
    0 0 60px var(--cyan),
    0 0 120px rgba(0,229,255,.5);

}

.left{
    top:28px;
    left:18px;

    width:96px;
    height:145px;

    border-radius:
    60px 20px 30px 40px;
}

.right{
    top:28px;
    right:18px;

    width:96px;
    height:145px;

    border-radius:
    20px 60px 40px 30px;
}

.middle{

    top:75px;

    left:50%;

    transform:
    translateX(-50%);

    width:30px;

    height:70px;

    border-radius:20px;

    background:#162533;
}

.side-back{

    position:absolute;

    left:-18px;

    top:150px;

    width:28px;

    height:42px;

    border-radius:10px;

    background:#152534;
}

.side-forward{

    position:absolute;

    left:-18px;

    top:208px;

    width:28px;

    height:42px;

    border-radius:10px;

    background:#152534;
}

.side-back.active,
.side-forward.active{

    background:
    rgba(0,229,255,.45);

    transform:scale(.96);

    box-shadow:
    0 0 18px var(--cyan),
    0 0 40px var(--cyan),
    0 0 80px rgba(0,229,255,.45);

}

.wheel-indicator{

    position:absolute;

    top:155px;

    left:50%;

    transform:
    translateX(-50%);

    font-size:12px;

    color:var(--green);
}

.log{

    height:640px;

    overflow:auto;

    background:#08111b;

    border-radius:12px;

    padding:10px;

    font-family:monospace;

    font-size:13px;
}

.log-entry{

    margin-bottom:6px;

    color:#9fe7ff;
}

.warn{
    color:var(--red);
}

.result{

    margin-top:20px;

    width:100%;

    max-width:760px;

    background:
    rgba(7,20,28,.95);

    border:
    1px solid #24445f;

    border-radius:16px;

    padding:20px;

    box-shadow:
    0 0 25px rgba(0,229,255,.08);
}

.result h3{

    margin-top:0;

    color:var(--cyan);

    font-family:
    'Orbitron',
    sans-serif;
}

.result-status{

    font-size:32px;

    font-weight:bold;

    margin:10px 0;

    font-family:
    'Orbitron',
    sans-serif;
}

.copy-btn{

    margin-top:15px;

    width:100%;

    border:none;

    padding:14px;

    border-radius:12px;

    background:
    linear-gradient(
        90deg,
        #00b7ff,
        #00ffd0
    );

    color:black;

    font-weight:bold;

    cursor:pointer;

    font-size:16px;
}

.copy-btn:hover{
    opacity:.9;
}

.trail{

    position:fixed;

    width:10px;

    height:10px;

    border-radius:50%;

    background:
    rgba(0,229,255,.6);

    pointer-events:none;

    box-shadow:
    0 0 12px var(--cyan);

    animation:
    fade .5s linear forwards;
}

@keyframes fade{

    to{
        opacity:0;
        transform:scale(.2);
    }

}

@media(max-width:1200px){

    .layout{
        grid-template-columns:1fr;
    }

    .log{
        height:300px;
    }

}

.wheel-side{

    position:absolute;

    top:185px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:24px;

    font-size:22px;

}

.wheel-side span{

    opacity:.25;

    transition:.15s;

    color:var(--cyan);

}

.wheel-side span.active{

    opacity:1;

    text-shadow:
    0 0 10px var(--cyan),
    0 0 25px var(--cyan);

    transform:scale(1.3);

}

.middle{
    overflow:hidden;
}

.wheel-up-light,
.wheel-down-light{

    position:absolute;

    left:0;

    width:100%;

    height:50%;

    opacity:0;

    transition:.12s;

}

.wheel-up-light{

    top:0;

    border-radius:
    20px 20px 0 0;
    transform:translateY(-2px)

}

.wheel-down-light{

    bottom:0;

    border-radius:
    0 0 20px 20px;
    transform:translateY(2px)

}

.wheel-up-light.active,
.wheel-down-light.active{

    opacity:1;

    background:
    rgba(0,229,255,.5);

    box-shadow:
    0 0 12px var(--cyan),
    0 0 30px var(--cyan);

}

.hud-ring{
    position:absolute;
    inset:-28px;
    border-radius:50%;
    border:1px solid rgba(0,229,255,.25);
    box-shadow:
    0 0 24px rgba(0,229,255,.18),
    inset 0 0 24px rgba(0,229,255,.08);
    animation:hudRotate 12s linear infinite;
    pointer-events:none;
}

.hud-ring::before{
    content:"";
    position:absolute;
    inset:18px;
    border-radius:50%;
    border-top:2px solid rgba(0,229,255,.75);
    border-right:2px solid transparent;
}

.hud-ring-2{
    inset:-48px;
    opacity:.45;
    animation-duration:18s;
    animation-direction:reverse;
}

@keyframes hudRotate{
    to{
        transform:rotate(360deg);
    }
}

.result.warning-pulse{
    animation:warningPulse .55s ease-in-out infinite alternate;
}

@keyframes warningPulse{
    from{
        box-shadow:
        0 0 25px rgba(255,77,109,.25),
        inset 0 0 12px rgba(255,77,109,.08);
    }

    to{
        box-shadow:
        0 0 45px rgba(255,77,109,.65),
        inset 0 0 24px rgba(255,77,109,.18);
    }
}

.trail-line{
    position:fixed;
    height:2px;
    background:rgba(0,229,255,.45);
    transform-origin:left center;
    pointer-events:none;
    box-shadow:0 0 10px var(--cyan);
    animation:trailLineFade .35s linear forwards;
}

@keyframes trailLineFade{
    to{
        opacity:0;
    }
}

.seo-section{
    max-width:1100px;
    margin:30px auto 60px;
    padding:24px;
    background:rgba(13,22,34,.72);
    border:1px solid var(--line);
    border-radius:18px;
    color:#b8dce6;
    line-height:1.9;
}

.seo-section h2{
    color:var(--cyan);
    font-size:20px;
}

html,
body{
    height:100%;
    overflow:hidden;
}

.layout{
    height:calc(100vh - 120px);
    overflow:hidden;
}

.panel{
    overflow-y:auto;
    overflow-x:hidden;
}

.center-area{
    overflow-y:auto;
    overflow-x:hidden;
}

.log{
    height:calc(100vh - 220px);
    overflow-y:auto;
}

html,
body{
    height:100%;
    overflow:hidden;
}

body{
    display:flex;
    flex-direction:column;
}

header{

    flex-shrink:0;

    padding:24px 20px 8px;

    z-index:10;
}

.layout{

    display:grid;

    grid-template-columns:
    300px 1fr 340px;

    gap:20px;

    padding:20px;

    max-width:1700px;

    margin:auto;

    width:100%;

    flex:1;

    min-height:0;

    overflow:hidden;
}

.panel{

    overflow-y:auto;

    overflow-x:hidden;

    min-height:0;
}

.center-area{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

    overflow-y:auto;

    overflow-x:hidden;

    min-height:0;

    padding-bottom:40px;
}

.log{

    flex:1;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    background:#08111b;

    border-radius:12px;

    padding:10px;

    font-family:monospace;

    font-size:13px;
}

.mouse-wrap{

    position:relative;

    width:240px;

    height:380px;

    margin-top:10px;

    flex-shrink:0;
}

.result{

    margin-top:24px;

    width:100%;

    max-width:760px;

    flex-shrink:0;
}

.panel::-webkit-scrollbar,
.log::-webkit-scrollbar,
.center-area::-webkit-scrollbar{
    width:8px;
}

.panel::-webkit-scrollbar-track,
.log::-webkit-scrollbar-track,
.center-area::-webkit-scrollbar-track{
    background:#09131c;
}

.panel::-webkit-scrollbar-thumb,
.log::-webkit-scrollbar-thumb,
.center-area::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
        180deg,
        #00b7ff,
        #00ffd0
    );

    border-radius:10px;
}

@media(max-width:1200px){

    html,
    body{

        overflow:auto;

        height:auto;

    }

    .layout{

        grid-template-columns:1fr;

        overflow:visible;

    }

    .panel,
    .center-area{

        overflow:visible;

    }

    .log{

        height:300px;

    }

}
header{
    padding:22px 20px 6px;
}

header h1{
    font-size:36px;
}

header p{
    margin-top:6px;
    font-size:14px;
}

.layout{
    padding:12px 20px 18px;
    gap:18px;
    height:calc(100vh - 105px);
    align-items:stretch;
}

.panel{
    padding:16px;
}

.status-item{
    margin-bottom:13px;
}

.label{
    font-size:12px;
    margin-bottom:4px;
}

.value{
    font-size:24px;
}

.mouse-wrap{
    width:210px;
    height:330px;
    margin-top:0;
}

.result{
    max-width:680px;
    padding:16px 20px;
    margin-top:10px;
}

.result h3{
    font-size:22px;
    margin-bottom:8px;
}

.result-status{
    font-size:28px;
    margin:6px 0;
}

.copy-btn{
    padding:11px;
    margin-top:10px;
}

/* 右ログパネルの二重スクロール防止 */
.panel:has(.log){
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.panel:has(.log) h2{
    flex-shrink:0;
}

.panel:has(.log) .log{
    flex:1;
    height:auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
}

/* 診断ステータスをHUDカード化 */
.panel:first-child{
    overflow-y:auto;
    overflow-x:hidden;
}

.panel:first-child .status-item{
    background:
    linear-gradient(
        180deg,
        rgba(0,229,255,.10),
        rgba(0,229,255,.025)
    );

    border:
    1px solid rgba(0,229,255,.22);

    border-radius:14px;

    padding:12px;

    margin-bottom:12px;

    min-height:88px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    box-shadow:
    0 0 14px rgba(0,229,255,.07),
    inset 0 0 14px rgba(255,255,255,.02);

    transition:.15s;
}

.panel:first-child .status-item:hover{
    transform:translateY(-2px);

    border-color:
    rgba(0,229,255,.48);

    box-shadow:
    0 0 22px rgba(0,229,255,.20),
    inset 0 0 18px rgba(255,255,255,.03);
}

.panel:first-child .label{
    font-size:12px;

    color:#8fd4e5;

    letter-spacing:.04em;
}

.panel:first-child .value{
    font-size:30px;

    line-height:1;

    letter-spacing:2px;

    color:var(--green);

    text-shadow:
    0 0 10px rgba(0,255,156,.45),
    0 0 24px rgba(0,255,156,.18);
}

/* 2列カードにしたい場合 */
.panel:first-child{
    display:flex;
    flex-direction:column;
}

.panel:first-child .status-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

/* 数値変化アニメーション */
.value.flash{
    animation:valueFlash .2s ease-out;
}

@keyframes valueFlash{
    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.18);
        text-shadow:
        0 0 16px rgba(0,255,156,.8),
        0 0 36px rgba(0,255,156,.35);
    }

    100%{
        transform:scale(1);
    }
}

.panel:first-child .value{
    display:block;
    min-width:90px;
    text-align:right;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

#moveSpeed{
    min-width:110px;
}

#pollingRate{
    min-width:110px;
}

.panel:first-child .status-item{
    overflow:hidden;
}

.panel:first-child{

    overflow:hidden;

}

.status-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:10px;

}

.panel:first-child .status-item{

    min-height:78px;

    padding:10px;

    margin-bottom:0;

}

.panel:first-child .value{

    font-size:24px;

}

.panel:first-child .label{

    font-size:11px;

}

.progress-card{

    grid-column:1 / -1;

    align-items:center;

    text-align:center;

}

.progress-card .value{

    font-size:40px;

}
.status-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
}

.panel:first-child .status-item{
    min-height:64px;
    padding:8px 10px;
    margin-bottom:0;
}

.panel:first-child .label{
    font-size:10px;
    margin-bottom:2px;
}

.panel:first-child .value{
    font-size:22px;
    line-height:1;
}

.progress-card{
    grid-column:1 / -1;
    min-height:58px !important;
    align-items:center;
    text-align:center;
}

.progress-card .value{
    font-size:28px !important;
}
.panel:first-child h2{
    font-size:16px;
    margin-bottom:10px;
}

/* =========================
   TASK PANEL
========================= */

.task-panel{

    margin-top:18px;

    background:
    linear-gradient(
        180deg,
        rgba(0,229,255,.08),
        rgba(0,229,255,.02)
    );

    border:
    1px solid rgba(0,229,255,.18);

    border-radius:16px;

    padding:14px;

    box-shadow:
    0 0 20px rgba(0,229,255,.06);

}

.task-title{

    font-size:14px;

    color:var(--cyan);

    margin-bottom:12px;

    letter-spacing:.08em;

    font-family:
    'Orbitron',
    sans-serif;

}

.task-list{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:8px;

}

.task-item{

    display:flex;

    align-items:center;

    gap:8px;

    min-height:42px;

    padding:8px 10px;

    border-radius:10px;

    background:
    rgba(255,255,255,.03);

    border:
    1px solid rgba(255,255,255,.05);

    color:#86b7c3;

    font-size:12px;

    transition:.18s;

}

.task-icon{

    opacity:.7;

}

.task-item.done{

    color:#00ff9c;

    border-color:
    rgba(0,255,156,.35);

    background:
    rgba(0,255,156,.08);

    box-shadow:
    0 0 12px rgba(0,255,156,.15);

}

.task-item.done::after{

    content:"✔";

    margin-left:auto;

    color:#00ff9c;

    font-weight:bold;

}

.task-complete{

    margin-top:14px;

    text-align:center;

    padding:12px;

    border-radius:12px;

    font-family:
    'Orbitron',
    sans-serif;

    letter-spacing:.12em;

    border:
    1px solid rgba(255,255,255,.08);

    background:
    rgba(255,255,255,.03);

    color:#8daeb7;

    transition:.25s;

}

.task-complete.complete{

    color:#00ff9c;

    border-color:
    rgba(0,255,156,.45);

    background:
    rgba(0,255,156,.08);

    box-shadow:
    0 0 20px rgba(0,255,156,.22);

    animation:
    completePulse .7s infinite alternate;

}

@keyframes completePulse{

    from{
        transform:scale(1);
    }

    to{
        transform:scale(1.02);
    }

}

.task-panel{

    margin-top:12px;

    padding:12px;

}

.task-item{

    min-height:36px;

    font-size:11px;

    padding:6px 8px;

}

/* 左パネル内にタスクまで収める */
.panel:first-child{
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* ステータスカード全体を圧縮 */
.panel:first-child .status-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:7px;
    flex-shrink:0;
}

/* 見出しだけ2列分 */
.panel:first-child .status-grid h2{
    grid-column:1 / -1;
    font-size:15px;
    margin:0 0 4px;
}

/* ステータスカードを低くする */
.panel:first-child .status-item{
    min-height:52px;
    padding:7px 8px;
    margin-bottom:0;
}

/* ラベル・数値も少し圧縮 */
.panel:first-child .label{
    font-size:10px;
    margin-bottom:2px;
}

.panel:first-child .value{
    font-size:20px;
    line-height:1;
}

/* 進行率だけ横長だが低め */
.progress-card{
    grid-column:1 / -1;
    min-height:48px !important;
}

.progress-card .value{
    font-size:24px !important;
}

/* タスク側を残り領域に収める */
.task-panel{
    margin-top:0;
    padding:10px;
    flex:1;
    min-height:0;
    overflow:hidden;
}

.task-title{
    font-size:12px;
    margin-bottom:8px;
}

.task-list{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:6px;
}

.task-item{
    min-height:30px;
    padding:5px 7px;
    font-size:10px;
}

.task-complete{
    margin-top:8px;
    padding:8px;
    font-size:11px;
}
/* 診断タスクを左パネル内に収める */
.task-panel{
    margin-top:8px;
    padding:8px;
}

.task-title{
    font-size:11px;
    margin-bottom:6px;
}

.task-list{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:5px;
}

.task-item{
    min-height:26px;
    padding:4px 6px;
    font-size:9px;
    gap:4px;
    border-radius:8px;
    white-space:nowrap;
}

.task-icon{
    display:none;
}

.task-complete{
    margin-top:6px;
    padding:6px;
    font-size:10px;
}
.panel:first-child .status-grid{
    gap:6px;
}

.panel:first-child .status-item{
    min-height:48px;
    padding:6px 8px;
}

.panel:first-child .value{
    font-size:19px;
}

.progress-card{
    min-height:44px !important;
}
body{

    user-select:none;

    -webkit-user-select:none;

    -moz-user-select:none;

    -ms-user-select:none;

}
*{

    -webkit-tap-highlight-color:
    transparent;

}
.panel,
.result,
.mouse-wrap,
.task-panel,
.log{

    user-select:none;

}

.seo-close{

    margin-top:20px;

    border:none;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    background:
    linear-gradient(
        90deg,
        #00b7ff,
        #00ffd0
    );

    color:black;

    font-weight:bold;

    font-size:14px;

}

.seo-close:hover{

    opacity:.9;

}

/* 右ログ小型化 */
.panel:has(.log){
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.log{
    flex:0 0 220px;
    height:220px !important;
    min-height:0;
    overflow-y:auto;
}

/* ポインターテスト */
.pointer-tests{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(0,229,255,.18);
}

.pointer-tests h3{
    margin:0 0 10px;
    color:var(--cyan);
    font-size:14px;
}

.hover-box{
    height:62px;
    border:1px dashed rgba(0,229,255,.35);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#8fd4e5;
    font-size:12px;
    background:rgba(0,229,255,.04);
    transition:.15s;
}

.hover-box.active{
    color:#00ff9c;
    border-color:rgba(0,255,156,.6);
    background:rgba(0,255,156,.09);
    box-shadow:0 0 18px rgba(0,255,156,.18);
}

.mission-box{
    margin-top:12px;
}

.mission-title{
    font-size:12px;
    color:#8fd4e5;
    margin-bottom:8px;
}

.mission-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:6px;
}

.mission-dot{
    height:28px;
    border-radius:8px;
    border:1px solid rgba(0,229,255,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    color:#6ea9b9;
    background:rgba(255,255,255,.03);
    transition:.12s;
}

.mission-dot.done{
    color:#00ff9c;
    border-color:rgba(0,255,156,.45);
    background:rgba(0,255,156,.09);
    box-shadow:0 0 12px rgba(0,255,156,.18);
}

.mission-dot.next{
    color:#00e5ff;
    border-color:rgba(0,229,255,.7);
    box-shadow:0 0 14px rgba(0,229,255,.35);
}

.mission-dot.miss{
    color:#ff4d6d;
    border-color:rgba(255,77,109,.7);
    background:rgba(255,77,109,.12);
}

.mission-dot.done{

    cursor:default;

}

/* =========================
   MEASURE PANEL
========================= */

.measure-panel{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(0,229,255,.18);
}

.measure-panel h3{
    margin:0 0 10px;
    color:var(--cyan);
    font-size:14px;
}

.measure-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
}

.mini-panel{
    border:1px solid rgba(0,229,255,.18);
    border-radius:12px;
    background:rgba(0,229,255,.04);
    padding:10px;
    box-shadow:0 0 12px rgba(0,229,255,.06);
}

.mini-title{
    color:#8fd4e5;
    font-size:11px;
    margin-bottom:6px;
}

.mini-value{
    color:#00ff9c;
    font-family:'Orbitron', sans-serif;
    font-size:22px;
    line-height:1;
    text-align:right;
    text-shadow:0 0 10px rgba(0,255,156,.35);
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.drag-mini{
    margin-top:8px;
}

.drag-box{
    height:48px;
    border-radius:10px;
    border:1px dashed rgba(0,229,255,.35);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#8fd4e5;
    font-family:'Orbitron', sans-serif;
    font-size:12px;
    cursor:grab;
    background:rgba(255,255,255,.025);
    transition:.15s;
}

.drag-box.active{
    color:#00ff9c;
    border-color:rgba(0,255,156,.6);
    background:rgba(0,255,156,.08);
    box-shadow:0 0 18px rgba(0,255,156,.18);
    cursor:grabbing;
}

.drag-box.fail{
    color:#ff4d6d;
    border-color:rgba(255,77,109,.7);
    background:rgba(255,77,109,.1);
}

.drag-status{
    margin-top:6px;
    color:#8fd4e5;
    font-size:11px;
    text-align:right;
    font-family:'Orbitron', sans-serif;
}

/* SEO / footer modal style */
.seo-section[open]{
    position:fixed;
    inset:24px;
    z-index:9999;
    max-width:none;
    margin:0;
    padding:28px;
    overflow-y:auto;
    background:radial-gradient(circle at top, rgba(15,34,56,.98), rgba(6,11,18,.98));
    border:1px solid rgba(0,229,255,.35);
    border-radius:22px;
    box-shadow:0 0 60px rgba(0,229,255,.22), inset 0 0 30px rgba(255,255,255,.03);
}

.seo-section:not([open]){
    position:static;
    max-width:1100px;
    margin:18px auto;
    padding:0 20px;
    border:none;
    background:transparent;
    box-shadow:none;
    overflow:visible;
}

.seo-section summary{
    cursor:pointer;
    color:var(--cyan);
    font-weight:bold;
}

.seo-section[open] summary{
    font-size:24px;
    margin-bottom:20px;
}

.footer-info{
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid rgba(0,229,255,.2);
    font-size:13px;
    color:#8fb8c5;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:12px;
}

.footer-links a{
    color:var(--cyan);
    text-decoration:none;
}

.footer-links a:hover{
    text-decoration:underline;
}

.mission-grid.complete{
    box-shadow:0 0 24px rgba(0,255,156,.22);
    border-radius:10px;
}
/* 右カラム：ログを最低限見える高さに戻す */
.panel:has(.log){
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.panel:has(.log) .log{
    flex:0 0 180px;
    height:180px !important;
    min-height:180px;
}

/* 計測・ポインター系を下側でスクロール */
.pointer-tests,
.measure-tests{
    flex:1;
    min-height:0;
    overflow-y:auto;
}

/* 計測カードを少し圧縮 */
.mini-panel{
    padding:8px;
    margin-bottom:8px;
}

.mini-title{
    font-size:11px;
    margin-bottom:4px;
}

.mini-value{
    font-size:22px;
}

.drag-box{
    height:48px;
}

.hover-box{
    height:46px;
}
.panel:has(.log){

    display:flex;

    flex-direction:column;

    overflow:hidden;

}

/* ログを小型固定 */

.panel:has(.log) .log{

    flex:0 0 140px;

    height:140px !important;

    min-height:140px;

    overflow-y:auto;

}

/* 下側を全部使う */

.pointer-tests{

    flex:1;

    min-height:0;

    overflow-y:auto;

    padding-right:4px;

}

/* スクロールバー */

.pointer-tests::-webkit-scrollbar{
    width:6px;
}

.pointer-tests::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
        180deg,
        #00b7ff,
        #00ffd0
    );

    border-radius:10px;

}

/* ミッションを大きく */

.mission-grid{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:8px;

}

/* 数字を見やすく */

.mission-dot{

    height:36px;

    font-size:13px;

    font-weight:bold;

}

/* hoverテストも少し大きく */

.hover-box{

    height:60px;

    font-size:13px;

}

/* 計測系を横並び圧縮 */

.measure-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:8px;

    margin-bottom:12px;

}

.mini-panel{

    padding:8px;

    margin:0;

}

.mini-title{

    font-size:10px;

}

.mini-value{

    font-size:18px;

}

/* 右ペインはポインターテスト優先 */
.panel:has(.log){
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.panel:has(.log) .log{
    flex:0 0 120px;
    height:120px !important;
    min-height:120px;
}

.pointer-tests{
    flex:1;
    min-height:0;
    overflow:visible;
}

.mission-grid{
    grid-template-columns:repeat(5, 1fr);
    gap:7px;
}

.mission-dot{
    height:34px;
    font-size:13px;
    font-weight:bold;
}

.hover-box{
    height:54px;
}

.measure-tests{
    flex-shrink:0;
}

.measure-grid{
    display:block;
}

.mini-panel{
    padding:8px;
    margin-bottom:8px;
}

.drag-box{
    height:46px;
}

/* カーソル通過ミッションの縦見切れ対策 */
.panel:has(.log){
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.panel:has(.log) .log{
    flex:0 0 90px;
    height:90px !important;
    min-height:90px;
}

.pointer-tests{
    flex:1;
    min-height:0;
    overflow:hidden;
}

.hover-box{
    height:42px;
}

.mission-box{
    margin-top:8px;
}

.mission-title{
    margin-bottom:5px;
    font-size:11px;
}

.mission-grid{
    grid-template-columns:repeat(5, 1fr);
    gap:4px;
}

.mission-dot{
    height:25px;
    font-size:11px;
}

.final-result{
    color:#00ff9c;

    font-family:'Orbitron',sans-serif;

    text-shadow:
    0 0 30px rgba(0,255,156,.55);

}

.final-health{

    margin-top:10px;

    font-size:42px;

    color:#ffffff;

    font-family:'Orbitron',sans-serif;

}

.final-details{

    margin-top:28px;

    text-align:left;

    display:flex;

    flex-direction:column;

    gap:10px;

    color:#a7dbe6;

    font-size:14px;

}

.final-download{

    margin-top:30px;

    width:100%;

    border:none;

    border-radius:14px;

    padding:14px;

    cursor:pointer;

    background:
    linear-gradient(
        90deg,
        #00b7ff,
        #00ffd0
    );

    color:#021018;

    font-weight:bold;

    font-size:15px;

}

.final-result{
    display:none;
}

.final-result.show{
    display:flex;
}

.final-inner{
    width:420px;
    max-width:92vw;
    padding:36px;
    border-radius:26px;
    text-align:center;

    background:
    linear-gradient(
        180deg,
        #091928,
        #040a12
    );

    border:1px solid rgba(0,229,255,.35);

    box-shadow:
    0 0 40px rgba(0,229,255,.18),
    inset 0 0 40px rgba(255,255,255,.03);

    overflow:hidden;
}

.final-header,
.final-complete,
.final-rank-label,
.final-rank,
.final-health,
.final-details{
    text-shadow:none;
}

.mouse-type-panel{
    margin-bottom:8px;
    padding:8px;
    border-radius:12px;
    border:1px solid rgba(0,229,255,.18);
    background:rgba(0,229,255,.04);
}

.mouse-type-title{
    font-size:11px;
    color:#8fd4e5;
    margin-bottom:6px;
}

#mouseType{
    width:100%;
    background:#07131d;
    color:#d8f7ff;
    border:1px solid rgba(0,229,255,.28);
    border-radius:10px;
    padding:8px;
}

.task-item.disabled{
    opacity:.22;
    filter:grayscale(1);
}

.task-item.disabled::after{
    content:"対象外";
    margin-left:auto;
    font-size:8px;
    color:#6ea9b9;
}

.mouse-type-inline{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0 10px;
}

.mouse-type-inline label{
    flex-shrink:0;
    font-size:12px;
    color:#8fd4e5;
}

#mouseType{
    flex:1;
    min-width:0;
    background:#07131d;
    color:#d8f7ff;
    border:1px solid rgba(0,229,255,.28);
    border-radius:10px;
    padding:8px 10px;
    font-size:13px;
}

.final-result{
    position:fixed;
    left:-9999px;
    top:0;
    width:520px;
    display:block;
    z-index:-1;
    pointer-events:none;
}

.final-inner{
    width:520px;
    padding:38px;
    border-radius:28px;
    text-align:center;

    background:
    linear-gradient(
        180deg,
        #091928,
        #040a12
    );

    border:1px solid rgba(0,229,255,.45);

    box-shadow:
    0 0 40px rgba(0,229,255,.18),
    inset 0 0 40px rgba(255,255,255,.03);

    color:#d8f7ff;
    font-family:"Segoe UI","Yu Gothic UI",sans-serif;
}

.final-header{
    color:#00e5ff;
    letter-spacing:.18em;
    font-size:13px;
    margin-bottom:20px;
    font-family:'Orbitron',sans-serif;
}

.final-complete{
    color:#00ff9c;
    font-size:22px;
    font-family:'Orbitron',sans-serif;
    margin-bottom:24px;
}

.final-rank-label{
    color:#8fd4e5;
    font-size:13px;
}

.final-rank{
    font-size:118px;
    line-height:1;
    color:#00ff9c;
    font-family:'Orbitron',sans-serif;
    margin-top:8px;
}

.final-health{
    margin-top:8px;
    font-size:42px;
    color:#ffffff;
    font-family:'Orbitron',sans-serif;
}

.final-details{
    margin-top:28px;
    display:flex;
    flex-direction:column;
    gap:10px;
    text-align:left;
    color:#a7dbe6;
    font-size:14px;
}

.final-details span{
    color:#00ff9c;
}

.drag-area{

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:10px;

}

.drag-start,
.drag-goal{

    width:64px;

    height:64px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-family:
    'Orbitron',
    sans-serif;

    border:
    1px solid rgba(0,229,255,.35);

    background:
    rgba(0,229,255,.05);

    color:#8fd4e5;

    transition:.15s;

}

.drag-line{

    flex:1;

    height:4px;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        rgba(0,229,255,.2),
        rgba(0,229,255,.45)
    );

}

.drag-start.active{

    color:#00ff9c;

    border-color:
    rgba(0,255,156,.7);

    box-shadow:
    0 0 20px rgba(0,255,156,.22);

}

.drag-goal.success{

    color:#00ff9c;

    border-color:
    rgba(0,255,156,.7);

    box-shadow:
    0 0 20px rgba(0,255,156,.22);

}

.drag-goal.fail{

    color:#ff4d6d;

    border-color:
    rgba(255,77,109,.7);

    box-shadow:
    0 0 20px rgba(255,77,109,.22);

}

.drag-goal.active{
    color:#00e5ff;
    border-color:rgba(0,229,255,.7);
    box-shadow:0 0 18px rgba(0,229,255,.25);
}

.mouse-mode-desc{

    margin-top:10px;

    padding:10px 12px;

    border-radius:12px;

    background:
    rgba(0,229,255,.05);

    border:
    1px solid rgba(0,229,255,.14);

    color:#9dd9e6;

    font-size:12px;

    line-height:1.6;

}

.diagnostic-comment{

    margin-top:14px;

    padding:14px;

    border-radius:14px;

    background:
    rgba(255,255,255,.03);

    border:
    1px solid rgba(0,229,255,.12);

    color:#b8dce6;

    line-height:1.8;

    font-size:13px;

    text-align:left;

}
.final-task-list{

    margin-top:22px;

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:8px;

}

.final-task-item{

    padding:8px;

    border-radius:10px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(0,255,156,.18);

    color:#00ff9c;

    font-size:12px;

    text-align:center;

}

.result-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

.result-actions .copy-btn{
    margin-top:0;
    padding:11px 8px;
    font-size:14px;
}

.result{
    padding:14px 18px;
}

.mouse-mode-desc,
.diagnostic-comment{
    padding:10px 12px;
    margin-top:8px;
}

.result-status{
    margin:6px 0;
}

.final-task-item.pending{
    color:#8daeb7;
    border-color:rgba(255,255,255,.12);
    background:rgba(255,255,255,.03);
}