:root {
  color-scheme: light;
  background: #fffaf0;
  color: #244d29;
  font: 14px "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --green: #315f32;
  --soft: #e8edcf;
  --line: #e5dcc4;
  --yellow: #ffda70;
  --game-safe-left: env(safe-area-inset-left, 0px);
  --game-safe-right: env(safe-area-inset-right, 0px);
  --game-safe-top: env(safe-area-inset-top, 0px);
  --game-safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--link-visible-height, 100dvh);
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { padding-inline: var(--game-safe-left) var(--game-safe-right); background: #fffaf0; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible { outline: 3px solid #da9c25; outline-offset: 2px; }
a { color: inherit; }
main {
  width: min(620px, calc(100% - 12px));
  height: 100%;
  min-height: 0;
  margin: auto;
  padding: max(4px, var(--game-safe-top)) 0 max(4px, var(--game-safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 5px;
  touch-action: none;
  overscroll-behavior: none;
  container: link-game / size;
}
nav {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  gap: 6px;
  align-items: center;
  height: 34px;
  flex: none;
}
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/garden-leaves.png') center bottom / 100% auto no-repeat;
  opacity: .2;
  pointer-events: none;
}
nav a { text-decoration: none; }
.back { display: flex; align-items: center; gap: 2px; height: 100%; white-space: nowrap; font-size: 11px; color: #6a7b59; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.brand-flower { width: 25px; height: 25px; flex: none; object-fit: contain; }
h1 { min-width: 0; margin: 0; font-size: 20px; font-weight: 850; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility { display: flex; justify-content: flex-end; gap: 4px; }
.utility button { min-height: 30px; padding: 3px 2px; border: 0; border-radius: 7px; background: transparent; color: #63774e; font-size: 10px; white-space: nowrap; }
.utility button:hover { background: #edf0dc; }
.game-shell {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 42px 16px minmax(0, 1fr) 42px 32px;
  gap: 4px 0;
  padding: 2px 4px 0;
}
.stats { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(66px, 1.2fr) minmax(78px, .65fr); gap: 10px; align-items: center; min-width: 0; }
.stats > * { min-width: 0; }
.stat-name { display: block; color: #788267; font-size: 10px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.level-stat { height: 100%; min-height: 0; padding: 3px 6px; border: 1px solid #d8dfbb; border-radius: 12px; background: #e5ebcc; color: #244d26; box-shadow: 0 2px 0 #d7dfbb; text-align: center; }
.level-stat:disabled { opacity: 1; }
.level-stat:disabled .stat-name > span { visibility: hidden; }
.level-stat .stat-name { font-size: 9px; color: #65744c; }
.level-stat .stat-name > span { margin-left: 4px; }
#level-label { display: block; margin-top: 2px; font-size: 13px; font-weight: 850; line-height: 17px; white-space: nowrap; letter-spacing: -.25px; font-variant-numeric: tabular-nums; }
body:not([data-challenge="none"]) .level-stat, .level-grid button.challenge { border-color: #edc56b; background: #fff0c7; color: #725114; }
.clock-stat { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.clock-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 5px; line-height: 1; }
.clock-heading > .stat-name { font-size: 9px; }
#time-label { flex: none; color: #31532b; font-family: system-ui, sans-serif; font-size: 16px; font-weight: 800; line-height: 23px; font-variant-numeric: tabular-nums; }
#timer { flex: none; height: 6px; overflow: hidden; border-radius: 20px; background: #e7e4d1; }
#time-fill { height: 100%; width: 100%; border-radius: inherit; background: #f6a04c; transition: width .2s linear; }
#timer.urgent #time-fill { background: #e67d40; }
.score-stat { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding-left: 8px; border-left: 1px solid #ded7bf; }
.score-stat > .stat-name { font-size: 9px; }
#score { display: block; max-width: 100%; color: #31532b; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 800; line-height: 24px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.score-stat.combo-on > .stat-name { color: #a66213; font-weight: 800; }
.above { grid-column: 1; grid-row: 2; display: flex; justify-content: space-between; align-items: center; gap: 5px; min-width: 0; padding: 0 2px; font-size: 10px; line-height: 14px; color: #697a48; }
.above > span:first-child { font-weight: 600; white-space: nowrap; }
.hint-count { white-space: nowrap; color: #697a48; }
.hint-count strong { display: inline-block; min-width: 14px; padding: 0 3px; margin-left: 2px; border-radius: 5px; background: #dfe9ab; color: #355721; text-align: center; }
#viewport { grid-column: 1; grid-row: 3; width: 100%; height: 100%; min-height: 0; min-width: 0; padding: 4px 3px; display: flex; justify-content: center; align-items: center; overflow: visible; touch-action: none; overscroll-behavior: none; }
#field { position: relative; flex: none; min-width: 0; max-width: 100%; max-height: 100%; margin: 0; }
#board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(14, minmax(0, 1fr)); outline: 1px solid #cfd6c5; background: #fffdf7; box-shadow: 0 2px 5px #61533308; touch-action: none; }
.tile { display: grid; place-items: center; position: relative; min-width: 0; min-height: 0; padding: 1px; border: 1px solid #e1e4d9; border-radius: 0; background: #fffefa; touch-action: manipulation; }
.animal { display: block; width: var(--animal-size, 100%); height: var(--animal-size, 100%); max-width: 100%; max-height: 100%; aspect-ratio: 1; background: url('assets/animals.401b2a27b2a5.png') no-repeat; background-size: 800% 800%; pointer-events: none; }
.tile.empty { cursor: default; background: #fcfbf5; }
.tile.selected { z-index: 1; border-radius: 9px; background: #fff2b5; }
.tile.selected::after { content: ""; position: absolute; inset: 1px; border: 3px solid #ffb300; border-radius: 8px; box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #fff; z-index: 3; pointer-events: none; }
.tile.hinted { z-index: 2; outline: 3px solid #75ac48; outline-offset: -3px; animation: hint .65s ease-in-out infinite alternate; }
.tile.matched .animal { opacity: .1; transition: opacity .12s; }
.tile.settling { z-index: 2; will-change: transform; }
.tile.selected.settling { z-index: 4; }
#lines { position: absolute; inset: -4.2857% -7.5%; width: 115%; height: 108.5714%; pointer-events: none; overflow: visible; z-index: 3; }
#connection { fill: none; stroke: #65b93b; stroke-width: .055; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .03px #9dff88); }
#veil { position: absolute; inset: 0; background: #f6f8efed; backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 4; }
#resume { border: 0; border-radius: 14px; padding: 14px 24px; background: var(--green); color: #fff; box-shadow: 0 5px 15px #315b4726; font-weight: 700; }
#resume span { font-size: 10px; margin-left: 8px; }
.controls { grid-column: 1; grid-row: 4; min-width: 0; min-height: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px; gap: 8px; align-items: center; padding: 0 2px; }
.controls > button { display: flex; align-items: center; justify-content: center; gap: 6px; height: calc(100% - 3px); min-height: 0; padding: 0 4px; border: 1px solid #d1dbaf; border-radius: 13px; background: #e1e8c4; color: #315829; box-shadow: 0 3px 0 #cbd6a7; font-size: 14px; font-weight: 800; white-space: nowrap; }
.controls > #hint { background: #ffdc75; border-color: #f3c856; color: #654711; box-shadow: 0 3px 0 #edc354; }
.controls > button:hover { filter: brightness(.98); }
.controls > button::before, .extras > button::before { content: ""; display: block; flex: none; width: 20px; height: 20px; background: currentColor; mask: var(--control-icon) center / contain no-repeat; -webkit-mask: var(--control-icon) center / contain no-repeat; pointer-events: none; }
#pause { --control-icon: url('icons/player-pause.svg'); }
body:has(#veil:not([hidden])) #pause { --control-icon: url('icons/player-play.svg'); }
#hint { --control-icon: url('icons/bulb.svg'); }
#message { display: grid; place-items: center; position: relative; min-width: 0; min-height: 0; margin: 0; padding: 0 2px; color: #74805c; font-size: 10px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
#message-text, #combo-effect { grid-area: 1 / 1; min-width: 0; }
#message:has(#combo-effect:not([hidden])) #message-text { visibility: hidden; }
#combo-effect { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 2px 7px; border: 1px solid #d18c26; border-radius: 12px; background: linear-gradient(#fff2b8, #ffca63); color: #68390e; box-shadow: 0 2px 5px #8e531a42; white-space: nowrap; pointer-events: none; transform-origin: center; }
#combo-label { font-size: 17px; letter-spacing: -.03em; line-height: 1.1; }
#combo-multiplier { padding: 0 4px; border-radius: 6px; background: #fff0bc; font-size: 11px; font-weight: 800; }
.extras { grid-column: 1; grid-row: 5; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding: 0 2px; }
.extras > button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 100%; padding: 2px; border: 0; border-right: 1px solid #dfd8bf; border-radius: 0; background: none; color: #416536; font-size: 11px; font-weight: 650; white-space: nowrap; }
.extras > button:last-child { border-right: 0; }
.extras > button::before { width: 17px; height: 17px; }
.extras > button:hover { background: #edf0dc; }
#rank { --control-icon: url('icons/trophy.svg'); }
#restart { --control-icon: url('icons/refresh.svg'); }
#zoom { --control-icon: url('icons/arrows-maximize.svg'); }
#help { --control-icon: url('icons/book-2.svg'); }
#sponsors { flex: none; display: flex; justify-content: center; align-items: stretch; gap: 6px; width: 100%; height: 24px; margin: 0; padding: 0 4px; }
#sponsors a { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; max-width: 180px; padding: 0 4px; border: 1px solid #e6e3d0; border-radius: 6px; background: #f7f5e9; color: #798363; text-decoration: none; white-space: nowrap; font-size: 9px; overflow: hidden; }
#sponsors small { margin-left: 3px; color: #909b7c; font-size: 8px; }
.orientation { display: none; }
.storage-warning { color: #b77224 !important; }
dialog { position: fixed; inset: calc(var(--link-visible-height, 100dvh) / 2) 0 auto; transform: translateY(-50%); width: min(560px, calc(100% - 24px)); max-height: calc(var(--link-visible-height, 100dvh) - 20px); margin: 0 auto; padding: 20px; border: 1px solid #dfdfc7; border-radius: 20px; background: #fffaf0; color: #31512c; box-shadow: 0 24px 80px #263e3626; overflow: auto; }
dialog[open] { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
dialog::backdrop { background: #263e3673; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e6e2cc; }
#panel-title { min-width: 0; margin: 0; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
#close-panel { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #edf1df; color: #65784d; font-size: 24px; }
#panel-content { min-width: 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#panel-content p { color: #65764f; }
.level-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.level-grid button { min-width: 0; min-height: 38px; padding: 0; border: 1px solid #dce3ce; border-radius: 9px; background: #f1f4e7; color: #65784c; font-size: 12px; }
.level-grid button.current { border-color: #edc14e; background: #fff0b8; color: #775e1f; }
.level-grid button.completed { background: #e4efda; color: #4e7443; }
.level-controls { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.level-controls button, .action { display: inline-block; max-width: 100%; padding: 10px 13px; border: 0; border-radius: 10px; background: #3b6537; color: #fff; font-size: 12px; text-decoration: none; cursor: pointer; }
.level-controls input { font: inherit; width: 75px; padding: 8px; border: 1px solid #d9e2ce; border-radius: 8px; background: #fff; color: #405b39; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.action.secondary { background: #e8edcf; color: #48623a; }
.rank-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.rank-table th, .rank-table td { padding: 11px 5px; border-bottom: 1px solid #e6ebde; text-align: left; overflow-wrap: anywhere; }
.rank-table th { color: #758260; font-weight: 500; }
.rank-table th:nth-child(2) { width: 40%; }
@keyframes hint { to { filter: brightness(1.2); } }
@media (max-width: 420px) {
  nav { grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 4px; }
  h1 { font-size: 18px; }
  .brand { gap: 4px; }
  .brand-flower { width: 23px; height: 23px; }
  .stats { gap: 8px; }
  .clock-heading > .stat-name { display: none; }
  .clock-heading { justify-content: flex-end; }
  .controls { grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 6px; }
  .extras > button { font-size: 10px; gap: 3px; }
  .extras > button::before { width: 15px; height: 15px; }
  .level-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  dialog { padding: 16px; }
  #panel-title { font-size: 19px; }
}
@media (max-width: 350px) {
  .stats { grid-template-columns: 120px minmax(60px, 1fr) 70px; gap: 7px; }
  #level-label { font-size: 12px; }
  #score { font-size: 16px; }
  #combo-label { font-size: 15px; }
  #combo-effect { gap: 3px; padding-inline: 5px; }
}
@container link-game (max-height: 650px) {
  .game-shell { grid-template-rows: 38px 14px minmax(0, 1fr) 36px 28px; gap: 3px 0; }
  .controls > button { font-size: 13px; border-radius: 11px; }
  .controls > button::before { width: 18px; height: 18px; }
  #sponsors { height: 22px; }
}
/* The logical 8x14 board is rotated by placement, without changing replay coordinates. */
body[data-board-layout="landscape"] main { width: min(1200px, calc(100% - 12px)); }
body[data-board-layout="landscape"] nav::before { background-size: min(700px, 100%) auto; opacity: .15; }
body[data-board-layout="landscape"] .game-shell {
  --side-width: clamp(146px, 20vw, 174px);
  --side-gap: 7px;
  --stats-gap: 7px;
  --level-height: 40px;
  --clock-height: 30px;
  --score-height: 26px;
  --meta-height: 16px;
  --button-height: 34px;
  --feedback-height: 28px;
  --control-gap: 5px;
  --extra-height: 25px;
  --extra-top: 6px;
  grid-template-columns: minmax(0, 1fr) var(--side-width);
  grid-template-rows: auto var(--meta-height) minmax(0, 1fr) auto auto;
  gap: var(--side-gap) 12px;
  padding: 3px 8px 1px 3px;
}
body[data-board-layout="landscape"] #viewport { grid-column: 1; grid-row: 1 / -1; padding: 4px 4px; }
body[data-board-layout="landscape"] #board { grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); }
body[data-board-layout="landscape"] .tile { grid-column: calc(14 - var(--tile-y)); grid-row: calc(var(--tile-x) + 1); }
body[data-board-layout="landscape"] #lines { inset: -7.5% -4.2857%; width: 108.5714%; height: 115%; }
body[data-board-layout="landscape"] .stats { grid-column: 2; grid-row: 1; align-self: start; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--level-height) var(--clock-height) var(--score-height); gap: var(--stats-gap); }
body[data-board-layout="landscape"] .clock-stat { padding-inline: 3px; }
body[data-board-layout="landscape"] .clock-heading { justify-content: space-between; margin-bottom: 3px; }
body[data-board-layout="landscape"] #time-label { line-height: 22px; }
body[data-board-layout="landscape"] #timer { height: 5px; }
body[data-board-layout="landscape"] .clock-heading > .stat-name { display: block; }
body[data-board-layout="landscape"] .score-stat { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 3px; border: 0; }
body[data-board-layout="landscape"] .above { grid-column: 2; grid-row: 2; font-size: 9px; }
body[data-board-layout="landscape"] .controls { grid-column: 2; grid-row: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: var(--button-height) var(--feedback-height); gap: var(--control-gap) 8px; padding: 0; }
body[data-board-layout="landscape"] #pause { grid-column: 1; grid-row: 1; }
body[data-board-layout="landscape"] #hint { grid-column: 2; grid-row: 1; }
body[data-board-layout="landscape"] .controls > button { height: calc(100% - 3px); font-size: 12px; gap: 4px; border-radius: 10px; }
body[data-board-layout="landscape"] .controls > button::before { width: 17px; height: 17px; }
body[data-board-layout="landscape"] #message { grid-column: 1 / -1; grid-row: 2; align-self: stretch; font-size: 10px; line-height: 1.2; }
body[data-board-layout="landscape"] .extras { grid-column: 2; grid-row: 5; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, var(--extra-height)); gap: 2px 6px; padding: var(--extra-top) 0 0; border-top: 1px solid #e9e4d0; }
body[data-board-layout="landscape"] .extras > button { justify-content: flex-start; border: 0; font-size: 10px; gap: 4px; }
body[data-board-layout="landscape"] .extras > button::before { width: 15px; height: 15px; }
@container link-game (max-height: 350px) {
  body[data-board-layout="landscape"] nav { height: 28px; }
  body[data-board-layout="landscape"] .utility button { min-height: 26px; }
  body[data-board-layout="landscape"] .game-shell { --side-width: 150px; --side-gap: 4px; --stats-gap: 4px; --level-height: 28px; --clock-height: 24px; --score-height: 21px; --meta-height: 14px; --button-height: 29px; --feedback-height: 25px; --control-gap: 4px; --extra-height: 21px; --extra-top: 4px; column-gap: 9px; padding-block: 1px; }
  body[data-board-layout="landscape"] .level-stat > .stat-name { display: none; }
  body[data-board-layout="landscape"] #level-label { margin: 0; font-size: 12px; }
  body[data-board-layout="landscape"] #time-label { font-size: 14px; line-height: 18px; }
  body[data-board-layout="landscape"] .clock-heading { margin-bottom: 1px; }
  body[data-board-layout="landscape"] #timer { height: 5px; }
  body[data-board-layout="landscape"] #score { font-size: 16px; line-height: 21px; }
  body[data-board-layout="landscape"] #combo-label { font-size: 15px; }
  body[data-board-layout="landscape"] #sponsors { height: 20px; }
}
@container link-game (max-height: 270px) {
  body[data-board-layout="landscape"] nav { height: 24px; }
  body[data-board-layout="landscape"] .utility button { min-height: 22px; }
  body[data-board-layout="landscape"] .game-shell { --side-width: 146px; --side-gap: 2px; --stats-gap: 2px; --level-height: 22px; --clock-height: 21px; --score-height: 18px; --meta-height: 12px; --button-height: 25px; --feedback-height: 21px; --control-gap: 2px; --extra-height: 17px; --extra-top: 3px; padding: 0 5px 0 2px; }
  body[data-board-layout="landscape"] .level-stat { padding-block: 1px; border-radius: 8px; }
  body[data-board-layout="landscape"] #level-label { font-size: 11px; line-height: 17px; }
  body[data-board-layout="landscape"] #time-label { font-size: 12px; line-height: 14px; }
  body[data-board-layout="landscape"] #timer { height: 4px; }
  body[data-board-layout="landscape"] #score { font-size: 14px; line-height: 18px; }
  body[data-board-layout="landscape"] .controls > button { font-size: 11px; }
  body[data-board-layout="landscape"] .controls > button::before { width: 14px; height: 14px; }
  body[data-board-layout="landscape"] #message { font-size: 9px; line-height: 1.1; }
  body[data-board-layout="landscape"] #combo-label { font-size: 14px; }
  body[data-board-layout="landscape"] #combo-effect { padding-block: 1px; }
  body[data-board-layout="landscape"] .extras > button { font-size: 9px; }
  body[data-board-layout="landscape"] .extras > button::before { width: 13px; height: 13px; }
  body[data-board-layout="landscape"] #sponsors { height: 18px; }
}
@container link-game (max-height: 220px) {
  body[data-board-layout="landscape"] nav { height: 22px; }
  body[data-board-layout="landscape"] .game-shell { --side-gap: 0px; --stats-gap: 1px; --level-height: 18px; --clock-height: 17px; --score-height: 16px; --button-height: 23px; --feedback-height: 22px; --control-gap: 1px; --extra-height: 14px; --extra-top: 1px; }
  body[data-board-layout="landscape"] #level-label { font-size: 10px; line-height: 14px; }
  body[data-board-layout="landscape"] #time-label { font-size: 11px; line-height: 14px; }
  body[data-board-layout="landscape"] #score { font-size: 12px; line-height: 16px; }
  body[data-board-layout="landscape"] .clock-heading { margin-bottom: 0; }
  body[data-board-layout="landscape"] #timer { height: 3px; }
  body[data-board-layout="landscape"] #combo-label { font-size: 12px; }
  body[data-board-layout="landscape"] #combo-multiplier { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ranked retry stays beside pause; unused hint is replaced without adding height. */
#rank-restart[hidden] { display: none; }
#rank-restart { --control-icon: url('icons/refresh.svg'); }
body[data-ranked="true"] #hint, body[data-ranked="true"] #restart { display: none; }
body[data-ranked="true"] .controls { grid-template-columns: 72px 96px minmax(0, 1fr); }
body[data-ranked="true"] #rank-restart { grid-column: 2; grid-row: 1; font-size: 12px; }
body[data-ranked="true"] #message { grid-column: 3; grid-row: 1; }
body[data-ranked="true"] .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-ranked="true"][data-board-layout="landscape"] .controls { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
body[data-ranked="true"][data-board-layout="landscape"] #message { grid-column: 1 / -1; grid-row: 2; }
body[data-ranked="true"][data-board-layout="landscape"] .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
