/* Shared by every player-facing page and independent of the selected brand artwork. */
body[data-style-02] { --portal-paper:#faf8f4; --portal-ink:#17191c; --portal-line:#e1ddd5; --portal-blue:#163ee3; --s2-ink:var(--portal-ink); --s2-blue:var(--portal-blue); --s2-line:var(--portal-line); background:#fff; color:var(--portal-ink); }
.s2-bar .s2-wrap { width:min(1460px,94%); min-height:72px; gap:36px; }
.s2-bar .s2-brand { color:#16181b; font-size:clamp(22px,2.4vw,36px); font-weight:850; letter-spacing:-.06em; }
.s2-bar nav { display:flex; align-items:center; flex:1; gap:clamp(13px,2.2vw,34px); }
.s2-bar nav > a { color:#222327; font-size:clamp(13px,1.18vw,18px); font-weight:700; }
.s2-bar nav > :is(a[href="/myroom.html"], a[href="/login.html"]) { margin-left:auto; }
.s2-bar .s2-toggle summary { white-space:nowrap; border-color:var(--portal-line); }
body[data-style-02=home] { font:16px/1.5 "Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif; }
body[data-style-02=home] .portal-home { width:100%; max-width:none; margin:0; color:var(--portal-ink); }
.portal-home .s2-hero { isolation:isolate; position:relative; overflow:hidden; border:0; border-radius:0; min-height:clamp(265px,25vw,390px); margin:0; padding:0; background:#f9f6ee; display:flex; align-items:center; }
.portal-home .s2-hero .portal-panorama { position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; object-position:65% center; }
.portal-intro { width:min(1460px,94%); margin:0 auto; padding:32px 0 38px; box-sizing:border-box; }
.portal-home .portal-intro h1 { width:fit-content; max-width:52%; margin:0 0 24px; color:#151619; white-space:pre-line; font-size:clamp(38px,4.5vw,72px); font-weight:850; line-height:1.1; letter-spacing:-.065em; word-break:keep-all; }
.portal-home .s2-search { width:min(615px,49%); display:flex; height:52px; gap:0; padding:0; align-items:stretch; margin:0; background:white; border:1px solid #a9a9a5; border-radius:8px; box-sizing:border-box; overflow:hidden; }
.portal-home .s2-search select { width:auto; min-width:62px; border:0; border-right:1px solid #e5e3de; margin:8px 0 8px 8px; padding:0 4px; min-height:0; font-size:13px; font-weight:650; color:#3c4248; }
.portal-home .s2-search input { flex:1; width:0; min-width:0; padding:0 12px; font-size:16px; color:#202124; font-weight:450; border:0; }
.portal-home .s2-search button { min-width:62px; color:white; border:0; border-radius:0; font-size:15px; cursor:pointer; }
.portal-home .s2-search:focus-within { outline:2px solid var(--portal-blue); outline-offset:2px; }
.portal-home .local-search-feedback { max-width:48%; margin-top:8px; padding:5px; width:fit-content; background:white; color:#6c3228; }
.portal-game-section { background:var(--portal-paper); padding:clamp(20px,2.1vw,32px) 0; }
.portal-game-heading, .portal-home .portal-games, .portal-other-heading { width:min(1460px,94%); margin-inline:auto; box-sizing:border-box; }
.portal-game-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.portal-game-heading h2, .portal-other-heading { color:var(--portal-ink); font-size:clamp(21px,2.05vw,30px); line-height:1.3; letter-spacing:-.035em; }
.portal-game-heading h2 { margin:0; }
.portal-other-heading { margin-block:clamp(18px,1.75vw,26px) 0; font-size:clamp(18px,1.65vw,25px); }
.portal-home .portal-games { display:grid; gap:clamp(8px,1vw,16px); margin-block:clamp(9px,1vw,15px) 0; }
.portal-games-featured { grid-template-columns:repeat(4,minmax(0,1fr)); }
.portal-games-other { grid-template-columns:repeat(7,minmax(0,1fr)); }
.portal-home .portal-games a { display:flex; flex-direction:column; align-items:stretch; min-width:0; padding:0; background:white; border:1px solid var(--portal-line); border-radius:12px; overflow:hidden; color:var(--portal-ink); text-align:left; }
.portal-home .portal-games a img { display:block; width:100%; height:auto; aspect-ratio:2 / 1; object-fit:cover; margin:0; background:#f0ede9; }
.portal-home .portal-games a b { display:flex; gap:4px; align-items:center; justify-content:space-between; flex:1; padding:clamp(8px,1vw,15px); line-height:1.25; font-size:clamp(15px,1.55vw,23px); font-weight:750; letter-spacing:-.045em; overflow-wrap:anywhere; }
.portal-games-featured b span { font-size:.95em; font-weight:500; }
.portal-home .portal-games-other a { border-radius:9px; }
.portal-home .portal-games-other a img { aspect-ratio:1.32; }
.portal-home .portal-games-other a b { justify-content:center; padding:8px 3px; font-size:clamp(13px,1.2vw,18px); text-align:center; }
.portal-home a:hover { text-decoration:underline; text-underline-offset:3px; }
.portal-home .portal-games a:hover { border-color:#aca699; }
.portal-games a:focus-visible { outline:3px solid var(--portal-blue); outline-offset:2px; }
@media(max-width:679px) {
  .portal-home .portal-games-featured { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-home .portal-games-other { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.portal-all { color:#3c4553; font-size:14px; white-space:nowrap; }
body[data-style-02=home] > .main_container { display:none!important; }
body[data-style-02=home] > .main_spase { display:none!important; }
body[data-style-02=home] .main_footer a[href^="/index.html#"],body[data-style-02=home] .main_footer li:has(>a[href^="/index.html#"]) { display:none; }
body[data-style-02] .s2-market .market-hero { background:var(--portal-paper); border-color:var(--portal-line); }
body[data-style-02] .s2-market .market-name { color:var(--portal-ink); }
body[data-style-02=detail] .s2-product > .s2-product-intro { background:var(--portal-paper); border-color:var(--portal-line); }
body[data-style-02=detail] .s2-product > .s2-checkout { background:white; border-color:var(--portal-line); }
body[data-style-02=detail] .s2-product :is(h1,strong) { color:var(--portal-ink); }
@media(max-width:780px){
  .s2-bar .s2-wrap { min-height:54px; width:94%; gap:12px; }
  .s2-bar nav { gap:10px; }
  .s2-bar nav > a { font-size:12px; white-space:nowrap; }
  .s2-bar .s2-toggle summary { padding:5px; }
  .portal-home .s2-hero { min-height:230px; }
  .portal-home .portal-intro { padding:32px 0 14px; }
  .portal-home .s2-hero .portal-panorama { object-position:74% center; }
  .portal-home .portal-intro h1 { max-width:64%; font-size:clamp(35px,6.8vw,48px); line-height:1.1; margin:0 0 48px; }
  .portal-home .s2-search { width:min(480px,100%); height:43px; }
  .portal-home .s2-search input { font-size:14px; }
  .portal-home .local-search-feedback { max-width:100%; }
  .portal-all { font-size:13px; }
}
.s2-bar .s2-brand:has(.portal-mark) { display:inline-flex; align-items:center; gap:7px; }
.portal-mark { width:clamp(26px,3.2vw,48px); height:auto; object-fit:contain; }
@media(max-width:780px) {
  .s2-bar .s2-brand:has(.portal-mark) { gap:3px; }
  .portal-home .s2-hero .portal-panorama { mask-image:linear-gradient(to right,transparent 0%,#0002 30%,black 69%); }
  body[data-style-02=home] #local-chat-button { display:grid!important; place-items:center; width:44px!important; min-width:44px!important; height:44px!important; padding:0!important; border-radius:50%!important; right:10px!important; bottom:max(10px,env(safe-area-inset-bottom))!important; }
  body[data-style-02=home] #local-chat-button .local-chat-button-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
body[data-style-02].portal-menu-ready > :is(.wtop-banarea,.pc_left_banner,.main_tmenu_new,.main_header,.main_spase) { display:none!important; }
.portal-home .portal-support { box-sizing:border-box; width:min(1460px,94%); margin:0 auto 22px; }
.portal-home .portal-support { display:flex; flex-wrap:wrap; gap:9px 22px; padding-top:18px; border-top:1px solid var(--portal-line); }
.portal-home .portal-support a { color:#495461; font-size:14px; }

:root { --s2-scene: url("/assets/style-02/portal-hero.webp"); }
