/* Outskirts refresh: clearer patrol controls with faction-specific scenic backdrops. */
.guard-page {
  height: 100dvh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(98, 139, 73, .26), transparent 60%),
    #10140e;
}
.guard-frame {
  position: relative;
  isolation: isolate;
  background-color: #25321e;
  background-position: center center;
  background-size: cover;
}
.guard-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 22, 10, .14), rgba(9, 18, 12, .42) 28%, rgba(8, 13, 10, .78) 100%),
    radial-gradient(ellipse at 50% 15%, rgba(255, 205, 113, .12), transparent 54%);
}
.guard-content {
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  height: calc(100dvh - 96px);
  margin-inline: auto;
  padding: clamp(12px, 2.8vw, 26px) clamp(12px, 3vw, 28px) 118px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 221, 158, .36) transparent;
}
.guard-content::-webkit-scrollbar { width: 5px; }
.guard-content::-webkit-scrollbar-thumb {
  background: rgba(255, 221, 158, .36);
  border-radius: 99px;
}
.guard-top {
  align-items: center;
  gap: 12px;
  margin: 0 auto 14px;
}
.guard-back-button {
  min-height: 44px;
  padding: 0 15px;
  color: #f6f1da;
  background: linear-gradient(180deg, rgba(71, 82, 54, .96), rgba(36, 46, 33, .96));
  border: 1px solid rgba(233, 224, 183, .25);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 6px 16px rgba(0, 0, 0, .22);
  font-weight: 900;
  transition: transform .16s ease, filter .16s ease;
}
.guard-title-box {
  min-height: 46px;
  box-sizing: border-box;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(44, 61, 38, .9), rgba(24, 32, 25, .88));
  border: 1px solid rgba(219, 230, 166, .28);
  border-radius: 16px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}
.guard-title {
  color: #e1edaa;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.1;
}
.guard-subtitle {
  color: rgba(247, 241, 213, .78);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}
.guard-message,
.guard-card,
.guard-events {
  box-sizing: border-box;
  color: #f9f3dd;
  background: linear-gradient(145deg, rgba(34, 45, 31, .9), rgba(18, 25, 21, .91));
  border: 1px solid rgba(232, 220, 166, .22);
  border-radius: 20px;
  margin: 0 0 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 26px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}
.guard-message {
  text-align: center;
  color: #f8edc7;
  padding: 12px 15px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}
