dialog.ice-travel {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #344656;
  color: #fff0ce;
  font: 600 16px/1.35 system-ui, sans-serif;
}

.ice-travel::backdrop { background: #101b27; }
.ice-travel-scene, .ice-travel-controls { position: relative; width: 100%; height: 100%; }
.ice-travel-scene { overflow: hidden; touch-action: manipulation; }
.ice-travel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.ice-travel-top {
  position: absolute;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 410px;
  margin-inline: auto;
  padding: 8px 10px 8px 13px;
}

.ice-travel-top, .ice-travel-cue, .ice-travel-feedback {
  color: #fff0ce;
  background: #0a2424f2;
  border: 1px solid #e9ca8c9c;
  border-radius: 8px;
  box-shadow: 0 3px 12px #1c292e4f;
}

.ice-travel-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  flex: 1;
}
.ice-travel-ticket [data-destination] { font: 400 1.12rem/1.2 var(--sign-lettering, Georgia, serif); }
.ice-travel-ticket [data-context], .ice-travel-counter { font-size: .86rem; }
.ice-travel-progress { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.ice-travel-progress progress { width: 100%; height: 8px; appearance: none; accent-color: #ffd18a; border: 0; border-radius: 6px; background: #42605c; }
.ice-travel-progress progress::-webkit-progress-bar { background: #42605c; border-radius: 6px; }
.ice-travel-progress progress::-webkit-progress-value { background: #ffd18a; border-radius: 6px; }
.ice-travel-progress progress::-moz-progress-bar { background: #ffd18a; border-radius: 6px; }
.ice-travel-coin { color: #ffd18a; margin-inline-end: 2px; }

.ice-travel button {
  --travel-plate: var(--plate-rest, url('../assets/fishing/ui/plate-rest.webp'));
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 0 solid transparent;
  border-image: var(--travel-plate) 75 80 fill / 12px stretch;
  background: transparent;
  color: #fff0ce;
  font: 400 1rem/1.15 var(--sign-lettering, Georgia, serif);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ice-travel button:focus-visible { outline: 3px solid #ffdc91; outline-offset: 2px; }
@media (hover: hover) {
  .ice-travel button:hover { --travel-plate: var(--plate-hover, url('../assets/fishing/ui/plate-hover.webp')); }
}
.ice-travel button:active { --travel-plate: var(--plate-held, url('../assets/fishing/ui/plate-held.webp')); }
.ice-travel button[aria-disabled=true] { opacity: .62; cursor: default; }

.ice-travel-cue, .ice-travel-feedback {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  text-align: center;
  color: #fff2d4;
  font-size: .875rem;
}
.ice-travel-cue,
.ice-travel-feedback { bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px)); }
.ice-travel-feedback:empty { display: none; }
.ice-travel-feedback[data-recovery=true] { border-color: #ffdc91; }

.ice-travel-steering {
  position: absolute;
  inset: auto max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}
.ice-travel-steering button {
  display: grid;
  place-content: center;
  gap: 1px;
  width: min(19vw, 92px);
  height: clamp(44px, 8dvh, 60px);
  font-size: .86rem;
}
.ice-travel-steering button span { font-size: 1.17rem; line-height: 1; }

.ice-travel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #0c1924b8;
}
.ice-travel [hidden] { display: none; }
.ice-travel-card {
  width: min(100%, 410px);
  max-height: 100%;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 28px);
  color: #fff0ce;
  border: 0 solid transparent;
  border-image: var(--case-frame, url('../assets/fishing/ui/case-frame.webp')) 150 / 26px round;
  background: #0a2424;
  box-shadow: 0 12px 38px #0009;
  text-align: center;
  overflow-wrap: anywhere;
}
.ice-travel-card h2 { margin: 0 0 6px; font: 400 clamp(1.2rem, 4vw, 1.65rem)/1.2 var(--sign-lettering, Georgia, serif); }
.ice-travel-card h2:focus-visible { outline: 2px solid #ffdc91; outline-offset: 3px; }
.ice-travel-card p { margin: 0 0 14px; }
.ice-travel-card-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

@media (orientation: landscape) and (max-height: 420px) {
  .ice-travel-cue,
  .ice-travel-feedback { bottom: max(18px, env(safe-area-inset-bottom)); max-width: 50%; }
}
