/* 색과 글꼴, 화면 뼈대, 머리줄, 계정 줄, 탭 */

:root {
  --ink: #1C1C1E;
  --sec: #6C6C70;
  --ter: #A9A9AE;
  --faint: #C7C7CC;
  --sep: #E6E6E9;
  --band: #F7F7F8;
  --fill: #F0F0F2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

.view { display: none; }
.view.on { display: block; }

/* 머리줄 */
.topbar {
  position: relative;
  padding: 18px 16px 10px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
#season {
  margin-left: auto;
  min-height: 34px;
  padding: 6px 10px;
  background: #F2F2F4;
  color: var(--ink);
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

/* 계정 줄 */
.accountbar {
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
#who { font-weight: 600; }
#who { flex: 1 1 0; }
#logout {
  flex: none;
  min-height: 32px;
  padding: 5px 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #D8D8DC;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

/* 탭 */
.tabs {
  position: sticky;
  bottom: 0;
  display: flex;
  border-top: 1px solid var(--sep);
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  flex: 1 1 0;
  padding: 11px 0 13px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #8A8A8E;
}
.tabs button.on { color: var(--ink); font-weight: 600; }
