








#prep {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#prep[hidden] { display: none }

#prep header {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto;
}
#prep header b { font-size: 15px }
#prep header span { font-size: 11px; color: var(--dim) }
#prep header .count { margin-left: auto; font-size: 11px; color: var(--dim) }

#prep .body { flex: 1 1 auto; min-height: 0; display: flex }


#spotlist { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }


#watertabs { display: flex; gap: 1px; background: var(--line); flex: 0 0 auto }
#watertabs .wt {
  flex: 1; border: 0; cursor: pointer; padding: 9px 4px;
  background: var(--panel); color: var(--dim); font: 13px inherit;
  border-bottom: 2px solid transparent;
}
#watertabs .wt.on { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); background: #16222e }
#watertabs .wt span { font-size: 11px; color: var(--dim); font-weight: 400 }


#sidobar {
  display: flex; gap: 5px; overflow-x: auto; padding: 8px 10px 0;
  flex: 0 0 auto; scrollbar-width: none;
}
#sidobar::-webkit-scrollbar { display: none }
#sidobar .sd {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 10px; font: 12px inherit;
}
#sidobar .sd.on { background: var(--accent); color: #04121f; border-color: var(--accent); font-weight: 700 }
#sidobar .sd span { font-size: 10px; opacity: .75 }


.more {
  width: 100%; cursor: pointer; margin-top: 2px;
  background: transparent; color: var(--dim);
  border: 1px dashed var(--line); border-radius: 8px; padding: 10px; font: 12px inherit;
}
.more:active { background: #16222e }

#spotsearch {
  margin: 8px 10px; padding: 8px 10px; flex: 0 0 auto;
  background: #0d1319; color: var(--text);
  border: 1px solid var(--line); border-radius: 7px; font: 13px inherit;
}
#spotsearch::placeholder { color: #56697a }
#spots { flex: 1 1 auto; overflow-y: auto; padding: 0 10px 10px; min-height: 0 }

.spot {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-left: 3px solid transparent;
  border-radius: 8px; padding: 9px 11px; margin-bottom: 6px;
  font: inherit; display: block;
}
.spot:hover { border-color: #3a4956 }
.spot.on { border-color: var(--accent); border-left-color: var(--accent); background: #16222e }
.spot .n { font-size: 14px; font-weight: 700 }
.spot .r { font-size: 11px; color: var(--dim); margin-left: 6px; font-weight: 400 }
.spot .m { font-size: 11px; color: var(--dim); margin-top: 3px }
.spot .m em { font-style: normal; color: #b9cbd9 }



.spot .fav {
  float: right; cursor: pointer; padding: 0 2px 4px 10px;
  color: #4d5b68; font-size: 15px; line-height: 1;
}
.spot .fav:hover { color: var(--warn) }
.spot .fav.on { color: var(--warn) }

.spot.locked { pointer-events: auto }
.spot.locked .n, .spot.locked .r, .spot.locked .m { pointer-events: none }


.spot.locked { opacity: .5; cursor: not-allowed }
.spot.locked .m { color: var(--warn) }



.spot.paidlock { opacity: .62; cursor: pointer }
.spot.paidlock .m { color: var(--dim) }
.spot .lock { float: right; font-size: 11px; color: var(--dim); padding: 0 2px 4px 8px; line-height: 1 }
.spot .week { float: right; font-size: 10px; color: var(--good); border: 1px solid var(--good);
  border-radius: 8px; padding: 1px 5px; margin-left: 8px; line-height: 1.4 }

#detail .gate { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-top: 10px; font-size: 12px; line-height: 1.7 }

#detail .gate { word-break: keep-all; overflow-wrap: anywhere }
#detail .gate b { color: var(--warn) }
#detail .gate a { display: inline-block; margin-top: 6px; color: var(--good) }

#detail .gate .gate-login { margin-top: 8px; padding: 6px 14px; font-size: 12px; border-radius: 8px;
  border: 1px solid var(--good); background: none; color: var(--good); cursor: pointer }


#detail {
  flex: 0 0 300px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
  background: var(--panel);
}
#detail .scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px 13px; min-height: 0 }
#detail h2 { margin: 0; font-size: 17px }
#detail .region { font-size: 12px; color: var(--dim); margin: 2px 0 12px }

.facts { display: grid; grid-template-columns: 54px 1fr; gap: 5px 9px; font-size: 12px; margin-bottom: 12px }
.facts dt { color: var(--dim) }
.facts dd { margin: 0 }
.facts .fish em { font-style: normal; color: var(--good) }
.facts .fish s { color: var(--dim); text-decoration: none; opacity: .65 }

.sect { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 4px }
.sect > label { font-size: 11px; color: var(--dim); display: block; margin-bottom: 4px }
.sect select {
  width: 100%; background: #0d1319; color: var(--text);
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; font: 13px inherit;
}

.sect select:disabled { opacity: .55; cursor: default }
.sect + .sect { margin-top: 11px }
.rignote { font-size: 11px; color: var(--dim); margin-top: 5px; line-height: 1.6 }

.rignote .target { color: var(--dim); margin-bottom: 3px }
.rignote .target em { font-style: normal; color: var(--good); font-weight: 700 }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }

