* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  max-width: 640px;
  margin: 0 auto;
}

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  color: #383838;
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  aspect-ratio: 786 / 342;
  background: url('../assets/img/head_bg.avif') center / cover no-repeat;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(20 / 393 * 100vw) calc(24 / 393 * 100vw) calc(12 / 393 * 100vw);
}

.header-sub {
  font-size: calc(13 / 393 * 100vw);
  color: #FFF;
}

.header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(40 / 393 * 100vw);
  font-weight: 200;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: calc(10 / 393 * 100vw);
  margin-top: 0;
  color: #FFF;
  line-height: 1em;
}

.header-badge {
  display: inline-block;
  font-size: calc(21 / 393 * 100vw);
  font-weight: 500;
  font-style: normal;
  color: #0A99E0;
  border-radius: calc(6 / 393 * 100vw);
  padding: calc(2 / 393 * 100vw) calc(7 / 393 * 100vw);
  line-height: 1.4;
  vertical-align: middle;
  background-color: #FFF;
}

.header-desc {
  position: relative;
  z-index: 1;
  background: #fff;
  font-size: calc(18 / 393 * 100vw);
  padding: calc(20 / 393 * 100vw) calc(24 / 393 * 100vw) 0;
  line-height: 1.6;
  margin-top: min(calc(342 / 786 * 100vw), 279px);
}

/* =========================================================
   Input Section
   ========================================================= */
.input-section {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: calc(30 / 393 * 100vw) calc(24 / 393 * 100vw) 0;
}

/* ===== 参加人数バー ===== */
.calc-count-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 / 393 * 100vw);
  background: #f7f7f5;
  border-radius: calc(8 / 393 * 100vw);
  padding: calc(14 / 393 * 100vw);
  margin-bottom: calc(24 / 393 * 100vw);
}
.calc-count-label {
  font-size: calc(16 / 393 * 100vw);
  font-weight: 700;
  letter-spacing: 0.05em;
}
#calcPlayerCount {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 400;
  padding: calc(6 / 393 * 100vw) calc(12 / 393 * 100vw);
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  background: #fff;
  min-width: calc(60 / 393 * 100vw);
  text-align: center;
  appearance: auto;
}

/* ===== タブ ===== */
.calc-tabs {
  display: flex;
  border-bottom: 2px solid #E5E5EA;
  margin-bottom: 0;
}
.calc-tab {
  flex: 1;
  padding: calc(12 / 393 * 100vw) 0;
  background: none;
  border: none;
  font-size: calc(15 / 393 * 100vw);
  font-weight: 600;
  color: #888;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.calc-tab.is-active {
  color: #0A99E0;
}
.calc-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #0A99E0;
  border-radius: 2px 2px 0 0;
}

/* ===== パネル ===== */
.calc-panel {
  display: none;
}
.calc-panel.is-active {
  display: block;
}

/* ===== レートバー ===== */
.calc-rate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 / 393 * 100vw);
  background: #f7f7f5;
  padding: calc(14 / 393 * 100vw);
  font-size: calc(16 / 393 * 100vw);
  font-weight: 600;
}
#calcRate,
#calcRateMedal {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 400;
  width: calc(80 / 393 * 100vw);
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(6 / 393 * 100vw) calc(8 / 393 * 100vw);
  background: #fff;
  outline: none;
}

/* ===== 説明テキスト ===== */
.calc-panel-desc {
  font-size: calc(13 / 393 * 100vw);
  color: #888;
  margin: calc(16 / 393 * 100vw) 0;
}

/* ===== メダルヘッダー ===== */
.calc-medal-header {
  margin-top: 1px;
  display: flex;
  justify-content: space-between;
  gap: calc(6 / 393 * 100vw);
  background: #f7f7f5;
  padding: calc(16 / 393 * 100vw) calc(18 / 393 * 100vw);
}
.calc-medal-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4 / 393 * 100vw);
}
.calc-medal-img {
  width: calc(40 / 393 * 100vw);
  height: calc(40 / 393 * 100vw);
  object-fit: contain;
  margin-bottom: calc(6 / 393 * 100vw);
}
.calc-medal-rate {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 400;
  width: calc(48 / 393 * 100vw);
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(4 / 393 * 100vw);
  background: #fff;
  outline: none;
}
.calc-medal-result {
  font-size: calc(12 / 393 * 100vw);
  color: #888;
}