.guard-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px;
  padding: 10px;
}
.guard-event {
  min-width: 0;
  box-sizing: border-box;
  color: rgba(250, 246, 224, .86);
  background: rgba(8, 13, 10, .38);
  border: 1px solid rgba(224, 231, 179, .1);
  border-radius: 13px;
  align-items: center;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.35;
}
.guard-event + .guard-event { margin-top: 0; }
.guard-event b {
  flex: 0 0 auto;
  color: #c7ef91;
  background: rgba(103, 145, 67, .17);
  border-radius: 999px;
  padding: 4px 8px;
}
.guard-event img {
  width: 17px;
  height: 17px;
}
.guard-card {
  max-width: 620px;
  padding: clamp(14px, 3vw, 22px);
  margin-inline: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(171, 194, 99, .13), transparent 60%),
    linear-gradient(145deg, rgba(38, 52, 35, .92), rgba(17, 24, 21, .94));
  border-color: rgba(221, 226, 166, .27);
}
.guard-hero {
  min-height: 170px;
  gap: 4px;
  padding: 8px 0 12px;
}
.guard-hero-title {
  max-width: 460px;
  color: #fff5d5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .68);
  font-size: clamp(17px, 4.5vw, 22px);
  line-height: 1.35;
}
.guard-timer {
  color: #d7f59d;
  background: rgba(8, 15, 11, .46);
  border: 1px solid rgba(199, 239, 145, .4);
  border-radius: 16px;
  margin-top: 14px;
  padding: 10px clamp(16px, 5vw, 24px);
  font-size: clamp(30px, 8vw, 42px);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 7px 18px rgba(0, 0, 0, .24);
}
.guard-small-text {
  color: rgba(247, 238, 201, .82);
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}
.guard-hours-wrap {
  width: 100%;
  max-width: 440px;
  margin: 18px auto 0;
}
.guard-hours-wrap label {
  color: #e1edaa;
  margin-bottom: 9px;
  font-size: 13px;
  letter-spacing: .02em;
}
.guard-hours-control {
  grid-template-columns: 36px 44px minmax(0, 1fr) 44px 42px;
  gap: 7px;
}
.guard-hour-button,
.guard-hour-value {
  box-sizing: border-box;
  height: 54px;
  border-radius: 15px;
}
.guard-hour-button {
  color: #eef5d8;
  background: linear-gradient(180deg, #718b4b, #3b5831);
  border: 1px solid rgba(230, 242, 193, .22);
  font-size: 25px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .19), 0 4px 0 rgba(30, 48, 27, .76);
  transition: transform .14s ease, filter .14s ease;
}
.guard-hour-button.guard-hour-jump {
  font-size: 13px;
  letter-spacing: 0;
}
.guard-hour-value {
  color: #fff6dc;
  background: rgba(8, 14, 10, .42);
  border: 1px solid rgba(224, 231, 179, .2);
  font-size: clamp(16px, 4vw, 20px);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.guard-hour-button:disabled { opacity: .42; filter: grayscale(.35); box-shadow: none; }
.guard-hours-hint {
  color: rgba(247, 238, 201, .76);
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.guard-action-button {
  width: min(100%, 360px);
  height: 48px;
  box-sizing: border-box;
  color: #f6ffe8;
  background: linear-gradient(180deg, #74a950, #466f35);
  border: 1px solid rgba(230, 247, 194, .22);
  border-radius: 15px;
  margin: 10px auto 0;
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 5px 0 rgba(28, 48, 23, .76), 0 8px 18px rgba(0, 0, 0, .24);
  transition: transform .14s ease, filter .14s ease;
}
.guard-action-button.is-cancel {
  color: #f2f1ec;
  background: linear-gradient(180deg, #737c78, #424947);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 5px 0 rgba(28, 32, 31, .72);
}
.guard-action-button:disabled { opacity: .58; box-shadow: none; }
.guard-confirm-overlay {
  background: rgba(6, 10, 8, .74);
  backdrop-filter: blur(7px);
}
.guard-confirm-modal {
  max-height: min(90dvh, 620px);
  box-sizing: border-box;
  overflow: auto;
  color: #f9f3dd;
  background: linear-gradient(145deg, rgba(44, 57, 37, .98), rgba(17, 24, 21, .99));
  border: 1px solid rgba(228, 230, 178, .35);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .55);
}
.guard-confirm-title { color: #e1edaa; }
.guard-confirm-text,
.guard-confirm-info { line-height: 1.5; }
.guard-confirm-info span { color: #c7ef91; }
.guard-confirm-cancel,
.guard-confirm-confirm {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.guard-confirm-cancel {
  color: #f0f0e9;
  background: linear-gradient(180deg, #727c77, #424946);
}
.guard-confirm-confirm {
  color: #f4ffe4;
  background: linear-gradient(180deg, #74a950, #466f35);
}
.guard-back-button:focus-visible,
.guard-hour-button:focus-visible,
.guard-action-button:focus-visible,
.guard-confirm-actions button:focus-visible {
  outline: 2px solid #f4e8a8;
  outline-offset: 3px;
}
@media (min-width: 720px) {
  .guard-content { padding-inline: clamp(22px, 4vw, 38px); }
  .guard-card { padding: 22px 28px; }
  .guard-events { gap: 10px; }
}
@media (max-height: 700px) {
  .guard-content { padding-top: 10px; }
  .guard-hero { min-height: 135px; padding-block: 4px 8px; }
  .guard-timer { margin-top: 8px; padding-block: 7px; }
  .guard-hours-wrap { margin-top: 10px; }
  .guard-hour-button,
  .guard-hour-value { height: 46px; }
  .guard-action-button { height: 44px; margin-top: 7px; }
}
@media (max-width: 380px) {
  .guard-hours-control { grid-template-columns: 32px 40px minmax(0, 1fr) 40px 36px; gap: 5px; }
  .guard-content { padding-inline: 10px; }
  .guard-top { gap: 8px; }
  .guard-back-button { padding-inline: 11px; }
  .guard-title-box { padding-inline: 10px; }
  .guard-events { padding: 8px; }
  .guard-card { padding: 12px 10px; }
  .guard-hour-button,
  .guard-hour-value { height: 48px; }
}
@media (hover: hover) {
  .guard-back-button:hover,
  .guard-hour-button:not(:disabled):hover,
  .guard-action-button:not(:disabled):hover { filter: brightness(1.1); }
  .guard-hour-button:not(:disabled):hover,
  .guard-action-button:not(:disabled):hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .guard-back-button,
  .guard-hour-button,
  .guard-action-button { transition: none; }
}