#go {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: var(--accent); color: #04121f;
  font: 700 17px/1 inherit; letter-spacing: 2px; padding: 17px 0;
}
#go:active { filter: brightness(.85) }
#go:disabled { background: #1d252d; color: #4d5b68; cursor: default; letter-spacing: 0; font-size: 13px }





#steprow { flex: 0 0 auto; display: flex; gap: 1px; background: var(--line) }
#back {
  flex: 0 0 auto; border: 0; cursor: pointer; padding: 17px 18px;
  background: #1d252d; color: var(--dim); font: 600 14px/1 inherit;
}
#back:active { filter: brightness(1.25) }
#back[hidden] { display: none }
#go { flex: 1 1 auto }








#prep[data-step="2"] .body,
#prep[data-step="3"] .body { position: relative }


#prep[data-step="2"] #spotlist,
#prep[data-step="3"] #spotlist {
  display: flex; position: absolute; inset: 0; z-index: 1;
  opacity: .22; pointer-events: none;
}
#prep[data-step="2"] #detail,
#prep[data-step="3"] #detail {


  position: relative; z-index: 2; flex: 0 0 auto;






  margin: 4px; width: calc(100% - 8px);
  border: 1px solid #3a4956; border-left: 1px solid #3a4956;
  border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .66);
  overflow: hidden;


  animation: prep-pop .16s ease-out;
}
@keyframes prep-pop {
  from { opacity: 0; transform: scale(.975) translateY(4px) }
  to   { opacity: 1; transform: none }
}

@media (prefers-reduced-motion: reduce) {
  #prep[data-step="2"] #detail,
  #prep[data-step="3"] #detail { animation: none }
}

#closedetail {
  flex: 0 0 auto; cursor: pointer; margin-left: 4px;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 8px; font: 13px/1 inherit;
}
#closedetail:hover { color: var(--text); border-color: #3a4956 }
#closedetail:active { background: #16222e }
#closedetail[hidden] { display: none }





.rankcard {
  border: 1px solid #3a4956; border-radius: 12px; padding: 8px 11px 7px;
  background: linear-gradient(180deg, #1e2a36, #182029); margin-bottom: 8px;
}
.rankcard[hidden] { display: none }
.rankcard .hr-head { font-size: 12px; color: var(--dim); margin-bottom: 5px }
.rankcard .hr-head b { color: #ffd76a; font-size: 12.5px }
.rankcard .hr-head span { font-size: 10.5px }
.rankcard .hr-row { display: flex; align-items: baseline; gap: 7px; font-size: 12px; line-height: 1.8 }

.rankcard .hr-row i { font-style: normal; color: var(--dim); flex: 0 0 auto; min-width: 52px; white-space: nowrap; font-size: 11px }
.rankcard .hr-row b { font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rankcard .hr-row u { text-decoration: none; color: #ffd76a; font-weight: 700; margin-left: auto }
.rankcard .hr-me { font-size: 11px; color: var(--dim); margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px }
.rankcard .hr-me b { color: #9fd9ff }

#prep[data-step="1"] #detail { display: none }
#prep[data-step="1"] #spotlist { flex: 1 1 100% }

#prep[data-step="2"] #p-whensect { display: none }
#prep[data-step="3"] #p-rigsect,
#prep[data-step="3"] .facts,
#prep[data-step="3"] .hero,
#prep[data-step="3"] #spotphotos { display: none }




#prep[data-step="2"] #detail h2 { font-size: 15px }
#prep[data-step="2"] #detail .region { margin: 1px 0 6px }
#prep[data-step="2"] .spothero { margin: 4px 0 7px }
#prep[data-step="2"] .sect > label { margin-bottom: 4px }


#prep[data-step="3"] #detail h2 { font-size: 15px }
#prep[data-step="3"] #detail .region { margin: 1px 0 8px }


#prep header .dots { margin-left: 7px; letter-spacing: 2px; font-size: 9px; color: #3d4b58; font-weight: 400 }
#prep header .dots i { font-style: normal }
#prep header .dots i.on { color: var(--accent) }


#lastspot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 7px 10px; cursor: pointer; text-align: left; width: 100%;
  background: #16222e; border: 0; border-bottom: 1px solid var(--line); color: var(--text);
  font: 12px inherit;
}
#lastspot img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto }
#lastspot b { font-size: 13px }
#lastspot span { color: var(--dim) }
#lastspot u { margin-left: auto; color: var(--accent); text-decoration: none; white-space: nowrap }
#lastspot[hidden] { display: none }

#empty { padding: 30px 16px; text-align: center; color: var(--dim); font-size: 13px; line-height: 1.8 }



#detail .photos { margin: 12px 0 2px; white-space: nowrap; overflow-x: auto }
#detail .ph-h { font-size: 11px; color: var(--dim); margin-bottom: 6px; white-space: normal }
#detail .ph-h span {
  border: 1px solid var(--line); border-radius: 99px; padding: 1px 6px; margin-left: 4px; font-size: 10px;
}
#detail .photos figure { display: inline-block; margin: 0 6px 0 0; width: 104px; vertical-align: top }
#detail .photos img {
  display: block; width: 104px; height: 68px; object-fit: cover;
  border-radius: 8px; background: #0d1319; border: 1px solid var(--line);
}
#detail .photos figcaption {
  font-size: 10px; color: var(--dim); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}





#land {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -46%); width: max-content; max-width: 88%;
  padding: 12px 18px; border-radius: 12px; text-align: center;
  background: rgba(9, 13, 18, .80); border: 1px solid var(--line);
  pointer-events: none; opacity: 0; transition: opacity .18s, transform .18s;
}
#land.on { opacity: 1; transform: translate(-50%, -50%) }
#land .t { font-size: 20px; font-weight: 700; color: var(--good); margin-bottom: 6px }
#land .t.rel { color: var(--warn) }
#land img {
  display: block; margin: 0 auto; max-width: 100%; max-height: min(44vh, 240px);
  width: auto; height: auto; object-fit: contain;
}
#land .cap { font-size: 14px; margin-top: 8px }
#land .cm { color: var(--good); font-weight: 700 }
#land .gr { color: var(--dim) }
#land .why { font-size: 12px; color: var(--warn); margin-top: 3px }
#land .best {
  font-size: 10px; color: #04121f; background: var(--warn);
  border-radius: 99px; padding: 1px 6px; margin-left: 4px; font-weight: 700;
}