/* ===== 点数タブ：プレイヤー行 ===== */
.calc-score-row {
  display: flex;
  align-items: flex-end;
  padding: calc(6 / 393 * 100vw) 0;
  gap: calc(10 / 393 * 100vw);
}
.calc-score-row__name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: calc(6 / 393 * 100vw);
  border-bottom: 1px solid #C3C3C3;
}
.calc-score-row__name-icon {
  width: calc(14 / 393 * 100vw);
  height: calc(14 / 393 * 100vw);
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(83%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(89%) contrast(84%);
  margin-bottom: calc(8 / 393 * 100vw);
}
.calc-score-row__name-input {
  border: none;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 600;
  padding: calc(4 / 393 * 100vw) 0 calc(14 / 393 * 100vw) 0;
  background: transparent;
  outline: none;
  width: 100%;
}
.calc-score-row__name-input::placeholder { color: #383838; font-weight: 700; }
.calc-score-row__pts-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.calc-score-row__pts-label { font-size: calc(12 / 393 * 100vw); color: #888; }
.calc-score-row__pts-input {
  width: calc(64 / 393 * 100vw);
  font-family: 'Roboto Mono', monospace;
  font-size: calc(22 / 393 * 100vw);
  font-weight: 400;
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(6 / 393 * 100vw) calc(4 / 393 * 100vw);
  background: #fff;
  outline: none;
}

/* ===== メダルタブ：プレイヤーカード ===== */
.calc-medal-card {
  background: #fff;
  border: 1px solid #E5E5EA;
  border-radius: calc(12 / 393 * 100vw);
  padding: calc(16 / 393 * 100vw);
  margin-bottom: calc(12 / 393 * 100vw);
}
.calc-medal-card__name {
  display: flex;
  align-items: center;
  gap: calc(6 / 393 * 100vw);
  border-bottom: 1px solid #C3C3C3;
  margin-bottom: calc(10 / 393 * 100vw);
}
.calc-medal-card__name-icon {
  width: calc(14 / 393 * 100vw);
  height: calc(14 / 393 * 100vw);
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(83%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(89%) contrast(84%);
  margin-bottom: calc(8 / 393 * 100vw);
}
.calc-medal-card__name-input {
  border: none;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 600;
  padding: calc(4 / 393 * 100vw) 0 calc(14 / 393 * 100vw) 0;
  background: transparent;
  outline: none;
  width: 100%;
}
.calc-medal-card__name-input::placeholder { color: #383838; font-weight: 600; }
.calc-medal-card__medals {
  display: flex;
  justify-content: space-between;
  gap: calc(4 / 393 * 100vw);
}
.calc-medal-card__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4 / 393 * 100vw);
}
.calc-medal-card__icon {
  width: calc(32 / 393 * 100vw);
  height: calc(32 / 393 * 100vw);
  object-fit: contain;
  margin-bottom: calc(6 / 393 * 100vw);
}
.calc-medal-card__half-icon {
  width: calc(32 / 393 * 100vw);
  height: calc(32 / 393 * 100vw);
  object-fit: contain;
  margin-bottom: calc(6 / 393 * 100vw);
}
.calc-medal-card__input {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(16 / 393 * 100vw);
  font-weight: 400;
  width: calc(40 / 393 * 100vw);
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(4 / 393 * 100vw);
  background: #fff;
  outline: none;
}

/* =========================================================
   Action Area
   ========================================================= */
.action-area {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: calc(30 / 393 * 100vw) calc(24 / 393 * 100vw) calc(60 / 393 * 100vw);
}

.btn-calc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 / 393 * 100vw);
  width: 100%;
  padding: calc(16 / 393 * 100vw);
  background: #0A99E0;
  color: #fff;
  border: none;
  border-radius: 50vw;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 600;
  cursor: pointer;
}

.btn-calc-icon {
  width: calc(18 / 393 * 100vw);
  height: calc(18 / 393 * 100vw);
  filter: brightness(0) invert(1);
}

.btn-calc:active {
  opacity: 0.8;
}

/* =========================================================
   Banner
   ========================================================= */
.banner {
  display: flex;
  align-items: center;
  background: url('/common/assets/img/shiba.avif') repeat;
  background-size: auto;
  margin: 0;
  color: #fff;
}

.banner-text {
  flex: 1;
}

.banner-lead {
  font-size: calc(12 / 393 * 100vw);
  opacity: 0.9;
}

.banner-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(26 / 393 * 100vw);
  font-weight: 200;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* =========================================================
   Result Page
   ========================================================= */
#page-result {
  min-height: 100svh;
  padding-bottom: 0;
}

