/* Position the reading over its own word instead of browser ruby justification.
   Keep ruby/rt semantics while reserving enough space for long place readings. */
ruby.place-ruby {
  --ruby-size:max(8px,.5em);
  position:relative;display:inline-block;vertical-align:baseline;
  min-inline-size:calc(var(--ruby-chars) * var(--ruby-size));
  margin-block-start:calc(var(--ruby-size) * 1.4);
  line-height:1.15;white-space:nowrap;text-align:center;
  letter-spacing:0;text-indent:0;
}
ruby.place-ruby > rt {
  position:absolute;display:block;inset:auto auto 100% 50%;
  transform:translateX(-50%);margin:0 0 2px;padding:0;
  width:max-content;max-width:none;white-space:nowrap;
  font-family:var(--reading-font);font-size:var(--ruby-size);font-weight:700;
  line-height:1.2;letter-spacing:0;word-spacing:0;text-align:center;
  color:inherit;text-shadow:none;
}
.room-screen .section-top h1 {
  font-family:var(--reading-font);font-weight:800;
  line-height:1.5;letter-spacing:.01em;overflow:visible;
}
.room-screen .section-top h1 .place-ruby {--ruby-size:max(12px,.5em)}
.room-screen .section-top>div:first-child {min-width:0}
.room-screen .section-top .dice-result {flex-shrink:0}
.modal h2 .place-ruby,.modal h3 .place-ruby {--ruby-size:max(10px,.5em)}
.route-v2 .map-node>span {line-height:1.5;padding-top:4px;padding-bottom:4px}
.route-v2 .current-place strong {line-height:1.6}
.route-v2 .current-place>span {display:block;line-height:1.7}
.route-v2 .current-place>span .icon {vertical-align:middle}
.game-card .card-place {
  height:auto;min-height:30px;line-height:1.5;align-items:flex-end;
  flex-wrap:wrap;row-gap:3px;padding-left:0;
}
.game-card .card-region:has(.place-ruby) {height:auto;min-height:31px;line-height:1.4;margin-top:0}
.game-card .card-region .place-ruby {--ruby-size:8px}
.hand .game-card .card-region:has(.place-ruby) {min-height:23px}
.hand .game-card .card-region .place-ruby {--ruby-size:6px}
.game-card .card-place .card-location {
  display:block;font:inherit;color:inherit;background:none;border:0;
  padding:0;white-space:normal;line-height:1.5;
}
.game-card .card-place .place-ruby {--ruby-size:8px;margin-inline:1px}
.game-card .card-title {display:flex;align-items:center;justify-content:center}
.game-card .card-title strong {display:block;width:100%;line-height:1.5}
.game-card .card-title .place-ruby {--ruby-size:9px}
.game-card.large .card-title .place-ruby {--ruby-size:11px}
.hand .game-card .card-title .place-ruby {--ruby-size:7px}
.game-card.large .card-place {min-height:34px}
.game-card.large .card-place .place-ruby {--ruby-size:9px}
.hand .game-card .card-place {min-height:21px;line-height:1.25;gap:3px;margin-bottom:3px}
.hand .game-card .card-place .place-ruby {--ruby-size:6px;margin-inline:0}
.arrival-reading {letter-spacing:.04em;word-spacing:0}
@media(max-width:760px) {
  .room-screen .section-top {gap:12px;flex-wrap:wrap}
  .room-screen .section-top h1 {font-size:23px;line-height:1.55}
  .room-screen .section-top .dice-result {margin-left:auto}
  .route-v2 .current-place {grid-template-columns:1fr}
  .route-v2 .current-place>span {grid-column:1;grid-row:auto;margin-top:3px}
  .route-v2 .map-node>span {max-width:112px}
  .game-card .card-place {column-gap:5px;row-gap:3px}
}