#stage.landing #msg { opacity: 0 }



#sum {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(9, 13, 18, .93); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#sum[hidden] { display: none }
#sum .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; width: min(420px, 100%); max-height: 100%; overflow-y: auto;
}
#sum h2 { margin: 0 0 2px; font-size: 18px }
#sum .where { font-size: 12px; color: var(--dim); margin-bottom: 14px }
#sum .grid { display: flex; text-align: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
#sum .grid div { flex: 1; padding: 9px 4px; border-right: 1px solid var(--line) }
#sum .grid div:last-child { border-right: 0 }
#sum .grid b { display: block; font-size: 19px }
#sum .grid span { font-size: 11px; color: var(--dim) }




#sum .hero { margin: 0 0 14px; text-align: center }
#sum .hero img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 130px;
  width: auto; height: auto; object-fit: contain;
}
#sum .hero .cap { font-size: 12px; margin-top: 7px }
#sum .hero .cap .cm { color: var(--good); font-weight: 700 }

#sum .catch { margin: 13px 0 0; font-size: 12px; max-height: 150px; overflow-y: auto }
#sum .catch div {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 0; border-bottom: 1px solid #222c36;
}
#sum .catch div:last-child { border-bottom: 0 }
#sum .catch .cm { color: var(--good); font-weight: 700 }



#sum .catch .th { flex: 0 0 auto; width: 40px; height: 26px; object-fit: contain }
#sum .catch .nm { flex: 0 0 auto; min-width: 58px }
#sum .none { font-size: 12px; color: var(--dim); margin-top: 13px; line-height: 1.7 }
#sum .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px }
#sum button {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 0;
  font: 700 14px/1 inherit; cursor: pointer; background: transparent; color: var(--text);
}
#sum button.pri { background: var(--accent); color: #04121f; border-color: var(--accent) }
#sum button:active { filter: brightness(.85) }

#sum .toapp {
  display: block; margin-top: 11px; text-align: center; font-size: 11px;
  color: var(--dim); text-decoration: none;
}



#login {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(9, 13, 18, .93); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#login[hidden] { display: none }
#login .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; width: min(360px, 100%); max-height: 100%; overflow-y: auto;
}
#login h2 { margin: 0 0 2px; font-size: 18px }
#login .where { font-size: 12px; color: var(--dim); margin-bottom: 14px }
#login .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px }
#login .card > .btns:only-of-type { grid-template-columns: 1fr }
#login button {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 0;
  font: 700 14px/1 inherit; cursor: pointer; background: transparent; color: var(--text);
}
#login button.pri { background: var(--accent); color: #04121f; border-color: var(--accent) }
#login button:active { filter: brightness(.85) }
#login button:disabled { opacity: .5; cursor: default }

#login .social { display: grid; gap: 8px }
#login .social button { padding: 14px 0; border: 0 }
#login .social .kakao  { background: #fee500; color: #191600 }
#login .social .naver  { background: #03c75a; color: #fff }
#login .social .google { background: #fff; color: #1f1f1f }



#prep header #opentask,
#prep header #openrec,
#prep header #opendex,
#prep header #openlogin {
  margin-left: 6px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 3px 10px; font: 11px inherit;
}
#prep header #opentask:hover,
#prep header #openrec:hover,
#prep header #opendex:hover,
#prep header #openlogin:hover { color: var(--text); border-color: #3a4956 }

#prep header #openlogin { max-width: 92px; overflow: hidden; text-overflow: ellipsis }

