/* Responsive layer. Loaded last on every page. The desktop layout (original 960px design) is untouched
   above 1000px; below it the fixed-width pieces become fluid and the tile bar turns into a 4-column nav. */

/* touch devices have their own scrolling: no custom bar */
@media (pointer:coarse){#fxbar{display:none}}

@media (max-width:1000px){
  #wrap{min-width:0;overflow-x:clip}

  /* hero art scales with the screen, logo on top of it */
  #visual{min-height:0}
  .visual{width:100%}
  .v_img_news{width:100%;max-width:887px;height:auto;aspect-ratio:887/323;margin:0 auto;background-size:100% 100%}
  .logo img{width:clamp(96px,20vw,159px);height:auto}

  /* tile bar -> nav cards */
  #header{height:auto;margin-top:0;padding:12px 0 14px}
  .header{width:auto;padding:0 12px}
  .gnb{float:none;margin:0;padding:0;width:auto;background:none}
  .gnb ul{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-width:620px;margin:0 auto}
  .gnb ul li[class]{float:none;width:auto !important;height:auto !important;background:#fff;border:2px solid #d2d2d2;
    border-radius:14px;overflow:hidden;letter-spacing:.5px;box-shadow:0 3px 0 #d9d3cf}
  .gnb li.on{border-color:#f0960f}
  .gnb li a{display:block}
  .gnb li dl{display:block}
  .gnb li dd{height:auto !important;padding:8px 0 4px}
  .gnb li dd img{margin:0 auto !important;display:block;height:46px;width:auto;max-width:90%}
  .gnb li dt{height:auto;margin:0;padding:6px 2px 5px;font-size:13px;color:#fff;border-radius:0}
  .gnb li.guide dt{background:#5f8fc0}
  .gnb li.news dt{background:#5fbab5}
  .gnb li.download dt{background:#5bb57a}
  .gnb li.ranking dt{background:#86bd72}
  .gnb li.katalog dt{background:#b8a676}
  .gnb li:hover{transform:none}
  .gnb li:active{transform:translateY(2px)}

  /* single column */
  #container{width:auto;margin:22px 14px 10px}
  #column_left{display:none}
  #column_right{float:none;width:auto;margin:0}
  .pageTitle{width:auto}
  .location2{height:auto;min-height:30px;margin-bottom:8px}

  /* footer */
  .footer{width:auto !important;height:auto !important;padding:0 16px 22px}
  .familySite{float:none !important;padding:24px 0 0 !important;display:flex;justify-content:center;align-items:center}
  .copy{float:none !important;width:auto !important;margin:14px 0 0 !important;text-align:center !important}
  .footLinks{margin-bottom:8px !important}
}

/* ---------- tablet ---------- */
@media (max-width:1000px){
  .sec{margin-top:38px}
  .secHead h2{font-size:24px}
  .hero{padding:30px 28px 28px;min-height:0}
  .hero .heroCopy{width:auto;max-width:520px}
  .hero h1{font-size:clamp(28px,5.4vw,42px)}
  .hero .cards{right:12px;top:30px;transform:scale(.82);transform-origin:top right}
  .hero .dice.d1{right:230px}
  .maps,.maps.has-modoo-land{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maps.has-adventure .mapCard{flex:0 1 calc((100% - 20px) / 2)}
  .maps:not(.has-modoo-land):not(.has-adventure) .mapCard.m-space{grid-column:1/-1}
  .topPreview{grid-template-columns:1fr;gap:0;padding:44px 16px 0}
  .topPreview .rankList{margin:0 -16px;border-radius:0;border-top:1px solid var(--line);align-self:stretch}
  .podium{gap:10px}
  .pod,.rankPage .pod{width:auto;flex:1;max-width:200px;min-width:0}
  .road{gap:20px}
  .deed header h3{font-size:20px}
  .deed p{padding:14px 14px 12px}
  .cta{grid-template-columns:1fr;padding:34px 28px}
  .cta p{max-width:none}
  .ctaArt{width:330px;max-width:100%;margin:6px auto 0}
  .stage{padding:56px 12px 0}
}

/* ---------- phone ---------- */
@media (max-width:700px){
  .gnb ul{gap:6px}
  .gnb li dd img{height:38px}
  .gnb li dt{font-size:11px;letter-spacing:0}

  .hero{padding:24px 18px 22px;border-radius:18px}
  .hero .heroCopy{max-width:none}
  .hero .actions{flex-wrap:wrap;gap:12px}
  .hero .cards{position:relative;right:auto;top:auto;transform:none;margin:26px auto 0;height:236px;width:320px;max-width:100%}
  .hero .card{width:132px;height:174px}
  .hero .card.c1{top:36px}.hero .card.c3{top:36px}
  .hero .card.c2{left:calc(50% - 72px);width:144px;height:188px}
  .hero .card img{width:132px}
  .hero .dice.d1{display:none}
  .hero .dice.d2{right:4px;bottom:0}
  .liveRow{gap:8px}
  .live{flex:1;min-width:0;padding:9px 10px 8px}
  .live b{font-size:20px}
  .live span{font-size:12px}

  .secHead{flex-wrap:wrap;gap:6px}
  .secHead h2{font-size:22px}
  .navBtn{display:none}
  .newsCard{flex-basis:78%}
  .maps,.maps.has-modoo-land{grid-template-columns:1fr}
  .maps.has-adventure .mapCard{flex:0 1 100%}
  .mapCard .pic{height:190px}
  .mapCard .txt p{min-height:0}

  .pod .avatar{width:68px;height:68px;border-width:4px}
  .pod.r1 .avatar{width:84px;height:84px}
  .pod .nick{font-size:14px}
  .pod .val{font-size:12px}
  .pod .sub{font-size:11px}
  .crown{width:36px;height:27px;margin-left:-18px;top:-24px}
  .block{font-size:34px;padding-top:12px}
  .pod.r1 .block{height:118px}.pod.r2 .block{height:90px}.pod.r3 .block{height:68px}
  .block small{font-size:11px}
  .rankList li{gap:10px;padding:9px 14px}
  .rankList .no{width:26px;font-size:16px}
  .rankList .val{font-size:13px}
  .rankList .info small{font-size:11px}
  .rankPage .rankList li{padding:10px 14px}
  .rankPage .rankList .avatar{width:38px;height:38px}

  .road{grid-template-columns:1fr;gap:62px;padding-top:44px}
  .road:before,.road .deed:not(:last-child):after{display:none}

  .cta{padding:28px 20px;border-width:5px;border-radius:16px}
  .cta h2{font-size:28px}
  .cta .actions{flex-direction:column}
  .cta .btn{justify-content:center}
  .ctaArt{height:200px}

  .rankHead{flex-wrap:wrap;gap:4px}
  .rankHead h1{font-size:25px}
  .tabs{gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:18px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:none;height:42px;padding:0 13px;gap:6px;font-size:14px}
  .stage{border-radius:18px;padding-top:50px}

  /* berita */
  .newsTabs{white-space:nowrap;overflow-x:auto;scrollbar-width:none}
  .newsTabs::-webkit-scrollbar{display:none}
  .newsTabs a{float:none;display:inline-block}
  .newsBoard thead{display:none}
  .newsBoard table,.newsBoard tbody{display:block}
  .newsBoard tr{display:grid;grid-template-columns:1fr auto;column-gap:10px;padding:11px 14px;border-bottom:1px solid #e4dfdc}
  .newsBoard td{display:block;border:0;padding:2px 0}
  .newsBoard td.cat{text-align:left;grid-column:1;grid-row:1}
  .newsBoard td.dt{text-align:right;grid-column:2;grid-row:1}
  .newsBoard td.ttl{grid-column:1/-1;grid-row:2;padding:4px 0 0}
  .newsBoard tr:hover td{background:none}
  .newsPost{padding:18px 16px 22px}
  .postHead h2{font-size:20px}
  .history{display:none}

  /* download */
  .download_img{height:auto;aspect-ratio:619/231;padding:12.5% 4% 0 32.8%;background-size:100% 100%}
  .download_img li.title01{font-size:clamp(13px,4.2vw,25px)}
  .download_img li.title02{font-size:clamp(10px,2.9vw,17px);margin:3px 0 0;letter-spacing:0}
  .download_img li:nth-child(3){display:none}
  .dlCard{padding:16px 16px}
  .dlHead{flex-wrap:wrap}
  .dlHead>div{flex-basis:calc(100% - 140px)}
  .dlFacts{grid-template-columns:1fr}
  .dlAction{flex-direction:column;align-items:stretch;gap:12px;text-align:center}
  .dlAction .btn{justify-content:center;gap:6px;padding:0 10px;font-size:15px;white-space:nowrap}
  .dlNote{flex-direction:column;gap:10px}
  .dlDrivers{gap:8px}
  .dlDrivers a{padding:12px 4px 10px}
  .dlDrivers img{width:38px;height:38px}
  .dlReq{grid-template-columns:1fr}
  .popup01,.popup04{left:0 !important;right:0;width:auto !important;box-sizing:border-box}

  .legal .postBody h3{margin-top:18px}
}

@media (max-width:380px){
  .hero h1{font-size:27px}
  .hero .actions .btn{flex:1;justify-content:center;padding:0 12px;font-size:15px}
  .newsCard{flex-basis:86%}
}