.result-title {
  font-size: calc(32 / 393 * 100vw);
  font-weight: 600;
  padding: calc(24 / 393 * 100vw) calc(18 / 393 * 100vw) calc(16 / 393 * 100vw);
}

.result-rate-section {
  margin: 0 calc(18 / 393 * 100vw) calc(16 / 393 * 100vw);
  border-radius: calc(10 / 393 * 100vw);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.result-rate-section[hidden] { display: none; }

.result-rate-section .calc-rate-bar {
  border-radius: 0;
}
.result-rate-section .calc-medal-header {
  margin-top: 1px;
}

#rateInput,
#rateInput2 {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 400;
  width: calc(80 / 393 * 100vw);
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(6 / 393 * 100vw) calc(8 / 393 * 100vw);
  background: #fff;
  outline: none;
}

.result-medal-rate {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(18 / 393 * 100vw);
  font-weight: 400;
  width: calc(48 / 393 * 100vw);
  text-align: center;
  border: 1px solid #C3C3C3;
  border-radius: calc(4 / 393 * 100vw);
  padding: calc(4 / 393 * 100vw);
  background: #fff;
  outline: none;
}
.result-medal-result {
  font-size: calc(12 / 393 * 100vw);
  color: #888;
}

/* Ranking */
.ranking-list {
  background: #fff;
  border-radius: calc(12 / 393 * 100vw);
  margin: 0 calc(18 / 393 * 100vw) calc(20 / 393 * 100vw);
  padding: 0 calc(16 / 393 * 100vw);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16 / 393 * 100vw) 0;
  border-bottom: 1px solid #E5E5EA;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item__left {
  display: flex;
  align-items: center;
  gap: calc(10 / 393 * 100vw);
  flex: 1;
  min-width: 0;
}

.ranking-item__badge {
  width: calc(32 / 393 * 100vw);
  height: calc(32 / 393 * 100vw);
  flex-shrink: 0;
}

.ranking-item__badge--css {
  width: calc(32 / 393 * 100vw);
  height: calc(32 / 393 * 100vw);
  border-radius: 50%;
  background: #f3f3f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(16 / 393 * 100vw);
  font-weight: 600;
  color: #737373;
  flex-shrink: 0;
}

.ranking-item__name {
  font-size: calc(18 / 393 * 100vw);
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item__score {
  font-family: 'Roboto Mono', monospace;
  font-size: calc(20 / 393 * 100vw);
  font-weight: 400;
  flex-shrink: 0;
  text-align: right;
  min-width: calc(100 / 393 * 100vw);
}

.ranking-item__score.is-positive {
  color: #2E7D32;
}

.ranking-item__score.is-negative {
  color: #C62828;
}

/* LINE Button */
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 / 393 * 100vw);
  width: calc(100% - calc(36 / 393 * 100vw));
  margin: 0 auto calc(12 / 393 * 100vw);
  padding: calc(14 / 393 * 100vw);
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: calc(4 / 393 * 100vw);
  font-size: calc(16 / 393 * 100vw);
  font-weight: 600;
  cursor: pointer;
}

.btn-line:active {
  opacity: 0.8;
}

.btn-line-icon {
  width: calc(22 / 393 * 100vw);
  height: calc(22 / 393 * 100vw);
}

/* Back Button */
.btn-back {
  margin: 0 auto calc(30 / 393 * 100vw);
  color: #686868;
  border: none;
  font-size: calc(14 / 393 * 100vw);
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  background-color: #FFF;
  width: 100%;
}


/* =========================================================
   Keypad (ハーフモーダル)
   ========================================================= */
.calc-keypad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  border-radius: calc(18 / 393 * 100vw) calc(18 / 393 * 100vw) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  pointer-events: none;
}