#rec, #dex, #task {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(9, 13, 18, .93); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#rec[hidden], #dex[hidden], #task[hidden] { display: none }
#rec .card, #dex .card, #task .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; width: min(460px, 100%); max-height: 100%; overflow-y: auto;
}
#rec h2, #dex h2, #task h2 { margin: 0 0 12px; font-size: 18px }
#rec .grid { display: flex; text-align: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
#rec .grid div { flex: 1; padding: 9px 4px; border-right: 1px solid var(--line) }
#rec .grid div:last-child { border-right: 0 }
#rec .grid b { display: block; font-size: 19px }
#rec .grid span { font-size: 11px; color: var(--dim) }
#rec .rectitle, #dex .rectitle { font-size: 11px; color: var(--dim); margin: 15px 0 5px }
#rec .none { font-size: 12px; color: var(--dim); line-height: 1.7 }
#rec .btns, #dex .btns, #task .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px }
#rec button, #dex button, #task button {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 0;
  font: 700 14px/1 inherit; cursor: pointer; background: transparent; color: var(--text);
}
#rec button.pri, #dex button.pri, #task button.pri { background: var(--accent); color: #04121f; border-color: var(--accent) }
#rec button:active, #dex button:active, #task button:active { filter: brightness(.85) }

.reclist { font-size: 12px; max-height: 190px; overflow-y: auto }
.reclist div { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #222c36 }
.reclist div:last-child { border-bottom: 0 }

.reclist .th { flex: 0 0 auto; width: 40px; height: 26px; object-fit: contain }
.reclist .f { flex: 0 0 78px }
.reclist .v { flex: 0 0 66px; color: var(--good); font-weight: 700 }
.reclist .w { flex: 1 1 auto; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }


#fishonly { margin: 0 0 6px }
#fishonly[hidden] { display: none }
#fishonly .fchip {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: #17323f; color: var(--text); cursor: pointer;
  border: 1px solid #2b5568; border-radius: 8px; padding: 5px 9px; font: 12px inherit;
}
#fishonly .fchip:hover { border-color: #3e7c96 }
#fishonly .fchip .th { width: 30px; height: 20px; object-fit: contain }
#fishonly .fchip span { color: var(--dim); margin-left: auto }


#dex .dexlist div.go { cursor: pointer; border-radius: 6px }
#dex .dexlist div.go:hover { background: #1a2430 }
#dex .dexlist div.go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }



#dex .dexbar { height: 6px; border-radius: 99px; background: #1b2430; overflow: hidden }
#dex .dexbar i { display: block; height: 100%; background: var(--good) }
#dex .dexnum { font-size: 11px; color: var(--dim); margin: 6px 0 2px }
#dex .dexnum b { color: var(--text) }


#dex .dexlist .v { flex: 0 0 52px }
#dex .dexlist .f { flex: 0 0 72px }

#dex .dexlist { max-height: none; overflow: visible }





#dex .dexlist .yet .th { filter: grayscale(1) brightness(1.9); opacity: .5 }
#dex .dexlist .yet .f { color: var(--dim) }
#dex .dexlist .yet .w { color: #5d7186 }


.reclist .practice { opacity: .5 }
.reclist .practice .v { color: var(--dim) }


#rec .warn, #dex .warn, #sum .warn, #login .warn, #task .warn {
  font-size: 11px; color: var(--warn); line-height: 1.7;
  border: 1px solid #3a3320; border-radius: 8px; padding: 8px 10px; margin-top: 14px;
}
#rec .warn b, #login .warn b { color: var(--warn) }

#rec .warn.ok { color: var(--good); border-color: #1f3d2b }
#rec .warn.ok b { color: var(--good) }

#sum .catch .best {
  font-size: 10px; color: #04121f; background: var(--warn);
  border-radius: 99px; padding: 1px 6px; margin-left: 4px; font-weight: 700;
}



#wherenow { font-size: 11px; color: var(--dim); margin-left: auto; text-align: right; line-height: 1.4 }
#wherenow b { display: block; font-size: 12px; color: var(--text); font-weight: 700 }

#wherenow .rig { display: block; color: #7fa8c6 }


@media (orientation: landscape) {
  header { flex-wrap: wrap; row-gap: 3px }
  #wherenow {
    flex-basis: 100%; margin-left: 0; text-align: left;
    overflow-wrap: anywhere;
  }
  #wherenow b { font-size: 11px }
}
#stop {
  width: 100%; background: transparent; color: var(--dim); cursor: pointer;
  border: 0; border-top: 1px solid var(--line); padding: 9px; font: 11px inherit;
}
#stop:active { background: #0d1319 }


@media (max-height: 460px) {
  #prep header { padding: 6px 12px }
  #detail { flex-basis: 268px }
  #watertabs .wt { padding: 6px 3px; font-size: 12px }
  #sidobar { padding: 5px 8px 0 }
  #detail .scroll { padding: 9px 11px }
  #go { padding: 13px 0; font-size: 15px }
  .spot { padding: 7px 10px; margin-bottom: 5px }
}













