/* Reference layout: 360px mobile; one reading column on larger displays. */
:root{--ink:#0d0a19;--panel:#0d0a19;--panel-2:#171224;--gold:#e9c15c;--gold-soft:#f5d779;--muted:#aaa2bd;--line:#51415e;--header-height:60px}
html{scroll-behavior:smooth}body{background:var(--ink);font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-size:14px;line-height:1.55;color:#e1daed}
.site-shell{width:100%;margin:0;padding-top:var(--header-height);overflow:visible;box-shadow:none;background:var(--ink)}
.site-header{position:fixed;top:0;left:0;width:100%;height:var(--header-height);padding:10px 16px;display:flex;gap:12px;align-items:center;z-index:100;background:#0c0918fa;border-bottom:1px solid #322633;backdrop-filter:blur(12px)}
.site-header .brand{font-size:18px;font-family:'Noto Serif KR',serif;font-weight:800;margin:0;line-height:1.2;flex-shrink:0;color:var(--gold);text-decoration:none}
.site-header nav{display:flex;align-items:center;justify-content:space-between;flex:1;gap:4px;min-width:0}
.site-header nav a{display:inline-flex;align-items:center;justify-content:center;padding:7px 6px;font-size:12px;line-height:1.2;border:1px solid transparent;border-radius:22px;white-space:nowrap;text-decoration:none;font-weight:500;color:#ddd6e5}
.site-header nav a[href="/play"]{background:linear-gradient(#f6d982,#d7a735);color:#181114;font-weight:800;padding-inline:10px}
.site-header nav a[aria-current="page"]:not([href="/play"]){background:transparent;border-color:var(--gold);color:var(--gold)}
.site-header nav a:hover:not([href="/play"]){color:var(--gold);background:#e9c15c0a}
section[id],.step-card[id]{scroll-margin-top:calc(var(--header-height) + 8px)}
.section-pad{padding:24px 16px;background:var(--ink)}
.section-pad h2,#service-root h1,.legal h1{font-family:'Noto Serif KR',Georgia,serif;font-size:21px;font-weight:800;letter-spacing:-.04em;line-height:1.4;color:var(--gold-soft);margin:0 0 14px}
.body-copy{font-size:14px;line-height:1.65;margin:0 0 16px;color:#e1daed}
.intro{padding-bottom:24px}.intro-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.intro-stats>div{display:flex;flex-direction:column;align-items:center;padding:10px;border:1px solid #6d5736;border-radius:9px;background:#0b0814}
.intro-stats strong{font:700 23px 'Noto Serif KR',serif;color:var(--gold-soft);line-height:1.35}
.intro-stats span{font-size:11px;color:var(--muted);margin-top:2px}
.feature-lines{list-style:none;padding:0 0 0 24px;margin:14px 0 0;font-size:12px;line-height:1.75}
.feature-lines li{position:relative;margin:5px 0}.feature-lines li:before{content:'◆';position:absolute;left:-17px;color:var(--gold);font-size:9px;top:3px}
.how-to{padding-top:20px;background:#100c1c}.steps{display:flex;flex-direction:column;gap:24px;margin:0}
.step-card{padding:0;border:0;background:transparent}.step-card h3{display:flex;align-items:center;gap:9px;margin:0 0 9px;font-size:16px;font-weight:700;line-height:1.4;color:var(--gold-soft)}
.step-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--gold);color:#181020;font:700 17px Georgia,serif}
.step-card>p{font-size:13px;line-height:1.55;margin:0 0 12px;color:#e1daed}
.game-example{border:1px solid #76603c;border-radius:13px;padding:10px;background:linear-gradient(135deg,#1b1528,#130f1d);margin:0;pointer-events:none}
.game-example .example-label{font-size:12px;margin:0 0 10px;line-height:1.2;color:#e0d6cb}
.difficulty-option{padding:10px 12px;margin-bottom:7px;border:1px solid #69563c;border-radius:12px;background:#241e30}
.difficulty-option.selected{background:linear-gradient(135deg,#3e343a,#29232e);border-color:var(--gold)}
.difficulty-option strong{display:block;font-size:15px;line-height:1.35;color:#f4e6cf}
.difficulty-option small{display:block;font-size:11px;line-height:1.5;color:#a79c8c;margin-top:3px}
.example-button{display:block;margin-top:13px;padding:13px 8px;text-align:center;border-radius:12px;color:#1a1120;background:var(--gold);font-size:17px;font-weight:800;line-height:1.3}
.synthesis-example{padding:3px 10px 12px;background:#171120}
.character-card{border:2px solid var(--gold);border-radius:18px;background:linear-gradient(135deg,#332939,#231e2a);text-align:center;padding:12px 10px 10px}
.character-card strong{display:block;color:var(--gold-soft);font:86px/1.15 'Noto Serif KR',serif}.character-card small{color:#d3bd86;font-size:12px}
.progress-example{padding:8px 5px;margin:10px 0;border-radius:10px;background:#272035}
.progress-example>div{display:flex;align-items:center;gap:10px;font-size:11px;margin:4px 0}.progress-example b{width:20px;color:var(--gold-soft)}
.progress-example span{flex:1;height:8px;border-radius:8px;overflow:hidden;background:#41374d}.progress-example i{display:block;width:100%;height:100%;background:var(--gold-soft)}.progress-example .ai i{width:50%;background:#70a3ff}.progress-example .ai b{color:#8eb8ff}
.progress-example small{width:22px;color:#d5c4a1}.recipe-slots{display:flex;justify-content:center;gap:7px;margin:14px 0}
.recipe-slots span{display:flex;align-items:center;justify-content:center;width:42px;height:49px;border:2px solid #a88c4a;border-radius:10px;color:var(--gold-soft);background:#3b3039;font:32px 'Noto Serif KR',serif}
.recipe-slots span:empty{background:#100c1c;border-color:#292333}
.piece-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.piece-grid span{display:flex;align-items:center;justify-content:center;aspect-ratio:.88;border:1px solid #766444;border-radius:8px;background:#29213b;color:var(--gold-soft);font:32px/1 'Noto Serif KR',serif}
.piece-grid .selected{background:#51402c;border:2px solid #f5d779;box-shadow:0 0 0 2px #e8bf5b55}.piece-grid .blank{background:#1c1727;border-style:dashed;border-color:#3a3148}
.win-button{background:#f8dc80;margin-top:18px}.win-button strong{display:block;font-size:24px}.win-button small{display:block;font-size:11px;margin-top:8px}
.outcome-example{padding:15px 10px 10px}.versus{display:flex;align-items:center;justify-content:space-between;gap:20px}.versus>div{display:flex;flex-direction:column;align-items:center;gap:5px}.versus>b{color:#6c668a;font-size:20px}
.grade{display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid var(--gold);border-radius:14px 14px 23px 23px;width:67px;height:79px;background:#221b30;color:var(--gold-soft)}
.grade small{font-size:10px}.grade strong{font-size:36px;line-height:1.1}.versus>div>small{font-size:11px;color:var(--gold-soft)}
.gear{display:flex;align-items:center;justify-content:center;border:3px solid #7dafff;border-radius:50%;width:68px;height:68px;font:58px/1 Arial,sans-serif;color:#8fbaff;background:#152039}.versus .opponent small{color:#88b3ff}
.outcome-example h4{text-align:center;color:var(--gold-soft);font-size:30px;margin:25px 0 18px;letter-spacing:.1em}
.score{display:flex;align-items:center;justify-content:center;gap:26px;color:#6b6089}.score>div{display:flex;flex-direction:column;align-items:center;gap:10px}.score small{font-size:12px;color:#d1bb88}.score strong{font-size:48px;color:var(--gold-soft);line-height:1.1}.score .ai strong{color:#8cb6ff}
.outcome-example .recommendation{text-align:center;font-size:12px;color:#d1bc91;margin:20px 0 12px}.recommendation strong{color:var(--gold-soft)}
.nickname{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #79603a;border-radius:10px;padding:10px;background:#2a233a}.nickname small{font-size:10px;color:#a6987c}
.example-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.example-actions span{text-align:center;border:1px solid var(--gold);border-radius:13px;padding:11px 4px;font-size:16px;font-weight:700;color:var(--gold)}.example-actions span:first-child{background:var(--gold);color:#1b1320}
.world{padding-top:28px;background:var(--ink)}.world-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 12px;margin:0}
.world-grid figure{margin:0;min-width:0}.world-panel{position:relative;aspect-ratio:300/580;background:#151020;border:0;border-radius:10px}
.world-panel img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}
.world-grid figcaption{font-size:12px;line-height:1.5;margin-top:7px;color:#d7cfe2}.world-grid figcaption>span:first-child{color:var(--gold);margin-right:3px}
.note{font-size:10px;line-height:1.6;color:var(--muted);border:0;padding:0;margin:15px 0 0}
.result{text-align:left;padding-top:28px}.result-card{width:100%;max-width:none;margin:12px 0 18px;border:0;box-shadow:none}.result-card img{display:block;width:100%;height:auto}
.result .body-copy{font-size:13px;line-height:1.6;margin-bottom:12px}.title-chips{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;margin:10px 0 22px;max-width:100%}
.title-chip{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap;font-size:11px;line-height:1.4;padding:5px 8px;border:1px solid #756036;color:#ded5e7;border-radius:20px}
.title-chip strong{font-size:12px;color:var(--gold-soft);font-weight:800}.title-chip [data-field]{white-space:nowrap!important}
.primary-button{display:block;width:100%;max-width:none;padding:14px 20px;margin:0;text-align:center;font-weight:800;font-size:18px;line-height:1.2;border-radius:12px;color:#1c1420;background:linear-gradient(#f7dd8d,#d5a230);box-shadow:none;text-decoration:none}
.microcopy{font-size:10px;line-height:1.5;text-align:center;color:#a69bbd;margin:10px 0 0}
.contact{padding-top:24px;padding-bottom:28px;text-align:left;background:var(--ink)}.contact h2{margin-bottom:10px}.contact p{font-size:13px;margin:0 0 3px}.email-link{font-size:13px;font-weight:700;color:var(--gold-soft);text-decoration:none;border:0;padding:0}
.source-note{font-size:10px;line-height:1.5;padding:0 16px;margin:4px 0;color:var(--muted)}
.site-footer{padding:22px 16px;border-top:1px solid #332736;font-size:11px;line-height:1.6;color:var(--muted);background:#0a0713}.site-footer p{margin:5px 0}.footer-brand{font:800 16px 'Noto Serif KR',serif;color:var(--gold)}
.footer-company{display:flex;flex-wrap:wrap;row-gap:3px;margin:12px 0}.footer-company>*{overflow-wrap:anywhere}.footer-company>*+*:before{content:'|';display:inline-block;margin:0 7px;color:#756782}.footer-company a{text-decoration:none;color:inherit}
.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:14px}.footer-link-row{display:flex;gap:16px;flex-wrap:wrap}.version{color:#89809c}
.hero.section-pad{display:flex;flex-direction:column;justify-content:space-between;padding:0;background:#0b0816;min-height:calc(100svh - var(--header-height));height:auto;text-align:center}
.hero-stage{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px var(--page-gutter) 16px}.eyebrow{font-size:11px;line-height:1.4;letter-spacing:0;border:1px solid #896827;border-radius:20px;padding:3px 9px;margin:0;color:var(--gold)}
.hero-art{width:100%;height:44svh;flex:none;margin:0;overflow:visible;border:0;box-shadow:none}
.hero-art img{display:block;width:100%;height:100%;object-fit:contain}
.hero-copy h1{font-family:'Noto Serif KR',serif;font-size:29px;line-height:1.25;letter-spacing:-.045em;margin:6px 0 12px;color:var(--gold-soft)}
.hero-copy p{font-size:12px;line-height:1.55;margin:0;color:#e0d8ea}.hero-action{padding:16px var(--page-gutter) 24px;flex-shrink:0;background:#100b1c}.hero-action .primary-button{padding:17px 20px;font-size:21px;border-radius:14px}.hero-action .microcopy{font-size:10px}
.notice-page h1{color:var(--gold-soft)}.notice-page .section-label{display:none}#service-root.notice-page .notice,.notice-page .notice-empty{background:#100c1b;border:1px solid #65502f;border-radius:8px;box-shadow:none;padding:16px}.notice p{font-size:14px}.notice h2{font-size:18px!important}
.service-form input:not([type=checkbox]),.service-form textarea{background:#21192e;border:1px solid #66516a;font-size:14px}.service-form button,.manage-tabs button{background:var(--gold);color:#1b1320;border:1px solid var(--gold)}.manage-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.manage-tabs button[aria-pressed="false"]{background:#21192e;color:var(--gold);border-color:#66516a}.manage-panel[hidden]{display:none}.manage-panel{padding-top:20px}img{max-width:100%}table{table-layout:fixed}td,th{overflow-wrap:anywhere}
@media(min-width:600px){.section-pad{padding-block:28px}.site-header nav{flex:0 1 auto;gap:18px}.site-header nav a{font-size:14px;padding:8px 12px}.site-footer{padding-block:24px}.feature-lines{font-size:14px}.hero-copy h1{font-size:34px}.step-card>p{font-size:14px}.world-grid figcaption{font-size:14px}}
@media(max-width:359px){.site-header{padding-inline:10px;gap:8px}.site-header .brand{font-size:16px}.site-header nav a{font-size:11px;padding-inline:4px}.site-header nav a[href="/play"]{padding-inline:8px}.section-pad{padding-inline:14px}.hero-copy h1{font-size:27px}}
@media(max-height:650px){.hero-copy h1{font-size:27px}.hero-action{padding-top:12px;padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* One shared reading column: headings, copy and examples share both edges. */
:root{--page-gutter:clamp(16px,4vw,64px)}
.section-pad{display:grid;grid-template-columns:minmax(0,1fr);padding-inline:var(--page-gutter)}
.section-pad>*{min-width:0}
.intro-stats{width:100%;max-width:none}
.game-example,.custom-example-image{width:100%;max-width:none;margin-inline:0}
.world-grid{width:100%;max-width:none;margin-inline:0}
.site-header{display:block;padding-inline:var(--page-gutter)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:100%}
.site-footer{padding-inline:var(--page-gutter)}
.footer-inner{width:100%}
.source-note{width:calc(100% - 2 * var(--page-gutter));padding:0;margin:4px auto}
.hero.section-pad{display:flex}
@media(max-width:359px){:root{--page-gutter:14px}}
@media(min-width:900px){
  .hero.section-pad{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto auto minmax(0,1fr);gap:16px 4vw;padding:24px var(--page-gutter);align-content:center;align-items:center}
  .hero-stage{display:contents}
  .hero-art{grid-column:1;grid-row:1 / 6;height:calc(100svh - var(--header-height) - 48px)}
  .eyebrow{grid-column:2;grid-row:2;justify-self:center}
  .hero-copy{grid-column:2;grid-row:3}
  .hero-copy h1{font-size:clamp(34px,3.6vw,64px)}
  .hero-copy p{font-size:clamp(14px,1.2vw,20px)}
  .hero-action{grid-column:2;grid-row:4;width:100%;padding:16px 0;background:transparent}
  .hero-action .primary-button{width:100%}
  .hero-action .microcopy{font-size:12px}
  .intro-stats strong{font-size:clamp(23px,2.2vw,36px)}
}

/* Media scale follows the text scale; source proportions are never stretched. */
html{font-size:clamp(14px,calc(13px + .2vw),16px)}
body{font-size:1rem}
:root{--media-width:28rem;--layout-width:76rem}
.section-pad{grid-template-columns:minmax(0,var(--layout-width));justify-content:center}
.header-inner,.footer-inner{max-width:var(--layout-width);margin-inline:auto}
.source-note{max-width:var(--media-width)}
.section-pad:not(.hero)>*{width:100%;max-width:var(--media-width);justify-self:center}
.body-copy,.step-card>p,.world-grid figcaption,.result .body-copy,.contact p{font-size:1rem;line-height:1.65}
.section-pad h2,#service-root h1{font-size:1.5rem}
.hero.section-pad{padding-inline:var(--page-gutter)}
.hero-stage{padding-inline:0;justify-content:center}
.hero-art{width:100%;max-width:var(--media-width);height:auto;aspect-ratio:4/5;flex:0 1 auto}
.hero-art img{width:100%;height:auto;object-fit:contain}
.hero-copy,.hero-action{width:100%;max-width:var(--media-width);margin-inline:auto}
.hero-copy h1{font-size:2.15rem}
.hero-copy p{font-size:.95rem}
.hero-action{padding-inline:0}
.step-example-image,.custom-example-image{display:block;width:100%;height:auto;aspect-ratio:560/1068;object-fit:contain;max-width:var(--media-width)}
.world-panel{aspect-ratio:1;overflow:hidden;border-radius:10px}
.world-panel img{position:absolute;display:block;width:200%;height:200%;max-width:none;object-fit:fill;left:0;top:0}
.world-grid figure:nth-child(2) .world-panel img{left:-100%}
.world-grid figure:nth-child(3) .world-panel img{top:-100%}
.world-grid figure:nth-child(4) .world-panel img{left:-100%;top:-100%}
.world-grid .world-panel.individual-art img{position:static;width:100%;height:100%;object-fit:contain}
.result-card{max-width:var(--media-width)}
.result-card img{aspect-ratio:4/5;object-fit:contain}
.result-copy{min-width:0}
.result-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.result-layout>*{width:100%;min-width:0}
.result-layout .result-card{margin-top:0;margin-bottom:0}
.title-chip{font-size:.8rem}.title-chip strong{font-size:.9rem}
@media(max-width:599px){
  .hero.section-pad{min-height:calc(100svh - var(--header-height))}
  .hero-art{width:auto;height:42svh;max-width:100%;aspect-ratio:4/5}
  .hero-art img{width:100%;height:100%;object-fit:contain}
  .hero-copy h1{font-size:2rem}.hero-copy p{font-size:.86rem}
}
@media(min-width:1100px){
  .section-pad:not(.hero)>*{max-width:none}
  .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
  .step-card{min-width:0}.step-card h3{min-height:2.6rem}.step-card>p{min-height:5rem}
  .step-example-image{max-width:none}
  .world-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
  .result-layout{grid-template-columns:minmax(0,var(--media-width)) minmax(0,var(--media-width));column-gap:2rem;align-items:center;justify-content:start}
}
@media(min-width:900px){
  .hero.section-pad{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding-inline:max(var(--page-gutter),calc((100% - var(--layout-width))/2))}
  .hero-art{height:auto;width:100%;max-width:var(--media-width);justify-self:center;aspect-ratio:4/5}
  .hero-copy h1{font-size:clamp(2.15rem,3.2vw,3.5rem)}
}

/* Keep navigation together rather than spreading each link across the header. */
.header-inner{justify-content:flex-start}
.site-header nav{flex:0 1 auto;justify-content:flex-start;margin-left:auto;gap:clamp(4px,1.2vw,18px)}