.calc-keypad.is-open {
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.calc-keypad__keys {
  background: #161E2A;
  box-shadow: inset 0 calc(2 / 393 * 100vw) calc(4 / 393 * 100vw) 0 rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: repeat(6, calc(55 / 393 * 100vw));
  grid-template-rows: repeat(2, calc(48 / 393 * 100vw));
  gap: calc(5 / 393 * 100vw);
  justify-content: center;
  align-content: center;
  padding: calc(18 / 393 * 100vw) calc(10 / 393 * 100vw);
}

/* キー共通 */
.calc-key {
  width: calc(55 / 393 * 100vw);
  height: calc(48 / 393 * 100vw);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-style: italic;
  font-size: calc(20 / 393 * 100vw);
  color: #FFFFFF;
  background: #13714C;
  border-radius: calc(14 / 393 * 100vw) calc(14 / 393 * 100vw) calc(14 / 393 * 100vw) calc(14 / 393 * 100vw) / calc(12 / 393 * 100vw) calc(12 / 393 * 100vw) calc(12 / 393 * 100vw) calc(12 / 393 * 100vw);
  box-shadow:
    0 calc(1 / 393 * 100vw) calc(2 / 393 * 100vw) rgba(0, 0, 0, 0.25),
    inset 0 calc(1 / 393 * 100vw) 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.calc-key:active {
  transform: scale(0.95);
  box-shadow:
    calc(0.5 / 393 * 100vw) calc(0.5 / 393 * 100vw) calc(1 / 393 * 100vw) rgba(0, 0, 0, 0.3),
    inset calc(1 / 393 * 100vw) calc(1 / 393 * 100vw) 0 rgba(255, 255, 255, 0.12);
}

/* 数字キー (0-9) テキスト */
.calc-key[data-key="0"]::before { content: '0'; }
.calc-key[data-key="1"]::before { content: '1'; }
.calc-key[data-key="2"]::before { content: '2'; }
.calc-key[data-key="3"]::before { content: '3'; }
.calc-key[data-key="4"]::before { content: '4'; }
.calc-key[data-key="5"]::before { content: '5'; }
.calc-key[data-key="6"]::before { content: '6'; }
.calc-key[data-key="7"]::before { content: '7'; }
.calc-key[data-key="8"]::before { content: '8'; }
.calc-key[data-key="9"]::before { content: '9'; }

.calc-key[data-key="0"],
.calc-key[data-key="1"],
.calc-key[data-key="2"],
.calc-key[data-key="3"],
.calc-key[data-key="4"],
.calc-key[data-key="5"],
.calc-key[data-key="6"],
.calc-key[data-key="7"],
.calc-key[data-key="8"],
.calc-key[data-key="9"] {
  background: #242E3C;
  text-shadow: calc(0.5 / 393 * 100vw) calc(0.5 / 393 * 100vw) 0 rgba(0, 0, 0, 0.30);
}

/* マイナス時 (1-9) */
.calc-key[data-key="1"].show-sign::before { content: '−1'; }
.calc-key[data-key="2"].show-sign::before { content: '−2'; }
.calc-key[data-key="3"].show-sign::before { content: '−3'; }
.calc-key[data-key="4"].show-sign::before { content: '−4'; }
.calc-key[data-key="5"].show-sign::before { content: '−5'; }
.calc-key[data-key="6"].show-sign::before { content: '−6'; }
.calc-key[data-key="7"].show-sign::before { content: '−7'; }
.calc-key[data-key="8"].show-sign::before { content: '−8'; }
.calc-key[data-key="9"].show-sign::before { content: '−9'; }

.calc-key[data-key="1"].show-sign,
.calc-key[data-key="2"].show-sign,
.calc-key[data-key="3"].show-sign,
.calc-key[data-key="4"].show-sign,
.calc-key[data-key="5"].show-sign,
.calc-key[data-key="6"].show-sign,
.calc-key[data-key="7"].show-sign,
.calc-key[data-key="8"].show-sign,
.calc-key[data-key="9"].show-sign {
  font-size: calc(18 / 393 * 100vw);
}

.calc-key[data-key="0"].show-sign { font-size: calc(20 / 393 * 100vw); }
.calc-key[data-key="0"].show-sign::before { content: '0'; }

/* ±ボタン */
.calc-key[data-key="plusminus"] {
  background: #F59631 !important;
  box-shadow:
    0 calc(1 / 393 * 100vw) calc(2 / 393 * 100vw) rgba(0, 0, 0, 0.25),
    inset 0 calc(1 / 393 * 100vw) 0 rgba(255, 255, 255, 0.30);
  font-size: 0;
  color: transparent;
}

.calc-key[data-key="plusminus"]::before {
  content: '';
  display: block;
  width: calc(30 / 393 * 100vw);
  height: calc(30 / 393 * 100vw);
  background-image: url('/common/assets/icons/ico-plus_default.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.calc-key[data-key="plusminus"].is-minus {
  background: #C7364A !important;
}

.calc-key[data-key="plusminus"].is-minus::before {
  background-image: url('/common/assets/icons/ico-plus_push.svg');
  filter: drop-shadow(calc(-0.5 / 393 * 100vw) calc(-0.5 / 393 * 100vw) 0 rgba(0, 0, 0, 0.15));
}

/* Cボタン */
.calc-key[data-key="clear"] {
  background: #F59631 !important;
  box-shadow:
    0 calc(1 / 393 * 100vw) calc(2 / 393 * 100vw) rgba(0, 0, 0, 0.25),
    inset 0 calc(1 / 393 * 100vw) 0 rgba(255, 255, 255, 0.30);
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  font-style: normal;
  font-size: calc(20 / 393 * 100vw);
  color: #fff;
  text-shadow: calc(0.5 / 393 * 100vw) calc(0.5 / 393 * 100vw) 0 #9A8B44;
}

.calc-key[data-key="clear"]::before { content: 'C'; }

/* グリッド配置 */
.calc-key[data-key="1"] { grid-column: 1; grid-row: 1; }
.calc-key[data-key="2"] { grid-column: 2; grid-row: 1; }
.calc-key[data-key="3"] { grid-column: 3; grid-row: 1; }
.calc-key[data-key="4"] { grid-column: 4; grid-row: 1; }
.calc-key[data-key="5"] { grid-column: 5; grid-row: 1; }
.calc-key[data-key="plusminus"] { grid-column: 6; grid-row: 1; }
.calc-key[data-key="6"] { grid-column: 1; grid-row: 2; }
.calc-key[data-key="7"] { grid-column: 2; grid-row: 2; }
.calc-key[data-key="8"] { grid-column: 3; grid-row: 2; }
.calc-key[data-key="9"] { grid-column: 4; grid-row: 2; }
.calc-key[data-key="0"] { grid-column: 5; grid-row: 2; }
.calc-key[data-key="clear"] { grid-column: 6; grid-row: 2; }

/* フォーカス中の入力欄ハイライト */
.is-keypad-active {
  border-color: #0A99E0;
  box-shadow: 0 0 0 2px rgba(232, 147, 12, 0.25);
}

/* キーパッド表示時の下部パディング */
body.keypad-open {
  padding-bottom: calc((48 / 393 * 100vw) * 2 + (5 / 393 * 100vw) + (10 / 393 * 100vw) * 2 + env(safe-area-inset-bottom));
}

.footer { padding: calc(30 / 393 * 100vw) calc(24 / 393 * 100vw); text-align: left; background: #f7f7f5; position: relative; z-index: 1; }
.footer-tagline { font-size: calc(12 / 393 * 100vw); color: #888; margin-bottom: 0; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-size: calc(20 / 393 * 100vw); font-weight: 200; font-style: italic; margin: 0 0 calc(16 / 393 * 100vw); }
.footer-badge { display: inline-block; font-size: calc(14 / 393 * 100vw); font-weight: 500; font-style: normal; color: #FFF; background: #0A99E0; border-radius: calc(4 / 393 * 100vw); padding: calc(1 / 393 * 100vw) calc(6 / 393 * 100vw); line-height: 1.4; vertical-align: middle; }
.footer-links { list-style: none; padding: 0; margin: 0 0 calc(16 / 393 * 100vw); }
.footer-links li { margin-bottom: 0; }
.footer-links a { font-size: calc(13 / 393 * 100vw); color: #666; text-decoration: underline; }
.footer-divider { border: none; border-top: 1px solid #ddd; margin: calc(16 / 393 * 100vw) 0; }
.copyright { font-size: calc(12 / 393 * 100vw); color: #aaa; }