#steprow { gap: 8px; padding: 9px 10px; background: var(--panel); border-top: 1px solid var(--line) }
#back {
  flex: 0 0 auto; min-width: 84px; height: 46px; padding: 0 18px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 11px; background: #1b242d; color: var(--text);
  font: 600 14px/1 inherit; cursor: pointer;
}
#go {
  height: 46px; padding: 0; box-sizing: border-box; border-radius: 11px;
  font: 700 16px/1 inherit; letter-spacing: 1px;
}
#go:disabled { font-size: 13px; letter-spacing: 0 }


#gopractice {
  flex: 0 0 auto; min-width: 84px; height: 46px; padding: 0 16px; box-sizing: border-box;
  border: 1px dashed #3a4a58; border-radius: 11px; background: transparent; color: #9fb8cc;
  font: 600 13px/1 inherit; cursor: pointer;
}
#gopractice[hidden] { display: none }
#gopractice:active { filter: brightness(1.25) }

@media (min-width: 560px) {

  #prep[data-step="2"] #detail,
  #prep[data-step="3"] #detail { margin-left: auto; margin-right: auto; width: calc(100% - 68px); max-width: 860px }







  #spots:has(> .spot) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; align-content: start;
  }
  #spots:has(> .spot) > * { min-width: 0 }

  #spots:has(> .spot) > .more { grid-column: 1 / -1 }

  #prep[data-step="2"] #detail .scroll {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-content: start;
  }

  #prep[data-step="2"] #detail .scroll > * { grid-column: 1 / -1; min-width: 0 }
  #prep[data-step="2"] #detail .scroll > #p-rigsect { grid-column: 1 }
  #prep[data-step="2"] #detail .scroll > dl.facts {
    grid-column: 2; margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line);
  }




  #prep[data-step="3"] #p-whensect {
    display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; align-items: start;
  }
  #prep[data-step="3"] #p-whensect > label { grid-column: 1 / -1; order: 0 }
  #prep[data-step="3"] #p-mode { order: 1 }
  #prep[data-step="3"] #p-when,
  #prep[data-step="3"] #p-when2 { display: contents }
  #prep[data-step="3"] #p-when > div:first-child { order: 2 }
  #prep[data-step="3"] #p-when > div:last-child { order: 3 }
  #prep[data-step="3"] #p-sky { order: 4; margin-top: 0 !important }


  #prep[data-step="3"] #p-skyrow { order: 4; margin-top: 0 !important }
  #prep[data-step="3"] #p-skyrow #p-wind { order: 5 }
  #prep[data-step="3"] #p-when2 > div:first-child { order: 5 }
  #prep[data-step="3"] #p-when2 > div:last-child { order: 6 }
  #prep[data-step="3"] #p-now { grid-column: 1 / -1; order: 9; margin-top: 2px }
}


@media (max-height: 420px) {

  #prep[data-step="2"] #detail,
  #prep[data-step="3"] #detail { margin-top: 2px; margin-bottom: 2px }
  #steprow { padding: 6px 8px; gap: 6px }
  #back { height: 40px; min-width: 74px; padding: 0 14px; font-size: 13px }
  #gopractice { height: 40px; min-width: 74px; padding: 0 12px; font-size: 12px }
  #go { height: 40px; font-size: 15px }


  #prep[data-step="3"] #detail h2 { font-size: 14px }
  #prep[data-step="3"] #detail .region { margin: 1px 0 5px }
  #prep[data-step="3"] #p-whensect { gap: 5px 12px }

  #prep[data-step="3"] #p-whensect > label { display: none }
  #prep[data-step="3"] .sect select { padding: 5px 8px; font-size: 12.5px }
  #prep[data-step="3"] #p-now { line-height: 1.45 }

  #prep[data-step="3"] #p-now { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; align-items: start }
  #prep[data-step="3"] #p-now .condhead,
  #prep[data-step="3"] #p-now .condhint { grid-column: 1 / -1 }
}





#lobby { display: none }
#prep.lobby .body { position: relative }
#prep.lobby #spotlist { position: absolute; inset: 0; z-index: 1; opacity: .22; pointer-events: none }
#prep.lobby #detail { display: none }
#prep.lobby #steprow { display: none }
#prep.lobby header .count { visibility: hidden }
#prep.lobby #lobby {

  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  position: relative; z-index: 2; flex: 0 1 auto; align-self: center;
  margin: 4px auto; width: calc(100% - 8px); max-width: 880px; max-height: calc(100% - 8px); box-sizing: border-box;
  border: 1px solid #3a4956; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .66);
  background: var(--panel); overflow: hidden;
  animation: prep-pop .16s ease-out;
}
@media (prefers-reduced-motion: reduce) { #prep.lobby #lobby { animation: none } }

#lobby .lb-pic { position: relative; min-height: 120px; background: #0d1319 }
#lobby .lb-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block }

#lobby .lb-pic canvas.lb-3d { opacity: 0; transition: opacity .35s ease-out; pointer-events: none }
#lobby .lb-pic canvas.lb-3d.on { opacity: 1 }
@media (prefers-reduced-motion: reduce) { #lobby .lb-pic canvas.lb-3d { transition: none } }

#lobby .lb-tag {
  position: absolute; z-index: 1; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px;
  background: rgba(6, 12, 20, .62); color: #dfeaf4; font-size: 11px; white-space: nowrap;
}
#lobby .lb-tag:empty { display: none }
#lobby .lb-info { display: flex; flex-direction: column; gap: 6px; padding: 10px 13px 9px; min-width: 0 }
#lobby .lb-who { font-size: 10.5px; color: var(--dim) }
#lobby .lb-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; row-gap: 2px }
#lobby .lb-head b { font-size: 17px; font-weight: 800; letter-spacing: -.3px }
#lobby .lb-head span { font-size: 11.5px; color: var(--dim) }
#lobby .lb-head em {
  font-style: normal; font-size: 10px; color: var(--good); border: 1px solid var(--good);
  border-radius: 8px; padding: 0 5px; line-height: 1.5;
}
#lobby .lb-now { font-size: 12.5px; color: #cfe0ee }

