.wallet-controls331 { align-items:flex-end; }
.wallet-trip-stack { display:grid; justify-items:start; gap:4px; min-width:0; }
.trip-review-hud {
  position:relative; display:inline-flex; align-items:center; gap:6px; max-width:100%; min-height:33px; padding:3px 8px 3px 5px;
  border:1px solid #91b982; border-radius:10px; color:#fff3c8; white-space:nowrap; touch-action:manipulation;
  background:linear-gradient(145deg,#25493a,#132c25 75%); box-shadow:0 3px 11px #10231a80;
}
.trip-review-hud:hover,.trip-review-hud[aria-expanded="true"] { border-color:#d3f4b7; background:#2a513e; }
.trip-review-hud:focus-visible,.trip-review-notice button:focus-visible,.trip-review-filters select:focus-visible {
  outline:2px solid #f7e4a6; outline-offset:2px;
}
.trip-review-emblem {
  position:relative; display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:7px;
  background:#a5d98a1f; color:#ffdf91;
}
.trip-review-emblem svg,.receipt-review .icon { width:19px; height:19px; }
.trip-review-hud[data-empty="true"] { --review-star-fill:transparent; }
.trip-review-hud .trip-review-empty-short { display:none; }
.trip-review-hud strong { font-size:14px; font-variant-numeric:tabular-nums; }
.trip-review-hud[data-empty="true"] strong { font-size:10px; font-weight:650; }
.trip-review-hud small { color:#d1e5d3; font-size:10px; }
#trip-review-unread {
  position:absolute; top:-1px; right:-1px; width:7px; height:7px; border:1px solid #344c37; border-radius:50%;
  background:#ffdd82; box-shadow:0 0 5px #ffdd826e;
}
.trip-review-hud[data-unread="true"] .trip-review-emblem { animation:trip-review-star 550ms ease-out; }
@keyframes trip-review-star { 35% { background:#f6e49360; } }
.touch-mode .trip-review-hud { min-height:44px; }
#hud:has(#trip-review-hud:not([hidden])) #money-delta33 { top:auto; bottom:-6px; }

.trip-review-notice {
  position:absolute; z-index:8; top:calc(var(--top) + 94px); left:var(--side);
  width:min(292px,calc(100% - var(--side) - var(--right)));
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px; padding:9px;
  border:1px solid #a4c285; border-radius:13px; color:#f5efdc;
  background:linear-gradient(140deg,#254a3a,#122c25 70%); box-shadow:var(--shadow);
  animation:trip-review-enter 180ms ease-out both;
}
@keyframes trip-review-enter { from { opacity:0; translate:0 -5px; } to { opacity:1; translate:0 0; } }
.trip-review-notice .trip-review-emblem { width:29px; height:29px; }
.trip-review-notice-meta { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.trip-review-notice-meta strong { color:#ffdf91; font-size:13px; letter-spacing:.04em; }
.trip-review-notice-meta>span { color:#c8dfc9; font-size:10px; font-weight:750; }
.trip-review-notice p {
  margin:4px 0 0; font-size:12px; line-height:1.36; overflow:hidden;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
}
.trip-review-notice-open {
  margin:3px 0 0; padding:0; min-height:25px; color:#e1f6bb; font-size:11px; font-weight:800;
  border:0; background:transparent; text-align:left; text-decoration:underline; text-underline-offset:2px;
}
.trip-review-notice-close {
  display:grid; place-items:center; width:27px; min-height:27px; padding:2px; border:1px solid #94c6995e; border-radius:8px;
  background:#d0edcc13; color:#f3f6e4; touch-action:manipulation;
}
.trip-review-notice-close svg { width:16px; height:16px; }
.touch-mode .trip-review-notice-close { width:40px; min-height:44px; }
.touch-mode .trip-review-notice-open { min-height:38px; }
#hud:has(#trip-review-notice:not([hidden])) :is(#arrival-hud,.tutorial-card) { margin-top:105px; }

.trip-review-layer .dialog { width:min(100%,520px); }
.trip-review-layer .dialog-head .icon-button { width:44px; min-height:44px; }
.trip-review-empty { padding:22px 10px 25px; text-align:center; }
.trip-review-empty .icon {
  width:44px; height:44px; padding:8px; margin-bottom:8px; border-radius:14px; background:#254738; color:#ffdf91;
  --review-star-fill:transparent;
}
.trip-rating-summary {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); gap:15px; align-items:center; padding:12px;
  border:1px solid #81a47188; border-radius:14px; background:linear-gradient(140deg,#294b38,#1b352c 70%);
}
.trip-rating-score { display:grid; gap:4px; justify-items:start; color:#e8eedc; }
.trip-rating-score .icon { width:24px; height:24px; color:#ffdf91; }
.trip-rating-score strong { color:#fff0b5; font-size:clamp(28px,7vw,44px); line-height:1; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.trip-rating-score strong small { color:#d0e0cb; font-size:13px; letter-spacing:0; }
.trip-rating-score>span { color:#cce1cb; font-size:11px; }
.trip-rating-bars { display:grid; gap:5px; }
.trip-rating-bar { display:grid; grid-template-columns:25px minmax(0,1fr) minmax(16px,auto); gap:6px; align-items:center; color:#e6efdf; font-size:10px; font-variant-numeric:tabular-nums; }
.trip-rating-bar>span:first-child { color:#ffe3a0; white-space:nowrap; }
.trip-rating-bar>span:last-child { text-align:right; }
.trip-rating-bar progress { width:100%; height:5px; appearance:none; border:0; border-radius:5px; background:#10281f; accent-color:#eac77b; }
.trip-rating-bar progress::-webkit-progress-bar { border-radius:5px; background:#10281f; }
.trip-rating-bar progress::-webkit-progress-value { border-radius:5px; background:#eac77b; }
.trip-rating-bar progress::-moz-progress-bar { border-radius:5px; background:#eac77b; }
.trip-review-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:11px 0; }
.trip-review-filters label { display:grid; gap:3px; color:#cce1cc; font-size:11px; }
.trip-review-filters select {
  width:100%; min-width:0; min-height:39px; padding:4px 6px; border:1px solid #84a593; border-radius:8px;
  background:#17332b; color:#edf5e7; font:inherit; font-size:14px;
}
.touch-mode .trip-review-filters select { min-height:44px; font-size:16px; }
.dialog-content h3.trip-review-results { margin-bottom:7px; color:#c4d7c4; font-size:11px; font-weight:700; }
.trip-review-list { display:grid; gap:7px; padding:0; margin:0 0 9px; list-style:none; }
.trip-review-entry { min-width:0; padding:10px; border:1px solid #83aa8c56; border-radius:11px; background:#1a372d; }
.trip-review-entry-top { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; }
.trip-review-entry-top>div { min-width:0; }
.trip-review-entry-top strong,.trip-review-entry-top small { display:block; }
.trip-review-entry-top strong { font-size:12px; }
.trip-review-entry-top small { color:#c0d5c7; font-size:10px; }
.trip-review-entry .service-icon { width:30px; height:30px; }
.trip-review-entry .service-icon svg { width:16px; height:16px; }
.trip-stars { color:#ffdf91; font-size:13px; white-space:nowrap; letter-spacing:.05em; }
.trip-stars-empty { color:#a5b6a4; }
.trip-review-entry p.trip-review-quote,.dialog-content p.receipt-review { margin:7px 0 4px; color:#f0f2df; font-size:13px; overflow-wrap:anywhere; }
.trip-review-entry summary { padding:5px 0 2px; color:#bad6ba; font-size:10px; cursor:pointer; }
.trip-review-detail { display:grid; grid-template-columns:auto 1fr; gap:3px 10px; color:#c1d5c5; font-size:10px; margin-top:5px; }
.trip-review-detail strong { color:#eff1db; overflow-wrap:anywhere; }
.receipt-review { display:flex; align-items:flex-start; gap:7px; padding:8px; border-radius:9px; background:#274536; }
.receipt-review .icon { flex:none; color:#ffdf91; }

#hud:has(#trip-review-hud:not([hidden])) :is(.room-hud,.mart-hud,.arcade-hud,.ride-talk) {
  top:max(calc(var(--top) + 90px), var(--trip-aux-top,0px));
}
#hud:has(#trip-review-hud:not([hidden])) .arrival-hud { top:calc(var(--top) + 91px); }
#hud:has(#trip-review-hud:not([hidden])) .nav-card:not([hidden]) + .arrival-hud { top:calc(var(--top) + 139px); }
.in-room #hud:has(#trip-review-hud:not([hidden])) .arrival-hud { top:calc(var(--top) + 163px); }
@media(max-width:960px) {
  .hud-head:has(#trip-review-hud:not([hidden])) { align-items:flex-start; }
  .hud-head:has(#trip-review-hud:not([hidden])) .hud-brand span { display:none; }
  .hud-head:has(#trip-review-hud:not([hidden])) .hud-brand { padding:5px; }
  .hud-head:has(#trip-review-hud:not([hidden])) #city-bulletin {
    grid-column:1 / -1; max-inline-size:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px;
  }
}
@media(min-width:781px) and (max-width:860px) {
  #hud:has(#trip-review-hud:not([hidden])) .nav-card { left:56%; }
}
@media(max-width:780px) {
  #hud:has(#trip-review-hud:not([hidden])) .nav-card { top:calc(var(--top) + 90px); }
  #hud:has(#trip-review-hud:not([hidden])) .nav-card:not([hidden])~.ride-talk { --trip-aux-top:calc(var(--top) + 136px); }
  #hud:has(#trip-review-hud:not([hidden])) .tutorial-card { top:calc(var(--top) + 139px); }
  #hud:has(.nav-card:not([hidden])) .trip-review-notice { top:calc(var(--top) + 139px); }
  #trip-review-count .trip-count-label { display:none; }
}
@media(max-width:450px) {
  .trip-review-hud { gap:4px; padding-inline:4px 6px; }
  .trip-review-hud[data-empty="true"] #trip-review-score { display:none; }
  .trip-review-hud[data-empty="true"] .trip-review-empty-short { display:block; font-size:9px; }
  .hud-head:has(#trip-review-hud:not([hidden])) { max-inline-size:calc(100vw - var(--side) - var(--right) - 135px); gap:4px; }
  .hud-head:has(#trip-review-hud:not([hidden])) .hud-brand { flex:none; padding:3px; }
  .hud-head:has(#trip-review-hud:not([hidden])) .hud-brand img { width:25px; height:25px; }
  .hud-head:has(#trip-review-hud:not([hidden])) .climate { flex:none; grid-template-columns:14px auto; column-gap:3px; padding-inline:4px; }
  .hud-head:has(#trip-review-hud:not([hidden])) #weather-label { display:none; }
  .hud-head:has(#trip-review-hud:not([hidden])) #city-bulletin { max-inline-size:100%; overflow:hidden; text-overflow:ellipsis; font-size:9px; }
  .wallet-controls331 { min-width:0; }
  .wallet-trip-stack #money-hud33 { max-inline-size:100%; min-width:0; }
  #money-balance33 { min-width:0; overflow:hidden; text-overflow:ellipsis; }
}
@media(max-width:350px) {
  #hud:has(#trip-review-hud:not([hidden])) .map-card { width:66px; }
  .hud-head:has(#trip-review-hud:not([hidden])) { max-inline-size:calc(100vw - var(--side) - var(--right) - 118px); }
}
@media (orientation:landscape) and (max-height:420px) {
  #hud:has(#trip-review-notice:not([hidden])) :is(#arrival-hud,.tutorial-card) { margin-top:0; }
  #hud:has(#arrival-hud:not([hidden]),.tutorial-card:not([hidden])) .trip-review-notice {
    left:50%; transform:translateX(-50%); width:min(258px,38vw);
  }
}
@media(prefers-reduced-motion:reduce) {
  .trip-review-hud .trip-review-emblem,.trip-review-notice { animation:none!important; }
}
.reduced :is(.trip-review-hud .trip-review-emblem,.trip-review-notice) { animation:none!important; }
