*,*::before,*::after{border-radius:0!important}
:root{--site-paper:#fffaf3;--site-ink:#3d6059;--site-line:#c8d4c8;--site-soft:#eef2e9;font-family:"IBM Plex Sans JP","BIZ UDPゴシック","Yu Gothic",sans-serif}
html[data-scheme="dark"]{--ink:#d9e7de;--muted:#b5c7ba;--paper:#253830;--line:#4e6656;--site-paper:#253830;--site-ink:#e3ece5;--site-line:#789482;--site-soft:#354c3e;color-scheme:dark}
.site-tools{position:fixed;top:26px;left:248px;z-index:4;display:flex;align-items:center;gap:9px;color:var(--site-ink);font-size:11px;font-family:"IBM Plex Sans JP","BIZ UDPゴシック","Yu Gothic",sans-serif}
.site-tools a,.site-tools button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;background:var(--site-paper);color:var(--site-ink);border:1px solid var(--site-line);text-decoration:none;font-size:11px;pointer-events:auto}
.site-tools button:hover,.site-tools a:hover{background:var(--site-soft);transform:none}
body[data-view="racing"] .site-tools{display:none}
html[data-scheme="dark"] .sidebar,html[data-scheme="dark"] .page-panel,html[data-scheme="dark"] .home-card,html[data-scheme="dark"] .home-bottom,html[data-scheme="dark"] .preview-caption,html[data-scheme="dark"] .hud-pill,html[data-scheme="dark"] .race-ranking,html[data-scheme="dark"] .modal,html[data-scheme="dark"] .control,html[data-scheme="dark"] .coins,html[data-scheme="dark"] .round-button{background:var(--site-paper);border-color:var(--site-line)}
html[data-scheme="dark"] .mission-card,html[data-scheme="dark"] .course-card,html[data-scheme="dark"] .kart-option,html[data-scheme="dark"] .item-card,html[data-scheme="dark"] .reward-table,html[data-scheme="dark"] .soft-button,html[data-scheme="dark"] .tabs button,html[data-scheme="dark"] select,html[data-scheme="dark"] .modal-close{background:var(--site-soft);color:var(--site-ink);border-color:var(--site-line)}
html[data-scheme="dark"] .item-art,html[data-scheme="dark"] .reward-art{background:#d9d5cc}
html[data-scheme="dark"] .nav button.active,html[data-scheme="dark"] .item-card.equipped,html[data-scheme="dark"] .kart-option.selected,html[data-scheme="dark"] .tabs button.active,html[data-scheme="dark"] .soft-button.selected{background:#fffaf3;color:#314e40;border:1px solid #141414}
html[data-scheme="dark"] .intro,html[data-scheme="dark"] .page-title{color:#314e40}
html[data-scheme="dark"] .intro p,html[data-scheme="dark"] .page-title p{color:#4e6759}
html[data-scheme="dark"] .name-tag{background:var(--site-paper);color:var(--site-ink)}
html[data-scheme="dark"] .item-meta,html[data-scheme="dark"] .item-owned{color:#c0d2c2}
.modal input[type="checkbox"],select{border-radius:0!important}
@media(min-width:761px) and (max-width:1100px){.site-tools{left:204px;top:23px}}
@media(max-width:760px){.site-tools{top:63px;left:18px;font-size:10px;gap:7px}.site-tools a,.site-tools button{min-height:23px;padding:3px 9px;font-size:10px}.sidebar{height:calc(72px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}.home-bottom{bottom:calc(85px + env(safe-area-inset-bottom,0px))}.home-card{bottom:calc(201px + env(safe-area-inset-bottom,0px))}.name-tag{bottom:calc(227px + env(safe-area-inset-bottom,0px))}.page-panel{bottom:calc(85px + env(safe-area-inset-bottom,0px))}.steer-controls,.action-controls{bottom:calc(23px + env(safe-area-inset-bottom,0px))}.drive-controls{bottom:calc(88px + env(safe-area-inset-bottom,0px))}.speed-pill{bottom:calc(112px + env(safe-area-inset-bottom,0px))}#toast{bottom:calc(87px + env(safe-area-inset-bottom,0px))}}
@media(max-height:640px) and (max-width:760px){.site-tools{top:57px}.intro{padding-top:91px}.page-title{padding-top:91px}}