#lobby .lb-win { margin-top: 1px }
#lobby .lb-cap { display: flex; align-items: baseline; gap: 7px; font-size: 11px; margin-bottom: 3px; white-space: nowrap; overflow: hidden }
#lobby .lb-cap b { color: var(--text); font-weight: 700 }
#lobby .lb-cap span { color: var(--dim); font-size: 10px; overflow: hidden; text-overflow: ellipsis }
#lobby .lb-bars {
  position: relative; display: flex; align-items: flex-end; height: 16px;
  background: #0f151b; border-radius: 3px; overflow: hidden; border-left: 2px solid var(--text);
}


#lobby .lb-bars i {
  flex: 1 1 0; min-width: 0; height: 100%; --c: #4f86b8; --bgc: #1d2a37;
  background: linear-gradient(to top, var(--c) var(--h, 50%), var(--bgc) var(--h, 50%));
}
#lobby .lb-bars i.g { --c: var(--good) }
#lobby .lb-bars i.lo { --c: #3d4e5e }

#lobby .lb-bars i.nt { --bgc: #0a0f15 }
#lobby .lb-bars i.es { opacity: .5 }
#lobby .lb-bars .lb-mk {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--warn); box-shadow: 0 0 4px rgba(255, 196, 83, .8);
}
#lobby .lb-ticks { position: relative; height: 12px; font-size: 9.5px; line-height: 12px; color: var(--dim); margin-top: 1px }
#lobby .lb-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap }
#lobby .lb-ticks span.now { left: 0; transform: none; color: var(--text) }
#lobby .lb-next { font-size: 12.5px; color: var(--dim) }
#lobby .lb-next b { color: var(--warn); font-weight: 700; margin-right: 3px }
#lobby .lb-next span { color: var(--text) }

#lobby .lb-gear {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; margin-top: auto;
  text-align: left; cursor: pointer; background: #16222e; color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; font: 12px inherit;
}
#lobby .lb-gear span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
#lobby .lb-gear u { text-decoration: none; color: var(--accent); white-space: nowrap }
#lobby .lb-btns { display: flex; gap: 7px }
#lobby .lb-btns button {
  flex: 0 0 auto; height: 42px; padding: 0 14px; box-sizing: border-box; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: #1b242d; color: var(--text); font: 600 13px/1 inherit;
}

#lobby .lb-btns .lb-go {
  flex: 1 1 auto; border: 0; background: var(--accent); color: #04121f; font: 800 16px/1 inherit; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
#lobby .lb-btns .lb-go small { font-size: 10.5px; font-weight: 600; letter-spacing: 0; opacity: .8 }

#lobby .lb-btns .lb-first {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 10px;
  border-color: #4b6a86; color: #cfe3f5; font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap;
}
#lobby .lb-btns .lb-first small { font-size: 10.5px; font-weight: 600; line-height: 1.1; color: var(--good) }
#lobby .lb-btns .lb-first.lb-first { height: 40px }
#lobby .lb-btns button:active { filter: brightness(.85) }
#lobby .lb-app { font-size: 10.5px; color: var(--dim); text-decoration: none; align-self: flex-start }
#lobby .lb-app:hover { color: var(--text) }

@media (max-height: 340px) {
  #lobby .lb-info { gap: 5px; padding: 8px 11px 7px }
  #lobby .lb-head b { font-size: 16px }
  #lobby .lb-btns button { height: 38px }
}

@media (max-width: 559px) {
  #prep.lobby #lobby { grid-template-columns: 1fr; align-self: stretch }
  #lobby .lb-pic { min-height: 86px }
}




