/* The glass over the world on the Rome island (rome/hud.js). */
#rome-big {
  position: fixed;
  z-index: 3;
  top: 16px;
  left: 50%;
  transform: translateX(calc(-50% + var(--shift, 0px) / 2));
  min-width: 2ch;
  padding: 2px 22px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  text-align: center;
  font: 800 46px var(--font);
  font-variant-numeric: tabular-nums;
  color: #b8452c;
  text-shadow: 0 1px 0 #fff;
}

/* Driving, the names of the islands far off are left out: the place and the count stand where they were. */
:root[data-rome="drive"] #plaques {
  visibility: hidden;
}

#rome-big.place {
  font-size: 34px;
  color: var(--ink);
}

#rome-whip {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(calc(-50% + var(--shift, 0px) / 2));
  width: 220px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
}

#rome-whip i {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: linear-gradient(#ffd27a, #e8752a);
  transform-origin: left center;
}

#rome-whip.burst i {
  background: linear-gradient(#fff2c0, #ff5a2a);
}

#rome-leave,
#rome-thumbs button {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--ink);
  font: 600 16px var(--font);
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#rome-leave {
  position: fixed;
  z-index: 3;
  right: 22px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 10px;
}

#rome-leave kbd {
  font: 700 12px var(--font);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

#rome-thumbs {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(calc(-50% + var(--shift, 0px) / 2));
  display: flex;
  gap: 8px;
}

#rome-thumbs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 9px;
}

#rome-thumbs i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

#rome-thumbs button[aria-pressed="true"] {
  background: rgba(255, 236, 196, 0.92);
  box-shadow: var(--rim), 0 0 0 3px #f0b030;
}

/* Driving on a phone: the jump button is the whip, ringed by its bar, and "Leave" sits over the use button. */
:root[data-rome="drive"] #jump {
  font-size: 0;
  background: conic-gradient(#e8752a var(--whip, 360deg), rgba(255, 255, 255, 0.45) 0) border-box, var(--glass);
}

:root[data-rome="drive"] #jump::after {
  content: "";
  width: 54px;
  height: 54px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='%23fff8ec'/%3E%3Cpath d='M12 31 22 13' stroke='%239a5a2a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M22 13c4-6 10-5 11 0s-7 9-13 7' stroke='%23b8452c' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root[data-touch="true"] #rome-whip {
  display: none;
}

:root[data-touch="true"] #rome-leave {
  bottom: calc(196px + env(safe-area-inset-bottom));
  right: 18px;
}

:root[data-touch="true"] #rome-leave kbd {
  display: none;
}

:root[data-touch="true"] #rome-thumbs {
  bottom: calc(140px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
  justify-content: center;
  width: min(360px, calc(100vw - 32px));
}

@media (max-width: 700px) {
  #rome-big {
    top: 74px;
    font-size: 38px;
  }
}
