/* PowerPoint「メニュー画面.pptx」の配色 */
:root {
  --green: #005131;
  --green-dark: #003a23;
  --green-glow: #3ccf3c;
  --yellow: #ffff66;
  --head: #606060;
  --panel: #f2f2f2;
  --frame: #a6a6a6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --danger: #c62828;
  --radius: 0.6rem;
}

/* iPad 1024〜1366px 幅で文字とボタンが同じ比率に見えるよう、幅に合わせて基準サイズを伸縮 */
html {
  font-size: calc(10px + 0.5vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--green);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  /* 店頭用：ズーム・長押しメニュー・文字選択・画面のバウンドを無効化 */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

#app {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.screen {
  width: 100%;
  height: 100%;
}

/* ---------- 共通ボタン（PPTの立体ボタン） ---------- */
.btn {
  min-width: 9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.08s, filter 0.08s;
}

.btn:active:not(:disabled) {
  transform: translateY(2px);
  filter: brightness(0.9);
}

.btn--green {
  color: var(--yellow);
  background: linear-gradient(#1b7a4f, var(--green) 55%, var(--green-dark));
  box-shadow: 0 0 0.9rem rgba(60, 207, 60, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--gray {
  color: var(--green);
  background: linear-gradient(#ffffff, #d9d9d9 55%, #bfbfbf);
  box-shadow: 0 0 0.9rem rgba(60, 207, 60, 0.75), inset 0 1px 0 #fff;
}

/* 「次をスキャン」：続けて検索する主ボタン */
.btn--yellow {
  color: var(--green);
  background: linear-gradient(#ffff99, var(--yellow) 55%, #e6e64d);
  box-shadow: 0 0 0.9rem rgba(60, 207, 60, 0.75), inset 0 1px 0 #fff;
}

.btn--plain {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- START 画面（スライド1） ---------- */
.start {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  color: #fff;
}

.start__logo {
  position: absolute;
  top: 4%;
  right: 4%;
  width: 7.5rem;
  height: 7.5rem;
}

.start__title {
  margin: 0;
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.start__callout {
  position: relative;
  width: 62%;
  padding: 1.3rem 1rem;
  border: 3px solid var(--yellow);
  font-size: 1.9rem;
  text-align: center;
}

/* 吹き出しの下矢印：黄色の枠線だけの矢印 */
/* 吹き出しの下矢印（PPT の「吹き出し: 下矢印」）：枠の下辺から伸びる、黄色の線だけの矢印 */
.start__arrow {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 4.8rem;
  height: 3.2rem;
  transform: translateX(-50%);
}

.start__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.start__button {
  width: 70%;
  margin-top: 1.6rem;
  padding: 1.6rem;
  font-size: 3.4rem;
  letter-spacing: 0.12em;
}

.start__status {
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.start__status--error {
  color: var(--yellow);
}

/* ---------- スキャン画面（スライド2） ---------- */
.scan {
  position: relative;
  background: #000;
  overflow: hidden;
}

/* html5-qrcode が style="position: relative" を直接書き込むため、!important で全面表示を保つ
   （上書きされると映像が 16:9 の高さで止まり、黄色い枠とずれる） */
.scan__reader {
  position: absolute !important;
  inset: 0;
}

/* html5-qrcode が一時停止中に出す英語の帯（"Scanner paused"）は使わない。案内はアプリ側で表示する */
.scan__reader > div {
  display: none !important;
}

/* html5-qrcode が作る video を全面に広げる */
.scan__reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.scan__guide {
  position: absolute;
  top: 50%;
  left: 50%;
  /* JAN のバーコード（数字込みで横:縦 ≒ 1.4:1）がすっぽり入る比率 */
  width: 56%;
  height: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.scan__guide::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: rgba(255, 60, 60, 0.85);
  animation: scanline 1.6s ease-in-out infinite alternate;
}

@keyframes scanline {
  from { transform: translateY(-3.5rem); }
  to { transform: translateY(3.5rem); }
}

.scan__title {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.scan__actions {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.scan__message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 50%;
  padding: 1.6rem 2rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  line-height: 1.6;
}

.scan__message strong {
  display: block;
  color: var(--yellow);
  font-size: 2rem;
}

/* ---------- 検索結果・関連商品（スライド3・4） ---------- */
.result {
  padding: 1.2rem 1.6rem;
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1.4rem 1.2rem;
  background: var(--panel);
  border: 0.55rem solid var(--frame);
}

.result__header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1rem;
}

.result__badge {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.35rem 1.6rem;
  background: var(--green);
  color: var(--yellow);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result__jan {
  flex-shrink: 0;
  text-align: center;
  font-size: 1.5rem;
}

.result__jan .label {
  display: block;
  padding: 0.15rem 1.5rem;
  background: var(--head);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.result__buttons {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.result__buttons .btn {
  min-width: 0;
  padding: 0.65rem 1.1rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 商品情報（見出し帯＋値） */
.info {
  display: grid;
  grid-template-columns: 2.6fr 1.5fr 1.7fr 1.3fr 1.4fr;
  font-size: 1.25rem;
}

.info .head {
  padding: 0.15rem 0.6rem;
  background: var(--head);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.info .value {
  padding: 0.45rem 0.6rem;
  min-height: 2.4rem;
  overflow-wrap: anywhere;
}

.info .value--num,
.info .value--center {
  text-align: center;
}

/* 店頭で一番知りたい売価・在庫・棚番を大きく */
.info .value--key {
  padding: 0.25rem 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
}

.span-2 {
  grid-column: span 2;
}

.media {
  display: flex;
  flex-direction: column;
  margin-top: 0.6rem;
}

.media .head {
  padding: 0.15rem 0.6rem;
  background: var(--head);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.media__body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.5rem;
  padding: 0.5rem;
}

.media__body .thumb {
  width: 45%;
  height: 100%;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.6rem 0 0.3rem;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.section-hint {
  font-size: 0.95rem;
  color: var(--muted);
}

/* 一覧表：表の中だけスクロール */
.table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.3rem 0.4rem;
  background: var(--head);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid #dcdcdc;
  vertical-align: middle;
}

.table .num {
  text-align: right;
  white-space: nowrap;
}

.table .center {
  text-align: center;
  white-space: nowrap;
}

.table .nowrap {
  white-space: nowrap;
}

.table .name {
  min-width: 12rem;
}

.table .model {
  min-width: 6.5rem;
}

.table .color {
  min-width: 5rem;
}

.table .img-cell {
  width: 6.8rem;
  padding: 0.2rem;
}

/* 指で押しやすい高さ（44px 以上）にする */
.table .thumb {
  width: 6.4rem;
  height: 2.9rem;
}

.table .strong {
  font-weight: 700;
}

.table .row--link {
  cursor: pointer;
}

.table .row--link:active td {
  background: #e3f1e8;
}

.table .chevron {
  width: 1.4rem;
  padding: 0;
  color: var(--muted);
  font-size: 1.6rem;
  text-align: center;
}

/* 在庫なしの行は薄く（在庫の × は赤のまま） */
.table .row--out td {
  color: #9a9a9a;
}

.table .row--out .thumb {
  opacity: 0.5;
}

.table .group-row td {
  padding: 0.35rem 0.6rem;
  background: #e3f1e8;
  color: var(--green);
  font-weight: 700;
}

.table__empty {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.stock--in {
  color: var(--green);
}

.stock--out,
.table .row--out .stock--out {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- 画像（タップで拡大） ---------- */
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border-radius: 0.25rem;
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb--empty {
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 4rem;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  animation: fadein 0.15s ease-out;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 66vh;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  touch-action: none;
}

/* 小さい元画像でも枠いっぱいまで広げて表示する */
.lightbox__stage img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}

.lightbox__caption {
  max-width: 90vw;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.5;
}

.lightbox__caption small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.lightbox__hint {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox__close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 1.2rem);
  right: calc(env(safe-area-inset-right) + 1.6rem);
}

/* ---------- テンキー・管理メニュー ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.modal__box {
  width: 30rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.modal__title {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--green);
}

.keypad__display {
  height: 3.6rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  font-size: 2.1rem;
  line-height: 3.4rem;
  text-align: right;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.keypad__display--placeholder {
  color: #b0b0b0;
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 0;
}

.keypad__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.keypad__key {
  height: 4rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 2px 0 #c8c8c8;
}

.keypad__key:active {
  background: #e3e3e3;
}

.keypad__key--sub {
  font-size: 1.2rem;
  color: var(--muted);
}

.modal__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.modal__actions .btn {
  min-width: 0;
  flex: 1;
}

.admin__rows {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.9;
}

.admin__rows dt {
  float: left;
  clear: left;
  width: 9rem;
  color: var(--muted);
}

.admin__rows dd {
  margin-left: 9rem;
}

.admin__message {
  min-height: 1.6rem;
  margin: 0;
  color: var(--green);
  text-align: center;
}

/* ---------- 放置タイムアウトの予告 ---------- */
.idle-warning {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: fadein 0.15s ease-out;
}

.idle-warning__box {
  padding: 2rem 3rem;
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.idle-warning__text {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.idle-warning__count {
  margin: 0 0 1.2rem;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- 縦向きのときの案内 ---------- */
#rotate-notice {
  display: none;
}

@media (orientation: portrait) {
  #rotate-notice {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--green);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
  }

  .rotate-notice__icon {
    font-size: 6rem;
    color: var(--yellow);
    animation: rotate-hint 2s ease-in-out infinite;
  }
}

@keyframes rotate-hint {
  0%, 30% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

/* ==========================================================
   iPhone テスト版（phone.html）：縦長の画面用のレイアウト
   部品・処理は iPad 版と共通。html[data-device="phone"] のときだけ効く
   ========================================================== */
html[data-device="phone"] {
  font-size: 15px;
}

/* START */
html[data-device="phone"] .start {
  gap: 2.2rem;
  padding: 0 1rem;
}

html[data-device="phone"] .start__logo {
  width: 4.5rem;
  height: 4.5rem;
}

html[data-device="phone"] .start__title {
  font-size: 2.8rem;
}

html[data-device="phone"] .start__callout {
  width: 92%;
  padding: 1rem 0.5rem;
  font-size: 1.15rem;
}

html[data-device="phone"] .start__button {
  width: 92%;
  padding: 1.2rem;
  font-size: 2.4rem;
}

/* スキャン */
html[data-device="phone"] .scan__title {
  top: 8%;
  padding: 0 1rem;
  font-size: 1.3rem;
}

html[data-device="phone"] .scan__guide {
  width: 84%;
  height: 28%;
}

html[data-device="phone"] .scan__actions {
  bottom: 8%;
  gap: 1rem;
  padding: 0 1rem;
}

html[data-device="phone"] .scan__actions .btn {
  flex: 1;
  min-width: 0;
}

html[data-device="phone"] .scan__message {
  min-width: 84%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

html[data-device="phone"] .scan__message strong {
  font-size: 1.4rem;
}

/* 検索結果・関連商品 */
html[data-device="phone"] .result {
  padding: 0.4rem;
}

/*
 * iPhone は画面の高さが足りず、Safari のツールバーでさらに狭くなる。
 * 一覧だけをスクロールすると一覧の高さが 0 になって見えないため、画面全体をスクロールさせる。
 */
html[data-device="phone"] .panel {
  padding: 0.7rem;
  border-width: 0.3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html[data-device="phone"] .panel > * {
  flex-shrink: 0;
}

html[data-device="phone"] .table-wrap {
  flex: none;
  overflow: visible;
}

html[data-device="phone"] .result__header {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

html[data-device="phone"] .result__badge {
  padding: 0.3rem 0.9rem;
  font-size: 1.4rem;
}

html[data-device="phone"] .result__jan {
  font-size: 1.1rem;
}

html[data-device="phone"] .result__jan .label {
  font-size: 0.85rem;
}

/* ボタンは1段に等分して並べる */
html[data-device="phone"] .result__buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  margin-left: 0;
}

html[data-device="phone"] .result__buttons .btn {
  padding: 0.75rem 0.2rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* よく使う「次をスキャン」は2つ分の幅にする */
html[data-device="phone"] .result__buttons .btn--yellow {
  grid-column: span 2;
}

html[data-device="phone"] .media {
  margin-top: 0.5rem;
}

html[data-device="phone"] .media__body {
  height: 5rem;
}

html[data-device="phone"] .media__body .thumb {
  width: 70%;
}

html[data-device="phone"] .section-title {
  font-size: 1.2rem;
}

html[data-device="phone"] .section-hint {
  font-size: 0.85rem;
}

/* 商品情報（PhoneProductInfo） */
.pinfo__name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.pinfo__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.pinfo__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.2rem;
  border-radius: 0.4rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d9d9d9;
}

.pinfo__label {
  font-size: 0.8rem;
  color: var(--muted);
}

.pinfo__stat strong {
  font-size: 1.5rem;
  color: var(--green);
  white-space: nowrap;
}

.pinfo__rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  margin: 0;
  font-size: 0.95rem;
}

.pinfo__rows dt {
  color: var(--muted);
}

.pinfo__rows dd {
  margin: 0;
}

/* 一覧のカード（ProductTable の iPhone 版） */
.cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cards__heading {
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 0.3rem;
  background: #e3f1e8;
  color: var(--green);
  font-weight: 700;
}

.card {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 4.8rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 0 #d9d9d9;
}

.card--link {
  cursor: pointer;
}

.card--link:active {
  background: #e3f1e8;
}

.card__thumb {
  width: 4.8rem;
  height: 3rem;
}

.card__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.card__sub,
.card__jan {
  font-size: 0.8rem;
  color: var(--muted);
}

.card__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.card__price {
  font-size: 1.05rem;
  font-weight: 700;
}

.card__shelf strong {
  font-size: 1.05rem;
  color: var(--green);
}

.card--out .card__name,
.card--out .card__sub,
.card--out .card__price,
.card--out .card__shelf,
.card--out .card__shelf strong {
  color: #9a9a9a;
}

.card--out .card__thumb {
  opacity: 0.5;
}

/* テンキー・拡大表示・予告 */
html[data-device="phone"] .modal__box {
  width: 92vw;
  padding: 1rem;
}

html[data-device="phone"] .keypad__key {
  height: 3.6rem;
}

html[data-device="phone"] .lightbox__stage {
  width: 94vw;
  height: 56vh;
}

html[data-device="phone"] .lightbox__caption {
  padding: 0 1rem;
  font-size: 1.1rem;
}

html[data-device="phone"] .idle-warning__box {
  width: 88vw;
  padding: 1.5rem 1rem;
}

html[data-device="phone"] .idle-warning__text {
  font-size: 1.2rem;
}

/* iPhone は縦向きで使う。横向きにしたときに案内を出す */
@media (orientation: portrait) {
  html[data-device="phone"] #rotate-notice {
    display: none;
  }
}

@media (orientation: landscape) {
  html[data-device="phone"] #rotate-notice {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--green);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
  }

  html[data-device="phone"] .rotate-notice__icon {
    font-size: 4rem;
    color: var(--yellow);
    animation: rotate-hint 2s ease-in-out infinite;
  }
}