#prep.lobby header #opentask, #prep.lobby header #opendex, #prep.lobby header #openrec { display: none }
#prep.lobby #lobby { grid-template-rows: minmax(0, 1fr) auto }
#lobby .lb-last { color: #cfe0ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
#lobby .lb-last b { color: var(--warn); font-weight: 700 }
#lobby .lb-tag { bottom: auto; top: 8px }
#lobby .lb-menu {
  grid-column: 1 / -1; display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); background: #111a22;
}
#lobby .lb-menu button {
  flex: 1 1 0; min-width: 0; height: 30px; padding: 0 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid var(--line); border-radius: 9px; background: #1b242d; color: var(--text); font: 600 12.5px/1 inherit;
}
#lobby .lb-menu button[hidden] { display: none }
#lobby .lb-menu button:active { filter: brightness(.85) }
#lobby .lb-feed {
  position: absolute; z-index: 1; left: 6px; right: 6px; bottom: 6px; padding: 6px 8px 5px; border-radius: 10px;
  background: rgba(6, 12, 20, .74); border: 1px solid rgba(120, 150, 175, .25); font-size: 11px; line-height: 1.35;
}
#lobby .lb-feed:empty { display: none }
#lobby .lb-ftab { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; white-space: nowrap }
#lobby .lb-ftab b { font-size: 11px; color: var(--text); margin-right: auto }

#lobby .lb-scope { display: inline-flex; margin-right: auto; border: 1px solid #3a4956; border-radius: 99px; overflow: hidden }
#lobby .lb-scope button { border: 0; border-radius: 0; padding: 3px 9px }
#lobby .lb-feed .lb-ftab .lb-scope button.on.on { background: #dfeaf4; border-color: #dfeaf4; color: #04121f }
#lobby .lb-ftab button {
  border: 1px solid #3a4956; border-radius: 99px; background: transparent; color: var(--dim); font: 600 10.5px/1 inherit; padding: 3px 8px; cursor: pointer;
}
#lobby .lb-feed.game .lb-ftab button.on { background: var(--good); border-color: var(--good); color: #04121f }
#lobby .lb-feed.real .lb-ftab button.on { background: #4f86b8; border-color: #4f86b8; color: #04121f }
#lobby .lb-feed ul { list-style: none; margin: 0; padding: 0 }
#lobby .lb-feed li { display: flex; gap: 5px; align-items: baseline; white-space: nowrap; overflow: hidden }
#lobby .lb-feed li b { color: #dfeaf4; font-weight: 700; flex: 0 0 auto }
#lobby .lb-feed li u { text-decoration: none; color: #fff; flex: 0 0 auto }
#lobby .lb-feed li i { font-style: normal; color: var(--dim); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis }
#lobby .lb-feed li s { text-decoration: none; color: var(--dim); flex: 0 0 auto; margin-left: auto }
#lobby .lb-feed li.lb-fe { color: var(--dim) }
#lobby .lb-feed .lb-app { display: block; margin-top: 3px; font-size: 10px }
#lobby .lb-btns .lb-go { height: 40px }
@media (max-height: 340px) {

  #lobby .lb-info { gap: 4px; padding: 6px 11px 6px }



  #lobby .lb-last { flex: 0 0 auto }
  #lobby .lb-info { gap: 3px }
  #lobby .lb-head { line-height: 1.2 }
  #lobby .lb-btns .lb-go { height: 33px }
  #lobby .lb-btns .lb-first.lb-first { height: 33px }
  #lobby .lb-menu { padding: 4px 6px }
  #lobby .lb-menu button { height: 28px }
}




#lobby .lb-ftab button, #lobby .lb-menu button, #lobby .lb-btns .lb-go { position: relative }
#lobby .lb-ftab button::after { content: ''; position: absolute; inset: -8px 0 }
#lobby .lb-menu button::after { content: ''; position: absolute; inset: -5px 0 }
#lobby .lb-btns .lb-go::after { content: ''; position: absolute; inset: -4px 0 }
#lobby .lb-scope { overflow: visible }
#lobby .lb-scope button:first-child { border-radius: 99px 0 0 99px }
#lobby .lb-scope button:last-child { border-radius: 0 99px 99px 0 }
#lobby .lb-ticks { height: 13px; font-size: 12px; line-height: 13px; margin-top: 0 }






#sum.jo-on { padding: 8px }
#sum .card.jo {
  width: min(780px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box;
  padding: 10px 14px 9px; display: flex; flex-direction: column; gap: 8px;
}
#sum .jo .jo-top { display: flex; align-items: baseline; gap: 9px; min-width: 0; white-space: nowrap }
#sum .jo .jo-top > b {
  flex: 0 0 auto; font: 400 18px/1.15 'Black Han Sans', -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; letter-spacing: 0;
}
#sum .jo .jo-when { flex: 0 0 auto; font-size: 11.5px; color: var(--dim) }
#sum .jo .jo-where { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--text) }

#sum .jo .jo-tag {
  flex: 0 0 auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--good);
  border: 1px solid var(--good); border-radius: 9px; padding: 0 7px; line-height: 1.7;
}
#sum .jo .jo-tag.prac { color: var(--dim); border-color: #3a4956 }
#sum .jo .jo-body { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 14px; min-height: 0 }
#sum .jo .jo-catch {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px;
  min-width: 0; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .08);
}
#sum .jo .hero { margin: 0 }
#sum .jo .hero img { max-height: 78px; max-width: 100% }
#sum .jo .hero .nm { font-size: 16px; margin-top: 1px }
#sum .jo .hero .num b { font-size: 34px }
#sum .jo .hero .num i { font-size: 14px }
#sum .jo .hero .num em { margin-left: 6px; padding: 1px 7px }
#sum .jo .hero .gr { margin-top: 0 }
#sum .jo .jo-none b { display: block; font: 400 28px/1.15 'Black Han Sans', -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif }
#sum .jo .jo-none span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--dim) }
#sum .jo .jo-tot { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 3px 5px; font-size: 11px; color: #b9cbd9 }
#sum .jo .jo-tot b { color: #fff; font-size: 12px; margin-right: 1px }
#sum .jo .jo-tot span { padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08) }
#sum .jo .jo-tot span.rel { color: var(--warn); border-color: #4a3d1e }
#sum .jo .jo-cnt { font-size: 10.5px; color: var(--dim); white-space: nowrap }

