/* 프레임 시작 페이지 (웹) — FRAMETECH STUDIO */
:root {
  --bg: #f4f5fa; --card: #ffffff; --line: #dfe2ec; --text: #1b1d27; --sub: #6b7083;
  --accent: #5b6cff; --hover: rgba(30,40,90,.07); --danger: #e5484d;
  --wash1: #efeaff; --wash2: #e3f3ff; --ink: var(--text); --inksub: var(--sub); --glass: rgba(255,255,255,.72); --glassline: rgba(255,255,255,.9);
}
body.th-sky { --wash1: #dff0ff; --wash2: #e6fbff; }
body.th-mint { --wash1: #ddf7ec; --wash2: #e8fbf6; }
body.th-peach { --wash1: #ffe9e1; --wash2: #fff2e2; }
body.th-plain { --wash1: transparent; --wash2: transparent; }
body.th-night { --bg: #12131c; --wash1: #2a2160; --wash2: #0f3550; --ink: #eef0fb; --inksub: #a9b0cc; --glass: rgba(30,32,48,.72); --glassline: rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #15161c; --card: #1f2029; --line: #2c2e3a; --text: #eceef6; --sub: #9aa0b5; --hover: rgba(255,255,255,.07);
    --wash1: #241d4d; --wash2: #10304a; --glass: rgba(31,32,41,.78); --glassline: rgba(255,255,255,.07); }
  body.th-sky { --wash1: #102c48; --wash2: #0d3340; } body.th-mint { --wash1: #0f3328; --wash2: #12302e; }
  body.th-peach { --wash1: #3a2018; --wash2: #33261a; }
}
* { box-sizing: border-box; }
body > svg:first-child { position: absolute; }
.nojs { padding: 40px; text-align: center; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 "Pretendard", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(1200px 600px at 15% -10%, var(--wash1), transparent 60%), radial-gradient(1000px 700px at 100% 10%, var(--wash2), transparent 60%), var(--bg);
  background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib { border: 0; background: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--inksub); }
.ib:hover { background: var(--hover); }
.ib svg { width: 16px; height: 16px; }

.banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 12px; font-size: 13px; background: var(--glass); border-bottom: 1px solid var(--glassline); color: var(--inksub); }
.banner span { display: inline-flex; align-items: center; gap: 6px; }
.banner span svg { width: 18px; height: 18px; stroke: none; }
.banner b { color: var(--ink); }

.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand svg { width: 30px; height: 30px; stroke: none; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.topbar nav a:hover { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--glassline);
  background: var(--glass); backdrop-filter: blur(8px); cursor: pointer; color: var(--ink); font-size: 13px; }
.pill svg { width: 16px; height: 16px; }

.start2 { max-width: 1240px; margin: 0 auto; padding: 4px 32px 30px; }
.hello .g { font-size: 18px; font-weight: 700; }
.hello .d { color: var(--inksub); font-size: 13px; }
.s-main { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; margin-top: 5vh; }
.s-center { max-width: 720px; width: 100%; justify-self: center; position: relative; padding-top: 30px; }

.sbox { position: relative; display: flex; align-items: center; height: 60px; border-radius: 30px; padding: 0 6px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(110deg, #7C6CFF, #4FA8FF 55%, #3FCFE0) border-box;
  box-shadow: 0 10px 30px rgba(70,80,200,.12); }
.sbox:focus-within { box-shadow: 0 10px 34px rgba(70,80,200,.24); }
.sbox .engine { display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 8px 0 14px; border: 0; border-radius: 21px; background: var(--hover); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); flex: none; }
.sbox .engine svg { width: 16px; height: 16px; }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 17px; padding: 0 14px; }
.sbox .go { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #7C6CFF, #3FCFE0); }
.sbox .go svg { width: 19px; height: 19px; stroke-width: 2.2; }

.pop { position: absolute; z-index: 5; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(20,24,60,.18); padding: 8px; }
.pop h5 { margin: 6px 6px 8px; font-size: 12.5px; color: var(--sub); font-weight: 600; }
.pop.eng { top: 58px; left: 6px; width: 160px; }
.pop.eng button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; padding: 0 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; }
.pop.eng button:hover { background: var(--hover); }
.pop.eng button.on { color: var(--accent); font-weight: 600; }
.pop.eng svg { width: 16px; height: 16px; }
.pop.look { top: 56px; right: 32px; width: 320px; padding: 10px 12px 12px; }
.pop.look .note { margin: 8px 4px 0; font-size: 11.5px; color: var(--sub); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; }
input.f { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; padding: 0 12px; }
.btn { height: 38px; padding: 0 16px; border-radius: 10px; border: 0; cursor: pointer; background: var(--accent); color: #fff; font-weight: 600; }
.btn.ghost { background: var(--hover); color: var(--text); }
.danger-t { color: var(--danger) !important; }
.sw6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.swt { border: 2px solid transparent; border-radius: 12px; padding: 4px; background: none; cursor: pointer; font-size: 11.5px; color: var(--sub); }
.swt i { display: block; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  background: radial-gradient(60px 40px at 20% 0, var(--w1, #e2d9ff), transparent 70%), radial-gradient(60px 50px at 100% 30%, var(--w2, #d3ecff), transparent 70%), #f4f5fa; }
.swt.th-sky i { --w1: #cfe7ff; --w2: #d6f7ff; } .swt.th-mint i { --w1: #c9f1df; --w2: #d9f7ef; } .swt.th-peach i { --w1: #ffd9cc; --w2: #ffe8cc; }
.swt.th-plain i { background: #f4f5fa; } .swt.th-night i { background: radial-gradient(60px 40px at 20% 0, #3a2d86, transparent 70%), #12131c; }
.swt.on { border-color: var(--accent); color: var(--text); }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 12.5px; text-decoration: underline; white-space: nowrap; }
.pop.look .linkish { margin: 10px 4px 2px; }

.svc { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0 26px; }
.svc-i { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 8px 2px; border-radius: 14px; font-size: 12px; }
.svc-i span { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glassline); color: var(--accent); box-shadow: 0 3px 10px rgba(40,50,120,.08); transition: transform .15s; }
.svc-i:hover span { transform: translateY(-2px); }
.svc-i svg { width: 22px; height: 22px; }
.svc-i.main span { background: linear-gradient(135deg, #7C6CFF, #4FA8FF); color: #fff; border-color: transparent; }

.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.tile { position: relative; width: 112px; padding: 12px 4px 8px; border-radius: 14px; cursor: pointer; text-align: center; border: 0; background: none; }
.tile:hover { background: var(--glass); }
.ticon { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.ticon .letter { font-weight: 800; font-size: 18px; color: var(--accent); }
.tile.add .ticon { border-style: dashed; color: var(--sub); background: transparent; }
.tname { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tedit { position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--card); color: var(--sub); cursor: pointer; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.tedit svg { width: 13px; height: 13px; }
.tile:hover .tedit, .tile:focus-within .tedit { display: grid; }
.pop.edit { left: 50%; transform: translateX(-50%); top: calc(100% + 6px); width: 340px; display: flex; flex-direction: column; gap: 8px; padding: 12px; }

.s-side { display: flex; flex-direction: column; gap: 14px; }
.wcard { position: relative; background: var(--glass); border: 1px solid var(--glassline); border-radius: 18px; padding: 16px; backdrop-filter: blur(10px); box-shadow: 0 6px 22px rgba(40,50,120,.07); }
.login .l-msg { margin: 0 0 12px; font-size: 13px; color: var(--inksub); }
.ludam-btn { width: 100%; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(110deg, #7C6CFF, #4FA8FF); box-shadow: 0 6px 18px rgba(100,90,255,.28); }
.ludam-btn:hover { filter: brightness(1.05); }
.ludam-btn svg { width: 20px; height: 20px; stroke-width: 2.1; }
.l-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--inksub); }

.w-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.w-region { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); padding: 2px 4px; border-radius: 8px; }
.w-region:hover { background: var(--hover); }
.w-region svg { width: 15px; height: 15px; }
.w-clock b { font-size: 13px; }
.w-now { display: flex; align-items: center; gap: 12px; }
.w-big { width: 50px; height: 50px; color: #7b8bb0; stroke-width: 1.5; flex: none; }
.w-big.w-sun, .w-big.w-partly { color: #f0a020; } .w-big.w-moon { color: #8a7cf6; } .w-big.w-rain, .w-big.w-thunder { color: #4f86e0; }
.w-temp { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.w-txt { font-size: 13px; color: var(--inksub); margin-top: 3px; }
.w-mm { margin-left: auto; font-size: 13px; color: var(--inksub); }
.w-mm .hi { color: #e5484d; font-weight: 700; } .w-mm .lo { color: #3b82f6; font-weight: 700; }
.w-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 8px; font-size: 12px; color: var(--inksub); }
.w-meta span { display: inline-flex; align-items: center; gap: 3px; }
.w-meta svg { width: 14px; height: 14px; }
.w-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; text-align: center; font-size: 12px; }
.w-hours div { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--inksub); }
.w-hours svg { width: 20px; height: 20px; color: var(--ink); }
.w-hours b { color: var(--ink); }
.w-wait { font-size: 13px; color: var(--inksub); padding: 10px 0; }
.w-src { margin-top: 8px; font-size: 10.5px; color: var(--inksub); opacity: .8; }
.pop.region { top: 40px; left: 10px; width: 250px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pop.region button { height: 32px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pop.region button:hover { background: var(--hover); }
.pop.region button.on { color: var(--accent); font-weight: 700; }

.foot { margin-top: 40px; text-align: center; font-size: 12px; color: var(--inksub); }
.foot a { text-decoration: underline; }

@media (max-width: 1080px) {
  .s-main { grid-template-columns: 1fr; margin-top: 2vh; }
  .s-side { max-width: 720px; width: 100%; justify-self: center; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .topbar, .start2 { padding-left: 16px; padding-right: 16px; }
  .topbar nav a { display: none; }
  .s-side { grid-template-columns: 1fr; }
  .sbox { height: 52px; } .sbox .go { width: 40px; height: 40px; }
  .tile { width: 84px; } .svc-i { width: 76px; }
  .pop.look { right: 16px; width: calc(100% - 32px); }
  .banner { font-size: 12px; }
}
