.sorapyon-page {
  --sp-ink: #354b50;
  --sp-muted: #637b7c;
  --sp-teal: #3f766d;
  --sp-line: #d8e7df;
  color: var(--sp-ink);
  background: radial-gradient(ellipse at 15% 10%, #e6f0e8, transparent 55%), linear-gradient(160deg, #f7f6ec, #f8eae1 85%);
  background-attachment: fixed;
  color-scheme: light;
}
.sorapyon-page [hidden] { display: none !important; }
.sorapyon-page .site-header { position: relative; background: #fffcf4d9; border-color: #e7e6d9; }
.sorapyon-page .site-header .inner { max-width: 760px; min-height: 44px; padding: 0 18px; }
.sorapyon-page .logo { font-size: 12px; letter-spacing: .025em; color: var(--sp-ink); }
.sorapyon-page .logo .mark { width: 25px; height: 25px; border-radius: 8px; font-size: 13px; background: #e3ede2; box-shadow: none; }
.sorapyon-page .site-header nav { display: flex; align-items: center; gap: 10px; }
.sorapyon-page .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0; white-space: nowrap; font-size: 11px; color: var(--sp-muted); }
.sorapyon-page .sp-container { max-width: 760px; padding: 8px 14px 56px; }
.sorapyon-page .sp-hero { padding: 0; margin: 0 auto 8px; }
.sorapyon-page .sp-hero .tool-title { color: var(--sp-ink); margin: 0; font-size: 25px; letter-spacing: .085em; font-weight: 800; line-height: 1.2; }
.sp-hero .tool-title span { color: #c68d6d; }
.sorapyon-page .sp-hero .tool-sub { font-size: 11px; color: var(--sp-muted); letter-spacing: .12em; line-height: 1.5; margin-top: 3px; }
.sp-game { max-width: 420px; margin: 0 auto; }
.sp-hud { display: flex; align-items: center; gap: 6px; min-height: 48px; max-width: 360px; margin: 0 auto 6px; }
.sp-stat { display: flex; flex: 1; flex-direction: column; line-height: 1.1; min-width: 0; }
.sp-stat > span { font-size: 9px; letter-spacing: .08em; color: var(--sp-muted); margin-bottom: 4px; }
.sp-stat strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-stat strong b { font-weight: inherit; }
.sp-stat small { font-size: 10px; margin-left: 3px; font-weight: 500; }
.sp-drop { color: #4a978b; font-size: 15px; }
.sorapyon-page button { font-family: inherit; color: var(--sp-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sorapyon-page button:focus-visible, .sorapyon-page input:focus-visible, #game-canvas:focus-visible { outline: 3px solid #337e75; outline-offset: 3px; }
.sorapyon-page button:disabled { cursor: default; opacity: .45; }
.sp-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; height: 44px; padding: 0 6px; background: #fffdf5c9; border: 1px solid var(--sp-line); border-radius: 14px; font-size: 16px; line-height: 1; }
#sound-toggle { font-size: 10px; font-weight: 700; }
.sp-board { width: min(100%, 360px, calc(75svh - 171px)); aspect-ratio: 3 / 4; margin: 0 auto; position: relative; overflow: hidden; border: 1px solid #d3e1db; border-radius: 24px; box-shadow: 0 14px 35px -20px #567e7670, 0 2px 0 #ffffffc9 inset; background: #d9eae4; isolation: isolate; touch-action: none; }
#game-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.sp-overlay { position: absolute; inset: 0; padding: 18px; background: #fbfbf2f5; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #b7cfc5 transparent; overscroll-behavior: contain; touch-action: pan-y; }
.sp-overlay h2 { font-size: 21px; letter-spacing: .025em; line-height: 1.4; margin: 2px 0 8px; color: var(--sp-ink); }
.sp-overlay p { overflow-wrap: anywhere; }
.sp-start { padding: 12px 14px; display: flex; flex-direction: column; }
.sp-cover { position: relative; width: 100%; height: 130px; min-height: 65px; flex: 1; overflow: hidden; border-radius: 15px 15px 6px 6px; background: #e2ebe3; }
.sp-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.sp-cover > span { position: absolute; bottom: 7px; left: 10px; font-size: 8px; font-weight: 700; color: #46666c; letter-spacing: .13em; }
.sp-start-heading { display: flex; align-items: center; justify-content: space-between; position: relative; margin-top: 8px; }
.sp-start-heading h2 { font-size: 20px; margin: 0; }
.sp-start-heading img { position: absolute; right: 0; bottom: -8px; width: 46px; height: 46px; transform: rotate(7deg); }
.sp-caption { font-size: 11px; color: var(--sp-muted); margin: 3px 0 0; line-height: 1.5; }
.sp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.sp-modes button { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 50px; border-radius: 12px; background: #fffef7; border: 1px solid #d7e2db; padding: 4px 2px; line-height: 1.4; }
.sp-modes b { font-size: 11px; font-weight: 700; white-space: nowrap; }
.sp-modes small { font-size: 10px; color: var(--sp-muted); }
.sp-modes [aria-pressed="true"] { background: #dcece2; border: 2px solid #629183; padding: 3px 1px; }
.sp-fine { font-size: 10px; line-height: 1.6; color: var(--sp-muted); margin: 6px 0; }
.sp-daily-note { display: flex; align-items: center; margin: 5px 0; min-height: 28px; font-size: 10px; }
.sp-button { min-height: 44px; border: 1px solid #d4e1d8; border-radius: 13px; background: #fffdf5; padding: 8px 15px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.sp-button span { margin-left: 6px; }
.sorapyon-page .sp-primary { background: var(--sp-teal); border-color: var(--sp-teal); color: #fffef4; box-shadow: 0 4px 0 #294f4714; }
.sp-text-button { background: transparent; border-color: transparent; color: var(--sp-muted); }
.sp-controls { display: flex; gap: 10px; max-width: 360px; margin: 8px auto 0; touch-action: none; }
.sp-controls button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 50%; min-height: 48px; padding: 0 12px; border: 1px solid #c9dcd0; border-bottom-width: 3px; border-radius: 15px; background: #fcfcf1; touch-action: none; user-select: none; -webkit-user-select: none; }
.sp-controls button span { font-size: 25px; line-height: 1; }
.sp-controls button small { font-size: 11px; letter-spacing: .05em; }
.sp-controls button:active, .sp-controls button.is-pressed, .sp-controls button[aria-pressed="true"] { background: #d6e7db; transform: translateY(1px); }
.sp-bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; max-width: 360px; margin: 14px auto 0; border-top: 1px solid #d7dfd5; padding-top: 8px; }
.sp-bottom-bar p { color: var(--sp-muted); font-size: 10px; margin: 0; }
.sp-bottom-bar p b { font-variant-numeric: tabular-nums; color: var(--sp-ink); }
.sp-bottom-bar p > span { padding: 0 4px; }
.sp-bottom-bar .sp-button { font-size: 10px; padding: 7px 10px; }
.sp-volume { display: flex; gap: 10px; align-items: center; max-width: 360px; margin: 4px auto; }
.sp-volume label { font-size: 10px; color: var(--sp-muted); white-space: nowrap; }
.sp-volume input { min-width: 60px; flex: 1; height: 44px; accent-color: var(--sp-teal); margin: 0; }
.sp-volume > span { white-space: nowrap; font-size: 9px; }
.sp-status { min-height: 0; font-size: 11px; line-height: 1.5; color: var(--sp-teal); margin: 4px auto; max-width: 360px; }
.sp-status:empty { display: none; }
.sp-centered { display: flex; flex-direction: column; justify-content: safe center; align-items: center; text-align: center; gap: 7px; }
.sp-centered .sp-button { width: 100%; flex-shrink: 0; }
.sp-centered h2, .sp-centered p { margin: 0; }
.sp-panel-symbol { font-size: 57px; color: #8aaea3; line-height: 1.2; }
.sp-eyebrow { font-size: 8px; letter-spacing: .17em; font-weight: 700; color: #6f9187; margin: 0 0 8px; }
.sp-small { font-size: 12px; line-height: 1.7; color: var(--sp-muted); margin: 5px 0 12px; }
.sp-result-pet { width: 65px; height: 65px; object-fit: contain; }
.sp-result-score { font-size: 16px; line-height: 1.1; color: #3f766d; }
.sp-result-score strong { font-size: 48px; font-weight: 700; letter-spacing: -.05em; margin-right: 4px; }
.sp-result-meta { font-size: 11px; color: var(--sp-muted); }
.sp-result-meta span { margin: 0 7px; color: #a0b2a8; }
.sp-new-stickers { font-size: 11px; color: #7a6740; max-height: 57px; overflow-y: auto; }
.sp-new-stickers:empty { display: none; }
.sp-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 6px; }
.sp-panel-heading h2 { margin: 0; font-size: 18px; }
.sp-panel-heading .sp-eyebrow { margin: 0 0 2px; }
.sp-keys { display: flex; gap: 8px; justify-content: center; }
.sp-keys span { display: grid; place-items: center; width: 50px; height: 35px; border: 1px solid #d8e2d7; border-radius: 9px; background: #fffef6; font-size: 23px; }
.sp-cloud-guide { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 7px; }
.sp-cloud-guide li { display: flex; gap: 10px; align-items: center; }
.sp-cloud-sample { width: 40px; height: 27px; flex-shrink: 0; text-align: center; border: 1px solid #c5d7d2; background: white; color: #799da0; border-radius: 16px; font-size: 21px; line-height: 24px; }
.sp-moving { background: #d7f1ec; }
.sp-fragile { border: 1px dashed #c38e9d; background: #f9dfeb; }
.sp-flower { background: #ffe8d0; color: #c78159; border-color: #e5bd96; }
.sp-cloud-guide b { display: block; font-size: 11px; }
.sp-cloud-guide small { display: block; font-size: 9px; color: var(--sp-muted); line-height: 1.5; }
.sp-subheading { font-size: 12px; letter-spacing: .04em; margin: 12px 0 4px; }
.sp-section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-top: 5px; }
.sp-outfit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sp-outfit-list button, .sp-outfit-list > article, .sp-outfit-list > div { min-width: 0; min-height: 56px; border: 1px solid #d9e4da; background: #fffef7; border-radius: 11px; padding: 8px; font-size: 11px; line-height: 1.5; }
.sp-outfit-list button[aria-pressed="true"], .sp-outfit-list .is-equipped, .sp-outfit-list .is-selected { background: #e1eddf; border-color: #6d9586; }
.sp-outfit-list .sp-outfit > span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--outfit-color, #bce5d6); color: #4e6e67; margin-bottom: 3px; font-size: 17px; }
.sp-outfit-list button b, .sp-outfit-list button small, .sp-sticker-list b, .sp-sticker-list small { display: block; }
.sp-outfit-list small { font-size: 9px; color: var(--sp-muted); }
.sp-sticker-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.sp-sticker-list > * { min-width: 0; background: #f2f2e8; border: 1px dashed #ced8ca; border-radius: 12px; padding: 9px 4px; text-align: center; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.sp-sticker-list .is-earned, .sp-sticker-list .earned, .sp-sticker-list .is-owned, .sp-sticker-list [data-earned="true"] { background: #fbecd5; border-style: solid; border-color: #e9d6b9; }
.sp-sticker-list small { font-size: 8px; color: var(--sp-muted); }
.sp-sticker-list .sp-sticker-icon, .sp-sticker-list .sp-sticker > span { font-size: 24px; display: block; }
.sp-notice { padding: 10px 12px; border: 1px solid #e2d5bb; border-radius: 10px; background: #fff7e7; font-size: 12px; }
.sorapyon-page .content-byline { margin: 25px 0 0; font-size: 10px; color: var(--sp-muted); }
.sorapyon-page a { color: #49786e; }
.sp-guide { margin: 32px auto 0; max-width: 650px; padding: 26px 0 0; border-top: 1px solid #d6ded3; }
.sp-guide > .sp-eyebrow { font-size: 10px; }
.sp-guide h2 { font-size: 23px; letter-spacing: .05em; margin: 5px 0 18px; }
.sp-guide h3 { font-size: 15px; margin: 27px 0 9px; }
.sp-guide p, .sp-guide dd { font-size: 13px; line-height: 2; color: #5f7474; }
.sp-guide .faq { margin-top: 26px; padding: 20px; border: 1px solid #d9e2d5; border-radius: 16px; background: #fffdf58c; }
.sp-guide dt { font-size: 13px; font-weight: 700; margin: 18px 0 5px; }
.sp-guide dt:first-child { margin-top: 0; }
.sp-guide dd { margin: 0; }
.sorapyon-page .site-footer { border-color: #dce1d6; background: #fffcf4a6; }
.sorapyon-page .site-footer .inner { font-size: 11px; }
@media (max-height: 720px) {
  .sp-cover { max-height: 100px; }
  .sp-start-heading h2 { font-size: 18px; }
  .sp-start-heading img { width: 40px; height: 40px; }
  .sp-overlay { padding: 13px; }
  .sp-start { padding: 10px 13px; }
  .sp-centered { gap: 5px; }
  .sp-result-pet { width: 54px; height: 54px; }
  #result-screen { gap: 3px; }
  #result-screen > * { flex-shrink: 0; }
  #result-screen .sp-result-pet { width: 36px; height: 36px; }
  #result-screen .sp-eyebrow { display: none; }
  #result-screen h2 { font-size: 18px; }
  #result-screen .sp-result-score strong { font-size: 40px; }
  #result-screen .sp-result-meta { line-height: 1.5; }
  #result-screen #result-note { font-size: 11px; line-height: 1.45; }
  #result-screen .sp-new-stickers { max-height: 30px; line-height: 1.45; }
}
@media (max-width: 350px) {
  .sp-hud { gap: 3px; }
  .sp-stat strong { font-size: 17px; }
  .sp-start-heading h2 { font-size: 16px; }
  .sp-modes b { font-size: 10px; }
  .sp-bottom-bar { flex-wrap: wrap; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .sp-board { width: min(100%, 270px); }
}
@media (prefers-reduced-motion: reduce) {
  .sorapyon-page *, .sorapyon-page *::before, .sorapyon-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