#sum .jo .jo-lines { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0 }
#sum .jo .jl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px; align-items: baseline; font-size: 12.5px; line-height: 1.4 }
#sum .jo .jl i { font-style: normal; font-size: 11px; font-weight: 700; color: #9fc6e6; white-space: nowrap }
#sum .jo .jl span { color: #e3edf6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden }
#sum .jo .jl.t-good i { color: var(--good) }
#sum .jo .jl.t-warn i { color: var(--warn) }
#sum .jo .jl.t-dim i, #sum .jo .jl.t-dim span { color: var(--dim) }
#sum .jo .tasksum { margin-top: 1px }
#sum .jo .warn { margin-top: 0; padding: 5px 8px }

#sum .jo .jo-btns { display: flex; align-items: center; gap: 8px; min-width: 0 }
#sum .jo .jo-btns button { flex: 0 0 auto; min-width: 100px; height: 38px; padding: 0 14px; border-radius: 10px; font: 700 13.5px/1 inherit }
#sum .jo .jo-btns #sum-more { min-width: 128px }
#sum .jo .jo-btns #sum-share { border-color: #4b6a86; color: #cfe3f5 }
#sum .jo .jo-btns #sum-share:disabled { opacity: .6 }
#sum .jo .jo-btns .toapp {
  margin: 0 0 0 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 10.5px;
}

@media (max-height: 340px) {
  #sum.jo-on { padding: 5px }
  #sum .card.jo { padding: 8px 12px 7px; gap: 6px }
  #sum .jo .hero img { max-height: 66px }
  #sum .jo .hero .num b { font-size: 30px }
  #sum .jo .jo-lines { gap: 5px }
  #sum .jo .jl { font-size: 12px; line-height: 1.36 }
  #sum .jo .jo-btns button { height: 36px }
}

@media (max-width: 559px) {
  #sum .jo .jo-body { grid-template-columns: 1fr }
  #sum .jo .jo-catch { padding-right: 0; border-right: 0 }
  #sum .jo .jo-top { flex-wrap: wrap; white-space: normal }
  #sum .jo .jo-btns { flex-wrap: wrap }
}



#login .nickcard input {
  display: block; width: 100%; box-sizing: border-box; margin: 2px 0 0; padding: 9px 12px;
  border: 1px solid #3a4956; border-radius: 9px; background: #0f151b; color: var(--text);
  font: 16px/1.2 -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  -webkit-user-select: text; user-select: text;
}
#login .nickcard input:focus { outline: none; border-color: var(--accent) }
#login .nick-msg { min-height: 16px; margin-top: 5px; font-size: 11.5px; color: var(--dim) }
#login .nick-msg.ok { color: var(--good) }
#login .nick-msg.no { color: var(--warn) }
#login .nickcard .warn { margin-top: 8px }
#login .nickrow {
  display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13px;
}
#login .nickrow span { font-size: 11px; color: var(--dim); white-space: nowrap }
#login .nickrow b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
#login .nickrow i { font-style: normal; font-size: 10.5px; color: var(--dim); white-space: nowrap }
#login .nickrow button { margin-left: auto; flex: 0 0 auto; padding: 6px 12px; font-size: 12px }
@media (max-height: 340px) {
  #login .nickcard h2 { margin-bottom: 0 }
  #login .nickcard .where { margin-bottom: 8px }
  #login .nickcard .warn { margin-top: 6px; padding: 6px 9px; line-height: 1.5 }
}





#login .card.nickcard, #login .card.nickset { width: min(480px, 100%) }
#login .nickcard button { font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.25 }
#login .nickopts { display: grid; gap: 6px }
#login .nickopt { display: block; width: 100%; padding: 9px 10px; white-space: normal }
#login .nickopt-sub { margin: -3px 0 1px; font-size: 11px; line-height: 1.4; color: var(--dim); text-align: center }
#login .nickopt-sub.no { color: var(--warn) }
#login .nicklink { display: grid; gap: 3px; margin-top: 6px }
#login .nicklink button {
  padding: 8px 10px; white-space: normal;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.25;
}
#login .nicklink small { font-size: 11px; line-height: 1.4; color: var(--dim); text-align: center }
#login .nicklink small.no { color: var(--warn) }
@media (max-height: 340px) {
  #login .nickset .warn { margin-top: 6px; padding: 6px 9px; line-height: 1.5 }
}
